CosmicAC Logo
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

OptionDescription
--no-browserPrint the authorization URL instead of opening a browser
--timeoutHow 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 logout

whoami

Resolves the stored session against app-node and prints the user and their teams.

Usage

cosmicac whoami

On this page