CosmicAC CLI commands
Auth
Sign in to CosmicAC from the CLI, sign out, and show the signed-in user.
Sign in to CosmicAC from the CLI, sign out, and show the signed-in user.
login
Opens the web UI to approve this CLI, then stores the session token for the active environment. The token is stored per environment, so logging in to one does not affect the others.
Usage
cosmicac login [options]Options
| Option | Description |
|---|---|
--no-browser | Print the authorization URL instead of opening a browser |
--timeout | How long to wait for browser approval (default 300) |
logout
Removes the stored session token for the active environment. The active team and the configured URLs are left untouched.
Usage
cosmicac logoutwhoami
Resolves the stored session against app-node and prints the user and their teams.
Usage
cosmicac whoami