Skip to main content
The Credible CLI (cred) puts the platform in your terminal. Everything the Credible App manages is scriptable — the same environments, packages, connections, and groups — which makes the CLI the natural building block for automation and CI/CD.

Installation

Prerequisites: Node.js version 20+ and npm package manager
Install the Credible CLI globally from the npm registry:
View package details at npmjs.com/package/@credibledata/cred-cli

Shell Autocompletion

The CLI supports bash/zsh autocompletion. To set it up, run:
Restart your shell, then type cred + TAB to see available commands, or cred ls + TAB to see resource types. Completion is context-aware — cred set environment + TAB completes your environment names, and cred ls version + TAB completes your package names. To remove it, run cred --cleanup.

Core Commands

Authentication & Session

Login

Authenticate with your organization via Auth0:
Options:
  • -c, --cluster <cluster>: Target cluster (gcp or aws). Defaults to your organization’s default cluster (gcp for most organizations)

Check Status

View your current organization and environment:

Logout

Clear stored credentials:

Authenticate as a Service Account

For scripts and CI/CD, authenticate with a service account JWT instead of the browser-based login — for example, a group access token:
Options:
  • -o, --organization <organizationName>: Organization to set for the session

Resource Management

List Environments

Get Environment Details

Create Environment

Options:
  • --readmeFile <path>: Path to README file to include
  • --replication <count>: Replication count for the environment’s packages (must be at least 1)

Update Environment

Delete Environment

Set Default Environment

Setting a default environment only applies to CLI sessions - it doesn’t affect any web experiences

Command Options

Global Options

Pagination

List commands (cred ls environment, cred ls connection, cred ls package, cred ls index, cred ls run) return all records by default and accept:
Earlier CLI versions used project where the platform now uses environment (e.g., cred ls project). The project commands still work as deprecated aliases — use the environment forms going forward.

Next Steps

CI/CD Setup

Put the CLI to work — publish packages automatically on merge

API Access

Use group access tokens to authenticate applications with the REST APIs