Flagsmith CLI
$ flagsmith Official Med RiskFlagsmith 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.
brew install Flagsmith/tap/flagsmith Native --json and --jq filtering plus flagsmith eval --js local environment export outperform MCP wrappers for flag state checks.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports --json and built-in --jq field filtering plus flagsmith api for full REST coverage.
- Built-in
--jsonand--jqflags flagsmith api <endpoint>raw API subcommand
Read-only flag list/get, evaluate, and environment document are safe, while enable/disable mutate flag state immediately without --dry-run.
- Explicit
flagsmith.jsonproject/environment binding - No
--dry-runonflag enable/disable
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
Combines flag CRUD, identity evaluation, local SDK JSON hydration (eval --js), and raw API requests.
- Supports
flag,evaluate,environment document, andapi
Official next-gen Flagsmith CLI (Flagsmith/flagsmith-cli) actively maintained under BSD-3-Clause.
- Official
Flagsmith/flagsmith-clirepository
Clear documentation at docs.flagsmith.com/integrating-with-flagsmith/CLI plus --help.
- Official Flagsmith CLI docs
Security, Auth & Guardrails
Stores project/environment binding in flagsmith.json via flagsmith init and supports environment API keys (FLAGSMITH_ENVIRONMENT) for headless evaluations.
BSD-3-Clause open-source CLI; Flagsmith offers a free SaaS tier and open-source self-hosting.
# 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
flagsmith flag list --json
Lists all feature flags and states for the active environment in JSON.
flagsmith evaluate --identity user_123 --json
Resolves SDK-equivalent feature flag values for an identity without modifying flags.
Controlled Writes & Previews
flagsmith flag enable new_checkout_flow --json
Turns on the specified feature flag in the configured Flagsmith environment.
Strengths for Agents
- + Supports both
--jsonand--jqnatively for concise machine-readable output. - + Includes
flagsmith evaluate --identityandflagsmith apifor SDK debugging and full API access.
Caveats & Pitfalls
- !
@flagsmith/clion npm is the older legacy package; preferFlagsmith/tap/flagsmithor GitHub releases. - ! Flag toggle commands (
enable/disable) take effect immediately without--dry-run.