{"id":30858571,"url":"https://github.com/georgepstaylor/spotctl","last_synced_at":"2025-09-07T14:14:10.931Z","repository":{"id":303131863,"uuid":"992230317","full_name":"georgepstaylor/spotctl","owner":"georgepstaylor","description":"A cli tool for managing rackspace spot cloudspaces","archived":false,"fork":false,"pushed_at":"2025-07-15T13:14:07.000Z","size":5969,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-16T05:53:07.758Z","etag":null,"topics":["cli","golang","rackspace"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/georgepstaylor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-28T20:29:39.000Z","updated_at":"2025-07-15T13:16:48.000Z","dependencies_parsed_at":"2025-07-15T16:04:58.530Z","dependency_job_id":"fb4ca90f-1ef8-4624-a25b-6bac8008d773","html_url":"https://github.com/georgepstaylor/spotctl","commit_stats":null,"previous_names":["georgepstaylor/spotctl"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/georgepstaylor/spotctl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/georgepstaylor%2Fspotctl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/georgepstaylor%2Fspotctl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/georgepstaylor%2Fspotctl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/georgepstaylor%2Fspotctl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/georgepstaylor","download_url":"https://codeload.github.com/georgepstaylor/spotctl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/georgepstaylor%2Fspotctl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274046005,"owners_count":25212983,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","golang","rackspace"],"created_at":"2025-09-07T14:14:09.237Z","updated_at":"2025-09-07T14:14:10.907Z","avatar_url":"https://github.com/georgepstaylor.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 spotctl\n\nA CLI for managing Rackspace Spot resources.\n\n## 📦 Installation\n\n### Quick Start\n\n```bash\ngo install github.com/georgetaylor/spotctl@latest\n```\n\n### From Source\n\n```bash\ngit clone https://github.com/georgetaylor/spotctl.git\ncd spotctl\nmake build\n```\n\n## 🔧 Configuration\n\n### 1. Get Your Token\n\n1. Visit [Rackspace Spot Console](https://spot.rackspace.com) 🌐\n2. Go to **API Access \u003e Terraform**\n3. Click **Get New Token**\n4. Copy your refresh token\n\n### 2. Configure spotctl\n\n```bash\n# Interactive setup (recommended)\nspotctl config init\n\n# Or set values directly\nspotctl config set refresh-token your-token-here\n```\n\n#### Alternative Methods\n\n```bash\n# Environment variables\nexport SPOTCTL_REFRESH_TOKEN=your-token\n# Command flags\nspotctl --refresh-token your-token regions list\n```\n\n#### ~/.spot/config.yaml\n\nYou can manually configure this file (rather than using `spotctl config` to create it).\n\nSee [example](config.example.yaml).\n\n## 🎮 Usage\n\n### Command examples\n\n```bash\n# List available regions\nspotctl regions list\n\n# List your organizations\nspotctl organizations list\n\n# List server classes with details\nspotctl serverclasses list --details\n\n# Get specific server class info\nspotctl serverclasses get \u003cspot class\u003e\n\n# List cloudspaces in a namespace\nspotctl cloudspaces list my-namespace\n```\n\n### Output Formats\n\n```bash\n# Default table view\nspotctl regions list\n\n# Detailed view with extra columns\nspotctl regions list -o wide\n\n# JSON output for automation\nspotctl regions list --output json\n\n# YAML for configuration\nspotctl regions list --output yaml\n\n```\n\n### Global Options\n\n| Flag           | Description                                    |\n| -------------- | ---------------------------------------------- |\n| `--output, -o` | Output format: `table`, `wide`, `json`, `yaml` |\n| `--no-pager`   | Disable automatic paging                       |\n| `--debug`      | Enable debug output                            |\n\n## 🛠️ Development\n\n### Prerequisites\n\n- Go 1.24+\n- Make\n\n### Commands\n\n```bash\nmake build      # Build binary\nmake test       # Run tests\nmake dev        # Format, lint, test, build\n```\n\n## 📁 Project Structure\n\n```\nspotctl/\n├── cmd/           # CLI commands\n│   ├── \u003ccmd name\u003e # eg region, cloudspace\n├── pkg/           # Public packages\n│   ├── client/    # API client\n│   ├── config/    # Configuration\n│   ├── output/    # Formatters\n│   └── pager/     # Output paging\n├── internal/      # Private utilities\n└── main.go        # Entry point\n```\n\n## 🤝 Contributing\n\n1. Fork the repo\n2. Create a feature branch\n3. Make your changes\n4. Run `make dev`\n5. Submit a PR\n\n## 📄 License\n\nMIT License - see [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeorgepstaylor%2Fspotctl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeorgepstaylor%2Fspotctl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeorgepstaylor%2Fspotctl/lists"}