{"id":31068557,"url":"https://github.com/willmeyers/stainless-cli","last_synced_at":"2026-05-19T14:33:22.884Z","repository":{"id":235880376,"uuid":"791139875","full_name":"willmeyers/stainless-cli","owner":"willmeyers","description":"A work-in-progress command-line utility for interacting with Stainless. This project is in no way affiliated with or supported by Stainless. ","archived":false,"fork":false,"pushed_at":"2024-04-28T14:44:59.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-28T15:39:49.858Z","etag":null,"topics":["cli","code-generation","openapi"],"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/willmeyers.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}},"created_at":"2024-04-24T07:02:58.000Z","updated_at":"2024-06-19T13:18:45.139Z","dependencies_parsed_at":"2024-04-24T20:17:21.067Z","dependency_job_id":"1ffa722a-defd-4038-a054-ca0b49b3479b","html_url":"https://github.com/willmeyers/stainless-cli","commit_stats":null,"previous_names":["willmeyers/stainless-cli"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/willmeyers/stainless-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willmeyers%2Fstainless-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willmeyers%2Fstainless-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willmeyers%2Fstainless-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willmeyers%2Fstainless-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willmeyers","download_url":"https://codeload.github.com/willmeyers/stainless-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willmeyers%2Fstainless-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275327132,"owners_count":25445048,"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-15T02:00:09.272Z","response_time":75,"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","code-generation","openapi"],"created_at":"2025-09-15T21:46:27.952Z","updated_at":"2025-09-15T21:46:29.219Z","avatar_url":"https://github.com/willmeyers.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stainless API CLI\n\nThis is a tiny command-line utility for interacting with [Stainless API](https://www.stainlessapi.com/).\n\n\u003e This project is in no way affiated Stainless API.\n\n## Installing\n\n### Download Binary\n\n[Download your platform's binary here](https://github.com/willmeyers/stainless-cli/releases).\n\n### Building from Source\n\nSimply run (for Linux and MacOS):\n\n```bash\ngit clone https://github.com/willmeyers/stainless-cli\ncd stainless-cli\nmake build\nmv build/stainless-[darwin|linux] /usr/local/bin/stainless-cli\n```\n\nWindows binaries are available as well.\n\n## Get Started\n\nStainless does not have a complete API accessible via API keys. We must login, obtain the necessary session tokens.\n\nTo get started, run:\n\n```bash\nstainless-cli login\n```\n\nComplete the OAuth flow as you normally would.\n\nAfter logging in, you can check your authentication status by listing your organizations with:\n\n```bash\nstainless-cli orgs\n```\n\n## Generate SDKs via the Command Line\n\nThe CLI is great for quickly executing SDK generations. To get started, run:\n\n```bash\nstainless-cli generate --help\n```\n\nYou'll need a few items on hand to generate an SDK:\n\n0. An existing organization and project\n1. Your OpenAPI schema spec (in yaml)\n2. You Stainless API config (in yaml)\n\nFrom there you generate your project's SDKs with:\n\n```bash\nstainless-cli generate all --openapi ./openapi.yml --config ./stainless.yml\n```\n\nFinally, if an output directory (`--out-dir`) is given, stainless-cli will perform a git clone/pull automatically once the generation is complete.\n\n```bash\nstainless-cli generate all --openapi ./openapi.yml --config ./stainless.yml --out-dir ./sdks\n```\n\nAfter each SDK generates, its GitHub repository is cloned or updated in a respective directory inside the specified out directory.\n\n## Security\n\nFor your security, please consider running \n\n```bash\nstainless-cli logout\n```\n\nto remove any cached credentials saved on your filesystem. The credentials cached are session tokens and, if comprimised, can be used\nto login to your Stainless API account anywhere.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillmeyers%2Fstainless-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillmeyers%2Fstainless-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillmeyers%2Fstainless-cli/lists"}