Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

GrowthBook CLI

$ growthbook Official Med Risk
GrowthBook · Workspace & SaaS · MIT · macos / linux / windows

GrowthBook CLI (growthbook) is generated from GrowthBook's OpenAPI spec to manage feature flags, A/B experiments, metrics, and populations. Designed explicitly for AI agents, it auto-enables --agent-mode under coding agents, supports -o json/yaml/toon, -q/--jq filtering, --dry-run payload previews, and --no-interactive.

FCRS-1.0 Score
91 /100
Excellent
Medium Confidence
Zero-Friction Install
brew install growthbook/tap/growthbook
CLI vs MCP Decision CLI Preferred vs MCP

Built-in --agent-mode, -q/--jq filtering, TOON output, and --dry-run provide top-tier token efficiency without MCP overhead.

Agent-Readiness Checklist

✓ JSON Output
✓ Field Filtering
✓ Non-Interactive
✓ Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 25 / 25

Gold-standard agent ergonomics: --agent-mode auto-detection, -o json|yaml|toon, -q/--jq, --no-interactive, and GBCLI_BEARER_AUTH.

  • --agent-mode with CLAUDE_CODE/CURSOR_AGENT auto-detection
  • -o json, -q/--jq, and --no-interactive global flags
Trust & Safety 22 / 25

Supports global --dry-run request previews, named --profile isolation, and --no-interactive safety across OpenAPI operations.

  • Global --dry-run API payload preview
  • Named credential profiles via --profile
Setup & Portability 13 / 15

Available via Homebrew tap (growthbook/tap/growthbook), npm/npx (growthbook), and GitHub releases across OSes.

  • Homebrew tap, npm package, and prebuilt binaries
Utility & Efficiency 14 / 15

OpenAPI-generated coverage of features, experiments, schedules, metrics, and populations with TOON token compression.

  • Full REST coverage with jq and TOON compact formatting
Maintenance & Lineage 9 / 10

Official growthbook/cli repository maintained under MIT.

  • Official growthbook/cli repository
Docs & Verifiability 8 / 10

Includes auto-generated Markdown command docs under cli/docs/ in GitHub plus --help.

  • Generated cli/docs/ markdown reference and docs.growthbook.io

Security, Auth & Guardrails

Auth Modes
Env API Key Config File
Credential Storage

Authenticates headlessly via GBCLI_BEARER_AUTH (or --bearer-auth) or named credential profiles stored locally via growthbook profiles.

Side Effects
Read-Only Remote Write Destructive
Cost & Quotas

MIT open-source CLI; GrowthBook offers a free open-source self-hosted edition and a free Starter Cloud tier.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# GrowthBook CLI Agent Rules
- Always pass `-o json` (or use `--agent-mode`), `-q/--jq`, and `--no-interactive`.
- Run mutations with `--dry-run` first and confirm `--profile` targets staging before production.

Agent-Ready Command Recipes

Safe Read-Only Queries

List feature flags filtered with jq
growthbook features list -o json -q '.features[] | {id, archived}' --no-interactive

Retrieves feature flag IDs and archive status with minimal token footprint.

Inspect current authenticated profile
growthbook whoami -o json --no-interactive

Verifies the active GrowthBook server URL and token identity in JSON.

Controlled Writes & Previews

Dry-run a feature flag update
growthbook features toggle --id my-flag --dry-run -o json --no-interactive

Previews the exact API request payload without mutating the remote feature flag.

Strengths for Agents

  • + Native --agent-mode, -o json/toon, -q/--jq, and --no-interactive built from the ground up for agents.
  • + Global --dry-run previews exact API payloads before applying flag or experiment changes.

Caveats & Pitfalls

  • ! Requires GBCLI_BEARER_AUTH or a configured --profile secret key with appropriate RBAC permissions.
  • ! OpenAPI-derived command paths distinguish between features (v2) and features-v1.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI