Getting Started
Install the Relay CLI, link your repository, and run your first pipeline.
Prerequisites
Before you begin, make sure you have the following:
Install the CLI
npm i -g @relay/cliVerify the installation:
relay --versionInitialize a project
Run relay init in your repository root. Relay generates a starter relay.yaml and links the repo to your organization.
cd my-app
relay initYou'll be prompted to:
- Authenticate with
relay login(opens a browser session) - Select an organization and repository
- Choose a pipeline template (Node, Docker, or monorepo)
Run your first pipeline
Trigger a local dry run or push to start a cloud build:
relay run --local
relay run --branch mainConnect your repository
Relay watches Git events automatically once the repo is linked. Add a status badge to your README:
[](https://relay.dev/org/repo)Note: Self-hosted runners require a separate registration step. See Runners.
Next steps
- Read the API Reference for jobs, steps, and caching
- Configure Preview Environments for pull requests
- Enable Relay AI for flaky-test detection and auto-retry