Login

After installing the Camber CLI, you’ll need to authenticate to access Camber services. There are three ways to log in to Camber using the CLI:

Method 1: Interactive Web Login

ℹ️
Please use Chrome or Firefox in order to perform authentication

The simplest way to authenticate is using the interactive web login:

camber login

This command will:

  1. Open your default web browser
  2. Direct you to the Camber authentication page
  3. Automatically configure your CLI after successful authentication

Method 2: Using an API Token via Environment Variable

You can also authenticate using an API token set as an environment variable:

  1. Log in to app.cambercloud.com
  2. Navigate to your profile settings
  3. Copy your API token
  4. Set the token as an environment variable using the following command:
export CAMBER_API_KEY=<your-token>

The Camber CLI will now read from this environment variable when executing commands.

Method 3: Passing the API Token Directly

For one-time use, you can pass your API token directly to the Camber CLI:

camber --api-key <your-token> <command>

Verifying Authentication

To verify that you’re properly authenticated, run:

camber me

Your information, teams and stash will display if authenticated succesfully.

======================User Information======================
Email:               your-email@example.com
Username:            your-username
User ID:             your-user-id

======================Teams Information=====================

Team #1
Team ID:             team-id
Name:                team-name
Unique Name:         team-unique-name

===========================================================