Skip to main content

Install

Installing globally lets you run vela directly. Using npx is better for CI environments where you want a specific version pinned in package.json.

Requirements

  • Node.js 18+
  • A Vela account with at least one app created
  • A client secret (vela_cs_...) — found in Settings → Client Secrets

Setup

1

Create a config file

In your project root, create vela.config.json:
The app value is your app’s slug (e.g. order-service). You can find it in the dashboard or by running vela apps list once authenticated.
2

Set your client secret

Export the environment variable. Never put the secret in vela.config.json.
For local dev, add it to your .env file (make sure .env is in .gitignore):
3

Create the schemas directory

This is where your schema JSON files will live. Add this directory to git so schemas are tracked alongside your code.
4

Verify

Expected output:

Pinning a version in CI

For reproducible CI builds, pin the version in package.json instead of using latest:
Then use npx @vela-event/cli push in your workflow, which resolves from node_modules without a separate global install step.

Next steps

Configuration

All config file options and CLI flags.

Schema Format

How to write schema JSON files.