{"id":50701555,"url":"https://github.com/milkstrawai/milkstraw-cli","last_synced_at":"2026-06-09T09:30:43.821Z","repository":{"id":355799667,"uuid":"1202885203","full_name":"milkstrawai/milkstraw-cli","owner":"milkstrawai","description":"AI-powered cloud cost optimization","archived":false,"fork":false,"pushed_at":"2026-05-05T09:11:00.000Z","size":169,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-05T11:08:20.157Z","etag":null,"topics":["aws","cli","cloud-cost-optimization","cloudformation","devops","infrastructure","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/milkstrawai.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":null,"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":"2026-04-06T13:58:32.000Z","updated_at":"2026-05-05T09:11:02.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/milkstrawai/milkstraw-cli","commit_stats":null,"previous_names":["milkstrawai/milkstraw-cli"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/milkstrawai/milkstraw-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milkstrawai%2Fmilkstraw-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milkstrawai%2Fmilkstraw-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milkstrawai%2Fmilkstraw-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milkstrawai%2Fmilkstraw-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/milkstrawai","download_url":"https://codeload.github.com/milkstrawai/milkstraw-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milkstrawai%2Fmilkstraw-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34101065,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"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":["aws","cli","cloud-cost-optimization","cloudformation","devops","infrastructure","typescript"],"created_at":"2026-06-09T09:30:43.470Z","updated_at":"2026-06-09T09:30:43.815Z","avatar_url":"https://github.com/milkstrawai.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @milkstraw/cli\n\nMilkStraw AI CLI for authentication, onboarding, and stack management.\n\n## Prerequisites\n\nBefore running `milkstraw setup`, you need the [AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html) installed and configured with credentials that have access to your AWS Organization management account.\n\nConfigure credentials using one of:\n\n```bash\naws configure      # Access key + secret\naws configure sso  # SSO login (recommended)\n```\n\nVerify your credentials are working:\n\n```bash\naws sts get-caller-identity\n```\n\nIf using SSO, make sure your session is active:\n\n```bash\naws sso login --profile \u003cyour-profile\u003e\n```\n\n## Quick Start\n\n```bash\nnpx @milkstraw/cli setup\n```\n\n## Commands\n\n| Command | Description |\n|---------|-------------|\n| `milkstraw login` | Interactive browser login |\n| `milkstraw logout` | Revoke token and clear local auth |\n| `milkstraw setup` | Complete onboarding and deploy stacks |\n| `milkstraw status` | Check deployment status |\n| `milkstraw update` | Update deployed stacks to latest templates |\n| `milkstraw org list` | List accessible organizations |\n| `milkstraw inventory ec2 list` | List EC2 on-demand instances |\n| `milkstraw inventory rds list` | List RDS on-demand instances |\n| `milkstraw inventory elasticache list` | List ElastiCache on-demand clusters |\n| `milkstraw inventory opensearch list` | List OpenSearch on-demand clusters |\n| `milkstraw inventory opensearch nodes list` | List OpenSearch nodes across all clusters |\n| `milkstraw inventory eks list` | List EKS clusters |\n| `milkstraw inventory eks nodegroups list` | List EKS node groups across all clusters |\n| `milkstraw inventory ebs list` | List EBS volumes |\n| `milkstraw commitments ec2 list` | List EC2 Reserved Instances |\n| `milkstraw commitments rds list` | List RDS Reserved Instances |\n| `milkstraw commitments elasticache list` | List ElastiCache Reserved Instances |\n| `milkstraw commitments opensearch list` | List OpenSearch Reserved Instances |\n| `milkstraw commitments savings_plans compute list` | List Compute Savings Plans |\n| `milkstraw commitments savings_plans ec2_instance list` | List EC2 Instance Savings Plans |\n| `milkstraw commitments savings_plans sage_maker list` | List SageMaker Savings Plans |\n| `milkstraw commitments savings_plans database list` | List Database Savings Plans |\n\n## Global Options\n\n| Option | Description |\n|--------|-------------|\n| `--org \u003cid\u003e` | Specify organization ID |\n| `--aws-profile \u003cname\u003e` | Override the AWS named profile |\n| `--json` | Output as JSON |\n| `--quiet` | Output data only |\n| `--markdown` | Output as Markdown |\n| `--verbose` | Enable verbose output |\n| `--agent` | Agent-safe mode (no prompts, no spinners) |\n\n## Environment Variables\n\n| Variable | Description |\n|----------|-------------|\n| `MILKSTRAW_ORG` | Default organization ID |\n| `MILKSTRAW_AWS_PROFILE` | Default AWS profile name |\n\n## AWS Credential Resolution\n\nThe CLI uses the AWS SDK for JavaScript v3 credential provider chain.\n\nWithout `--aws-profile`, credentials are resolved in this order:\n\n1. Environment variables: `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, `AWS_SESSION_TOKEN`\n2. SSO token cache at `~/.aws/sso/cache`\n3. Shared credentials file at `~/.aws/credentials` (default profile)\n4. Shared config file at `~/.aws/config`\n5. ECS container or EC2 instance metadata\n\nWith `--aws-profile \u003cname\u003e` (or `MILKSTRAW_AWS_PROFILE`), the SDK skips environment variables and uses the named profile from `~/.aws/config` and `~/.aws/credentials`.\n\n\n## Auth\n\nTokens are stored at `~/.config/milkstraw-cli/token`. Login uses the OAuth device code flow via browser.\n\n## Development\n\n```bash\nnpm install\nnpm run build\nnode bin/milkstraw.js --help\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilkstrawai%2Fmilkstraw-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmilkstrawai%2Fmilkstraw-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilkstrawai%2Fmilkstraw-cli/lists"}