docs/content/changelog/03-13-26-cli-improvements.mdx
This release improves the Composio CLI with a better login flow, a non-blocking link option, and improved security for the whoami command.
| Package | Version |
|---|---|
| @composio/cli | v0.2.2 |
composio login now prompts you to select your default organization and project after the browser OAuth flow completes.
-y: Skip the picker and use the session defaults (e.g. for CI or scripts).composio login # Login, then pick org/project
composio login -y # Login, use session defaults (no picker)
composio login --no-browser # Print URL, don't open browser
--no-waitcomposio link now supports a --no-wait flag for non-blocking authorization flows.
--no-wait: Prints link info and JSON to stdout (JQ-parseable) and exits immediately. Useful for scripts and CI.composio link github # Opens browser, waits for completion
composio link github --no-wait # Prints redirect URL and JSON, exits
The composio whoami command no longer displays API keys in the output. This improves security and reduces the risk of accidental exposure in logs or screenshots.
composio manage orgs switch and composio init are shown instead.The following flags have been removed from composio login and composio init:
--api-key--org-id--project-idIf you previously used composio login --api-key uak_xxx --org-id X --project-id Y for non-interactive login (e.g. in CI), you must use the browser-based flow instead. Use composio login -y to skip the org/project picker and accept session defaults.
For composio init, the --org-id and --project-id flags are removed. Use composio init interactively, or run composio login first and then composio init.
</Callout>
Before:
composio login --api-key uak_xxx --org-id org_123 --project-id proj_456
composio init --org-id org_123 --project-id proj_456
After:
composio login -y # Login with session defaults (no picker)
composio init # Interactive project selection
composio login and composio manage orgs switch.