CLI Reference

The CRE Command Line Interface (CLI) is your primary tool for developing, testing, deploying, and managing workflows. It handles project setup, contract binding generation (Go workflows only), local simulation, and workflow lifecycle management.

Global flags

These flags can be used with any cre command.

Flag
Description
-h, --helpDisplays help information for any command
-e, --envSpecifies the path to your .env file (default: ".env")
-T, --targetSets the target environment from your configuration files
-R, --project-rootSpecifies the path to the project root directory. By default, the CLI automatically finds the project root by searching for project.yaml in the current directory and parent directories
-v, --verboseEnables verbose logging to print DEBUG level logs

Commands overview

Authentication

Manage your authentication and account credentials.

  • cre login โ€” Authenticate with the CRE UI and save credentials locally
  • cre logout โ€” Revoke authentication tokens and remove local credentials
  • cre whoami โ€” Show your current account details

View authentication commands โ†’


Project Setup

Initialize projects and generate contract bindings (Go only).

  • cre init โ€” Initialize a new CRE project with an interactive setup guide
  • cre generate-bindings (Go only) โ€” Generate Go bindings from contract ABI files for type-safe contract interactions

View project setup commands โ†’


Account Management

Manage your linked public key addresses for workflow operations.

  • cre account link-key โ€” Link a public key address to your account
  • cre account list-key โ€” List workflow owners linked to your organization
  • cre account unlink-key โ€” Unlink a public key address from your account

View account management commands โ†’


Workflow Commands

Manage workflows throughout their entire lifecycle.

  • cre workflow simulate โ€” Compile and execute workflows in a local simulation environment
  • cre workflow deploy โ€” Deploy a workflow to the Workflow Registry contract
  • cre workflow activate โ€” Activate a workflow on the Workflow Registry contract
  • cre workflow pause โ€” Pause a workflow on the Workflow Registry contract
  • cre workflow delete โ€” Delete all versions of a workflow from the Workflow Registry

View workflow commands โ†’


Secrets Management

Manage secrets stored in the Vault DON for use in your workflows.

  • cre secrets create โ€” Create new secrets from a YAML file
  • cre secrets update โ€” Update existing secrets
  • cre secrets delete โ€” Delete secrets
  • cre secrets list โ€” List secret identifiers in a namespace

View secrets management commands โ†’


Utilities

Additional utility commands.

  • cre update โ€” Update the CRE CLI to the latest version
  • cre version โ€” Print the current version of the CRE CLI

View utility commands โ†’

Typical development workflow

The typical workflow development process uses these commands in sequence:

  1. cre init โ€” Initialize your project
  2. cre generate-bindings โ€” Generate contract bindings from ABIs (Go workflows only, if interacting with contracts)
  3. cre workflow simulate โ€” Test your workflow locally
  4. cre workflow deploy โ€” Deploy your workflow to the registry
  5. cre workflow activate / cre workflow pause โ€” Control workflow execution

Learn more

Get the latest Chainlink content straight to your inbox.