Installation
Install the dcupl CLI globally to access it from any directory.
Prerequisites
- Node.js 20.19.1+ - Check with
node -v - npm, yarn, or pnpm - Package manager
- dcupl Console account - Sign up if needed
Install
npm install -g @dcupl/cliyarn global add @dcupl/clipnpm add -g @dcupl/cliVerify the installation:
dcupl --version
# → @dcupl/cli/x.x.x (your installed version)Authentication
Login to connect the CLI with your dcupl account:
dcupl loginThis opens your browser to authenticate. After successful login, your credentials are stored locally.
Authentication Methods
| Method | Use Case | Setup |
|---|---|---|
| Interactive login | Local development | dcupl login |
| API key | CI/CD pipelines | Environment variable |
| Project config | Per-project auth | dcupl.config.json |
Using API Keys
For automated environments (CI/CD), use a CLI API key instead of interactive login:
- Go to Console → Your Project → Settings → API Keys
- Create a new key with type CLI API Key
- Set the environment variable:
export DCUPL_API_KEY=your-cli-api-keyThe CLI automatically uses DCUPL_API_KEY when available.
Verify Setup
Check that everything works:
# Show current authentication status
dcupl whoami
# List accessible projects
dcupl projects listUpdating
Update to the latest version:
npm update -g @dcupl/cliyarn global upgrade @dcupl/clipnpm update -g @dcupl/cliUninstall
Remove the CLI:
npm uninstall -g @dcupl/cliyarn global remove @dcupl/clipnpm remove -g @dcupl/cliTroubleshooting
Command not found
If dcupl is not recognized after installation:
Check global bin path is in PATH:
npm config get prefix # Ensure this path/bin is in your PATHTry npx instead:
npx @dcupl/cli --version
Permission errors (macOS/Linux)
If you see EACCES permission errors:
# Option 1: Use a Node version manager (recommended)
# nvm, fnm, or volta handle permissions automatically
# Option 2: Fix npm permissions
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
source ~/.bashrcAuthentication failed
If login fails:
- Check your internet connection
- Verify your Console account is active
- Try logging out and back in:
dcupl logout dcupl login
Next Steps
- Getting Started - Create your first CLI project
- Commands Reference - All available commands
- Configuration - Configure project settings