CLI Overview

The Flagify CLI lets you manage feature flags directly from your terminal. It integrates into your development workflow and CI/CD pipelines.

Installation

npm

npm install -g @flagify/cli

Homebrew (macOS / Linux)

brew tap flagifyhq/tap
brew install flagify

Binary download

Download the latest release from GitHub Releases for your platform (macOS, Linux, Windows — amd64 and arm64).

Verify the installation:

flagify version

Authentication

Authenticate with your Flagify account:

flagify login

This opens the Flagify console in your browser. Log in if needed, then click Authorize to grant the CLI access. Tokens are stored locally in ~/.flagify/config.json.

To sign out:

flagify logout

Quick usage

List all flags

flagify flags list --project <project-id>

Create a new flag

flagify flags create my-flag --project <project-id> --type boolean

Toggle a flag

flagify flags toggle my-flag --project <project-id> --environment development

The toggle command flips the current state — if the flag is ON it turns OFF, and vice versa.

Global options

These options work with any command:

OptionAliasDescription
--project-pProject ID
--environment-eTarget environment
--help-hShow help for any command

What’s next