@cognite/cli, deploy it to your project, and activate a version users can open in CDF.
Prerequisites
- Node.js v18 or later
- A CDF project where you can deploy Flows custom apps
- Basic familiarity with the terminal (optional: mkcert for local HTTPS — see Local HTTPS)
Deploy your first app
Verify the CLI
Confirm
@cognite/cli@latest runs (no global install required):You see a version number printed to the terminal.
Create a new app
Run the interactive scaffolder:You are prompted for display name, description, CDF organization, CDF project, and CDF cluster (for example
greenfield).For scripts or CI, pass flags instead of prompts:A new
my-app directory exists with app.json and a React project scaffold.Deploy to CDF
From the app directory, deploy a draft version:For CI, set
deployClientId and deploySecretName in app.json, set the referenced environment variable, then run deploy. See Authentication and the command reference.The command completes without errors and reports a successful deployment.
Authentication
Most commands accept one of the following authentication modes.| Mode | How | When to use |
|---|---|---|
| Environment variable (default) | deployClientId + deploySecretName in app.json | CI and repeated local deploys. |
| Browser (interactive) | --interactive | Local development without storing secrets. |
--interactive, pass --base-url, --project, and --org to skip prompts. Full flag lists are in the command reference.
Local HTTPS
Browsers sometimes require HTTPS forlocalhost. Generate trusted certificates with mkcert:
./certificates/mkcert by default. See apps setup-https for --cert-dir and other options.
Code signing
Certified Flows custom apps must be signed before submission. Seeapps sign and keys in the command reference, and App certification.
Next steps
You scaffolded a Flows custom app, deployed it to CDF, and activated a version for users.- Command reference — every
appsandkeyscommand, flag, and option. - Get started with Flows — concepts, project layout, and how Flows custom apps run in CDF.
- App certification — requirements before you submit a production app.