{"id":30900695,"url":"https://github.com/opspresso/toast-cli","last_synced_at":"2026-02-06T12:32:22.544Z","repository":{"id":65307551,"uuid":"179003179","full_name":"opspresso/toast-cli","owner":"opspresso","description":null,"archived":false,"fork":false,"pushed_at":"2025-11-19T12:28:28.000Z","size":1661,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-19T14:20:25.820Z","etag":null,"topics":["aws","cli","git","kubernetes","pypi","python","toast"],"latest_commit_sha":null,"homepage":"http://cli.toast.sh","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/opspresso.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-04-02T05:10:50.000Z","updated_at":"2025-11-19T12:28:02.000Z","dependencies_parsed_at":"2024-01-19T13:31:53.561Z","dependency_job_id":"72144962-0d22-4a14-83cb-f74a8eadce2a","html_url":"https://github.com/opspresso/toast-cli","commit_stats":null,"previous_names":["opspresso/toast.sh","opspresso/toaster","opspresso/toast-cli"],"tags_count":731,"template":false,"template_full_name":null,"purl":"pkg:github/opspresso/toast-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opspresso%2Ftoast-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opspresso%2Ftoast-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opspresso%2Ftoast-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opspresso%2Ftoast-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opspresso","download_url":"https://codeload.github.com/opspresso/toast-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opspresso%2Ftoast-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28975278,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T09:57:52.632Z","status":"ssl_error","status_checked_at":"2026-02-01T09:57:49.143Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["aws","cli","git","kubernetes","pypi","python","toast"],"created_at":"2025-09-09T05:54:59.723Z","updated_at":"2026-02-06T12:32:22.529Z","avatar_url":"https://github.com/opspresso.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# toast-cli\n\n```\n _                  _           _ _\n| |_ ___   __ _ ___| |_     ___| (_)\n| __/ _ \\ / _` / __| __|__ / __| | |\n| || (_) | (_| \\__ \\ ||___| (__| | |\n \\__\\___/ \\__,_|___/\\__|   \\___|_|_|\n\n```\n\n[![build](https://img.shields.io/github/actions/workflow/status/opspresso/toast-cli/push.yml?branch=main\u0026style=for-the-badge\u0026logo=github)](https://github.com/opspresso/toast-cli/actions/workflows/push.yml)\n[![release](https://img.shields.io/github/v/release/opspresso/toast-cli?style=for-the-badge\u0026logo=github)](https://github.com/opspresso/toast-cli/releases)\n[![PyPI](https://img.shields.io/pypi/v/toast-cli?style=for-the-badge\u0026logo=pypi\u0026logoColor=white)](https://pypi.org/project/toast-cli/)\n[![website](https://img.shields.io/badge/website-toast--cli-blue?style=for-the-badge\u0026logo=github)](https://cli.toast.sh/)\n\nPython-based CLI utility with plugin architecture for AWS, Kubernetes, and Git operations.\n\n## Features\n\n* **Plugin Architecture**: Modular design with dynamic command discovery\n* **AWS Integration**: Identity checking, profile management, region selection, SSM Parameter Store integration\n* **Kubernetes**: Context switching, EKS cluster discovery and integration, context deletion\n* **Git**: Repository management (clone, branch, pull, push, mirror), organization-specific GitHub hosts\n* **Workspace**: Directory navigation, environment file management (.env.local, .prompt.md)\n* **Interface**: FZF-powered interactive menus, formatted output with Rich\n* **Security**: AWS SSM SecureString storage for sensitive files\n\n## Architecture\n\n* Commands implemented as plugins extending BasePlugin\n* Automatic plugin discovery and loading\n* Click integration for CLI behavior\n* See [ARCHITECTURE.md](ARCHITECTURE.md) for details\n\n## Installation\n\n### Requirements\n* Python 3.9+\n* External tools: fzf, aws-cli, kubectl\n* Python packages: click, rich\n\n```bash\npyenv install 3.12\npyenv global 3.12.12\npyenv versions\n```\n\n### Install\n\n### From PyPI\n```bash\npip install toast-cli\n```\n\n### Or...\n```bash\n# From GitHub\npip install git+https://github.com/opspresso/toast-cli.git\n\n# Development mode\ngit clone https://github.com/opspresso/toast-cli.git\ncd toast-cli\npip install -e .\n```\n\n## Usage\n\n```bash\ntoast --help         # View available commands\ntoast am             # Show AWS identity\ntoast cdw            # Navigate workspace directories\ntoast ctx            # Manage Kubernetes contexts\ntoast dot            # Manage .env.local files\ntoast env            # Manage AWS profiles\ntoast git            # Manage Git repositories\ntoast prompt         # Manage .prompt.md files\ntoast region         # Manage AWS region\ntoast ssm            # AWS SSM Parameter Store operations\ntoast version        # Display version\n```\n\n### Examples\n\n```bash\n# AWS\ntoast am                   # Show identity\ntoast env                  # Switch profiles\ntoast region               # Switch regions\n\n# Kubernetes\ntoast ctx                  # Switch contexts\n# Select [New...] to add EKS clusters from current region\n# Select [Del...] to delete contexts (individual or all)\n\n# Environment Files (.env.local)\ntoast dot                  # Compare local and SSM, choose action (default: sync)\ntoast dot up               # Upload .env.local to SSM\ntoast dot down             # Download .env.local from SSM (alias: dn)\ntoast dot ls               # List all .env.local files in SSM\n\n# Prompt Files (.prompt.md)\ntoast prompt               # Compare local and SSM, choose action (default: sync)\ntoast prompt up            # Upload .prompt.md to SSM\ntoast prompt down          # Download .prompt.md from SSM (alias: dn)\ntoast prompt ls            # List all .prompt.md files in SSM\n\n# SSM Parameter Store\ntoast ssm                  # Interactive mode: browse and select parameters\ntoast ssm ls               # List all parameters\ntoast ssm ls /toast/       # List parameters under path\ntoast ssm get /my/param    # Get parameter value (alias: g)\ntoast ssm put /my/param 'value'  # Store as SecureString (alias: p)\ntoast ssm rm /my/param     # Delete parameter (alias: d, delete)\n\n# Git Operations\ntoast git repo-name clone                    # Clone repository\ntoast git repo-name branch -b branch-name    # Create branch\ntoast git repo-name pull                     # Pull changes\ntoast git repo-name pull -r                  # Pull with rebase\ntoast git repo-name push                     # Push to remote\ntoast git repo-name push -f                  # Force push\ntoast git repo-name push --mirror            # Mirror push for migration\n```\n\n## Workspace Structure\n\nToast-cli uses a standardized workspace directory structure for organizing projects:\n\n```\n~/workspace/{github-host}/{org}/{project}\n```\n\n**Examples**:\n- `~/workspace/github.com/opspresso/toast-cli`\n- `~/workspace/github.enterprise.com/myorg/myproject`\n\n**First-time Setup**:\n\nWhen you run `toast cdw` for the first time, it will automatically:\n1. Create `~/workspace` directory if it doesn't exist\n2. Create `~/workspace/github.com` as the default structure\n3. Display instructions for creating organization and project directories\n\nYou can then create your project directories:\n```bash\nmkdir -p ~/workspace/github.com/{org}/{project}\n```\n\n**Benefits**:\n- Consistent project organization across all Git hosts\n- Automatic detection of GitHub host per organization\n- Seamless integration with other toast-cli commands (git, dot, prompt)\n\n## Configuration\n\n### GitHub Host Configuration\n\nConfigure custom GitHub hosts for different organizations by creating `.toast-config` files:\n\n**File location**: `~/workspace/github.com/{org}/.toast-config`\n\n```bash\n# For organization-specific hosts\necho \"GITHUB_HOST=github.enterprise.com\" \u003e ~/workspace/github.com/myorg/.toast-config\n\n# For custom SSH hosts (useful for different accounts)\necho \"GITHUB_HOST=myorg-github.com\" \u003e ~/workspace/github.com/myorg/.toast-config\n```\n\n**Example SSH config** (`~/.ssh/config`):\n```\nHost myorg-github.com\n  HostName github.com\n  User git\n  IdentityFile ~/.ssh/id_rsa_myorg\n```\n\n**Benefits**:\n- Different GitHub Enterprise hosts per organization\n- Different SSH keys and accounts per organization\n- Automatic host detection based on workspace location\n- Seamless switching between GitHub accounts\n\n### AWS SSM Storage Paths\n\nToast-cli stores files in AWS SSM Parameter Store with the following structure:\n\n```\n/toast/local/{org}/{project}/env-local     # .env.local files\n/toast/local/{org}/{project}/prompt-md     # .prompt.md files\n```\n\nFiles are stored as SecureString type for encryption at rest.\n\n## Creating Plugins\n\n1. Create a file in `toast/plugins/`\n2. Extend `BasePlugin`\n3. Implement required methods\n4. Set name and help variables\n\n```python\nfrom toast.plugins.base_plugin import BasePlugin\nimport click\n\nclass MyPlugin(BasePlugin):\n    name = \"mycommand\"\n    help = \"Command description\"\n\n    @classmethod\n    def get_arguments(cls, func):\n        func = click.option(\"--option\", \"-o\", help=\"Option description\")(func)\n        return func\n\n    @classmethod\n    def execute(cls, **kwargs):\n        option = kwargs.get(\"option\")\n        click.echo(f\"Executing with option: {option}\")\n```\n\n## Aliases\n\n```bash\nalias t='toast'\nc() { cd \"$(toast cdw)\" }    # Navigate to workspace\nalias m='toast am'           # AWS identity\nalias x='toast ctx'          # Kubernetes contexts\nalias d='toast dot'          # .env.local files\nalias p='toast prompt'       # .prompt.md files\nalias e='toast env'          # AWS profiles\nalias g='toast git'          # Git repositories\nalias r='toast region'       # AWS region\nalias s='toast ssm'          # SSM Parameter Store\n```\n\n## Resources\n\n* **Development**: See [CLAUDE.md](CLAUDE.md) for guidelines\n* **License**: [GNU GPL v3.0](LICENSE)\n* **Contributing**: Via [GitHub repository](https://github.com/opspresso/toast-cli)\n* **Documentation**: [ARCHITECTURE.md](ARCHITECTURE.md) and [toast.sh](https://cli.toast.sh/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopspresso%2Ftoast-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopspresso%2Ftoast-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopspresso%2Ftoast-cli/lists"}