On this page

Commands in Statsig CLI

Reference for Statsig CLI commands, including authentication, gate management, experiment management, and project configuration operations.

Getting help

Running siggy with no arguments prints usage and the currently supported commands and options.

bash
$ siggy

# Response
Usage: siggy [options] [command]

Statsig CLI
For information on schema, see /console-api/introduction

Options:
  -V, --version     output the version number
  -h, --help        display help for command

Commands:
  config [options]  view/edit configuration settings
  gates             create/list/edit gates
  dyncon            create/list/edit dynamic configs
  segments          create/list/edit segments
  experiments       create/list/edit experiments
  help [command]    display help for command

Calling each command with the --help option prints the help content for that command.

bash
$ siggy gates --help

# Response
Usage: siggy gates [options] [command]

create/list/edit gates

Options:
  -h, --help                               display help for command

Commands:
  create <gate-name>                       create a new feature gate
  get <gate-id>                            retrieve gate details
  list [options]                           list all gates
  update <gate-id> <gate-properties-json>  update a gate
  delete [options] <gate-id>               delete a gate
  check [options] <gate-id>                check if the current state of the gate for a user
  help [command]                           display help for command

Other commands

You can list, create, update, and delete entities like Gates, Experiments, Dynamic Configs, Segments, and more. Help content lives in code, so running the CLI with the --help option gives the most current information.

For commands that require a JSON body, refer to the schema in the Console API.

Was this helpful?