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

Flagsmith CLI

$ flagsmith Official Med Risk
Flagsmith · Workspace & SaaS · BSD-3-Clause · macos / linux / windows

Flagsmith CLI (flagsmith) manages feature flags, environments, and SDK-style flag evaluations (flagsmith evaluate --identity), and exposes raw REST endpoints via flagsmith api. Built-in --json and --jq filtering make the next-gen Go CLI highly scriptable and token-efficient for agents.

FCRS-1.0 Score
86 /100
Good
Medium Confidence
Zero-Friction Install
brew install Flagsmith/tap/flagsmith
CLI vs MCP Decision CLI Preferred vs MCP

Native --json and --jq filtering plus flagsmith eval --js local environment export outperform MCP wrappers for flag state checks.

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 23 / 25

Supports --json and built-in --jq field filtering plus flagsmith api for full REST coverage.

  • Built-in --json and --jq flags
  • flagsmith api <endpoint> raw API subcommand
Trust & Safety 20 / 25

Read-only flag list/get, evaluate, and environment document are safe, while enable/disable mutate flag state immediately without --dry-run.

  • Explicit flagsmith.json project/environment binding
  • No --dry-run on flag enable/disable
Setup & Portability 13 / 15

Go binary via Homebrew (Flagsmith/tap/flagsmith), PowerShell/shell installers, and GitHub releases (legacy npm @flagsmith/cli also exists).

  • Homebrew tap and prebuilt GitHub release binaries
Utility & Efficiency 13 / 15

Combines flag CRUD, identity evaluation, local SDK JSON hydration (eval --js), and raw API requests.

  • Supports flag, evaluate, environment document, and api
Maintenance & Lineage 9 / 10

Official next-gen Flagsmith CLI (Flagsmith/flagsmith-cli) actively maintained under BSD-3-Clause.

  • Official Flagsmith/flagsmith-cli repository
Docs & Verifiability 8 / 10

Clear documentation at docs.flagsmith.com/integrating-with-flagsmith/CLI plus --help.

  • Official Flagsmith CLI docs

Security, Auth & Guardrails

Auth Modes
Config File Env API Key OAuth Browser
Credential Storage

Stores project/environment binding in flagsmith.json via flagsmith init and supports environment API keys (FLAGSMITH_ENVIRONMENT) for headless evaluations.

Side Effects
Read-Only Local Write Remote Write
Cost & Quotas

BSD-3-Clause open-source CLI; Flagsmith offers a free SaaS tier and open-source self-hosting.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Flagsmith CLI Agent Rules
- Check `flagsmith.json` and pass `--json` (with `--jq` where needed) on every flag inspection.
- Confirm the active environment before calling `flagsmith flag enable` or `disable`.

Agent-Ready Command Recipes

Safe Read-Only Queries

List feature flags in JSON
flagsmith flag list --json

Lists all feature flags and states for the active environment in JSON.

Evaluate flags for a specific user identity
flagsmith evaluate --identity user_123 --json

Resolves SDK-equivalent feature flag values for an identity without modifying flags.

Controlled Writes & Previews

Enable a feature flag in the bound environment
flagsmith flag enable new_checkout_flow --json

Turns on the specified feature flag in the configured Flagsmith environment.

Strengths for Agents

  • + Supports both --json and --jq natively for concise machine-readable output.
  • + Includes flagsmith evaluate --identity and flagsmith api for SDK debugging and full API access.

Caveats & Pitfalls

  • ! @flagsmith/cli on npm is the older legacy package; prefer Flagsmith/tap/flagsmith or GitHub releases.
  • ! Flag toggle commands (enable/disable) take effect immediately without --dry-run.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI