Skip to content

costcut auth

Manage API credentials for Costcut backend.

Usage

costcut auth <SUBCOMMAND> [OPTIONS]

Subcommands

auth set

Store API key for authentication.

costcut auth set <API_KEY>

API key must start with cg_live_ (obtained from https://app.costcut.dev/settings).

Example:

costcut auth set cg_live_abc123xyz...

Token is stored locally (encrypted on disk, not sent to server).

auth status

Check current authentication status.

costcut auth status

Displays:

  • Logged-in email
  • Masked API key

Example output:

Logged in as: [email protected]
Token: cg_live_***...xyz

auth logout

Remove stored API key.

costcut auth logout

After logout, you must run auth set again before using push or other authenticated commands.

Token Storage

API keys are stored in:

  • macOS / Linux: ~/.costcut/token
  • Windows: %APPDATA%\.costcut\token

File is readable only by your user account.