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, --help | Displays help information for any command |
-e, --env | Specifies the path to your .env file (default: ".env") |
-T, --target | Sets the target environment from your configuration files |
-R, --project-root | Specifies 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, --verbose | Enables 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 locallycre logoutโ Revoke authentication tokens and remove local credentialscre 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 guidecre 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 accountcre account list-keyโ List workflow owners linked to your organizationcre 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 environmentcre workflow deployโ Deploy a workflow to the Workflow Registry contractcre workflow activateโ Activate a workflow on the Workflow Registry contractcre workflow pauseโ Pause a workflow on the Workflow Registry contractcre workflow deleteโ Delete all versions of a workflow from the Workflow Registry
Secrets Management
Manage secrets stored in the Vault DON for use in your workflows.
cre secrets createโ Create new secrets from a YAML filecre secrets updateโ Update existing secretscre secrets deleteโ Delete secretscre 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 versioncre versionโ Print the current version of the CRE CLI
Typical development workflow
The typical workflow development process uses these commands in sequence:
cre initโ Initialize your projectcre generate-bindingsโ Generate contract bindings from ABIs (Go workflows only, if interacting with contracts)cre workflow simulateโ Test your workflow locallycre workflow deployโ Deploy your workflow to the registrycre workflow activate/cre workflow pauseโ Control workflow execution
Learn more
- CLI Installation โ How to install and set up the CRE CLI
- Getting Started โ Step-by-step tutorials using the CLI
- Project Configuration โ Understanding project structure and configuration files