---
title: "EvalGate CLI automation"
description: "Install and automate EvalGate repository setup, baselines, and regression gates with the published npm CLI."
canonical: "https://www.evalgate.com/cli.md"
last-updated: "2026-08-24"
---

# EvalGate CLI automation

The official CLI ships in the published [`@evalgate/sdk`](https://www.npmjs.com/package/@evalgate/sdk) npm package. It supports repository initialization, authenticated setup, baseline management, local checks, and CI-formatted regression gates.

```bash
npm install --save-dev @evalgate/sdk
npx evalgate auth configure --api-key <install-key>
npx evalgate init
npx evalgate init --apply
npx evalgate baseline update
npx evalgate gate --format github
```

Use `EVALGATE_API_KEY` and `EVALGATE_ORGANIZATION_ID` in CI. Never commit either value. Agents without an interactive browser can use the [human-approved credential handoff](https://www.evalgate.com/agent/setup.md).

- [CLI reference](https://www.evalgate.com/docs/sdk/cli)
- [Developer resources](https://www.evalgate.com/developers.md)
- [OpenAPI](https://www.evalgate.com/openapi.json)
