Config file
Create vela.config.json in your project root. The CLI looks for this file in the current directory when any command is run.
Do not put clientSecret in vela.config.json. If you commit this file (you should), the secret would be exposed in your repository. Use the environment variable instead.
Authentication
Set the VELA_CLIENT_SECRET environment variable. It takes precedence over any other configuration.
For local development, load it from a .env file using a tool like dotenv-cli:
For CI/CD, inject it as a secret:
CLI flags
Every command accepts flags that override the config file. This is useful when managing multiple apps or environments from the same repository.
Precedence
Settings are resolved in this order — highest wins:
- CLI flags (
--app, --dir)
- Environment variables (
VELA_CLIENT_SECRET)
vela.config.json file
- Defaults (
schemasDir: ./vela/schemas)
Self-hosted configuration
If you’re running Vela on your own infrastructure, override the base URL:
Or use an environment variable:
Multi-environment setup
For projects with separate staging and production apps, use a single schemas directory with environment-specific config files or flags: