Skip to main content
cops auth profiles prints every saved profile to the terminal. The active profile is marked with an asterisk (*). All other profiles are prefixed with a space.

Usage

cops auth profiles
This command takes no flags or arguments.

Output

Each line shows one profile name. The currently active profile has a * prefix:
* dc-prod
  dc-staging
  local-dev
In this example, dc-prod is the active profile. Commands that require authentication will use its credentials unless you specify a different profile with --profile. If no profiles have been configured yet, the command prints:
No profiles configured. Run: cops auth login

Examples

cops auth profiles

Notes

The active profile is stored in config.json under the currentProfile key. Running cops auth login sets the active profile automatically. Use cops auth use <name> to switch between existing profiles.

cops auth login

Create or update a profile with the interactive wizard.

cops auth use

Switch the active profile.

cops auth logout

Unset the active profile without deleting it.

cops auth delete

Permanently delete a profile.

Build docs developers (and LLMs) love