---
title: CLI reference
description: Commands and flags for the usefidel CLI. Set up a repository, sign in, link CI, connect Figma and manage telemetry.
---

# CLI reference

The CLI is the npm package [`usefidel`](https://www.npmjs.com/package/usefidel). It needs Node 24 or later. Run it with `npx`, no install needed.

## Commands

| Command | What it does |
|---|---|
| `npx usefidel init` | Sets up the repository: signs you in, finds your design system, asks which pages to check, links the repository, writes `fidel.config.json` and `.github/workflows/fidel.yml`, and stages both with `git add`. Never overwrites an existing workflow file. |
| `npx usefidel login` | Signs you in through the browser with email or Google. |
| `npx usefidel link` | Links the repository so CI can authenticate without a stored secret. |
| `npx usefidel unlink` | Removes the link for this repository. |
| `npx usefidel connect-figma` | Connects your Figma account, after you sign in. Needed for Figma checks. |
| `npx usefidel telemetry status` | Shows whether anonymous setup analytics are on. Also `disable` and `enable`. |
| `npx usefidel help` | Shows help. `<command> --help` works for each command. |

## Sign-in

`login`, `init` and `link` open the browser. If no browser can open, for example over SSH or in a container, the CLI prints the URL to open instead. Sign-in times out after 5 minutes.

If Fidel has no design system connected for the repository, `init` opens the browser so you can install the Fidel GitHub App on it and add your design system. Setup continues in the terminal on its own.

Credentials are saved to `~/.fidel/credentials.json`, readable only by your user.

Figma is never a way to sign in. Connect it after signing in with `connect-figma`.

## Interactive terminal

`init` needs an interactive terminal. In CI, nothing needs to run: the workflow and the GitHub App handle each pull request. Coding agents should ask a person to run `init`. See [Set up Fidel with an AI coding agent](/docs/ai-agents/).

## Telemetry

The CLI sends anonymous setup analytics. Turn them off with `npx usefidel telemetry disable`, or set `DO_NOT_TRACK=1` or `FIDEL_TELEMETRY=0`.

## Related

- [Configuration: fidel.config.json](/docs/configuration/)
- [Troubleshooting](/docs/troubleshooting/)
