---
title: Statsig CLI ("Siggy")
description: "Introduction to the Statsig CLI for managing feature gates, experiments, and project configuration from your terminal and CI environments."
product: general
lang: en
token_estimate: 584
---
# Statsig CLI ("Siggy")

## How the Statsig CLI works

The Statsig CLI (`siggy`) manages Feature Gates, Experiments, and Dynamic Configs from the terminal. Create, update, and delete configs through commands, run them in scripts, or integrate Statsig configuration into CI/CD pipelines. Use the Statsig Console for one-off visual changes; use the CLI when you need repeatable, automated configuration management.

> For AI agents: a documentation index is available at [/llms.txt](/llms.txt). Append `.md` to any page URL for markdown, or send `Accept: text/markdown`.

## Why use the Statsig CLI

### Efficiency

The Statsig CLI provides a fast way to interact with Statsig, reducing the need for manual actions through the Console interface. It allows quick execution of tasks with simple commands.

### Automation

You can integrate the CLI into CI/CD pipelines to automate the management of Feature Gates and Experiments.

### Consistency

The CLI enables scriptable and repeatable actions, which promotes best practices and reduces the risk of human error.

## Installation

### Prerequisites

- Node.js (version 14 or higher)
- npm (Node Package Manager)

### Install and configure

1. Install the Statsig CLI using npm:

```bash
$ npm install -g @statsig/siggy
```

2. Check install

```bash
$ siggy --version
```

> **Info:**
>
> If you get a `command not found` error, add your node global bin folder to your path.
>
> Run `export PATH=$PATH:$(npm get prefix -g)/bin` to add the folder.
>
> If that doesn't work, run the CLI by prefixing `npx` in the command line:
>
> ```bash
> $ npx siggy --version
> ```

3. Configure the API keys by running:

```bash
$ siggy config -c <console-api-key>
$ siggy config -k <client-api-key>
```

> **Info:**
>
> Retrieve these keys from your Statsig project. Log in to Statsig Console at https://console.statsig.com and go to the Settings page (https://console.statsig.com/settings). Select the **Keys & Environments** panel within _Project Settings_, then copy both the Console API Key and Client API Key, and paste them in the Settings dialog.
>
> ![Statsig Console API keys configuration screen](https://docs.statsig.com/images/guides/sidecar-experiments/setup/754cc245-1821-4f75-a87d-08b536422587.png)

### Next steps

- [Commands in CLI](https://docs.statsig.com/statsigcli/commands)

