Loading...
Loading...
Manage Flipt feature flags - list, create, enable/disable, and configure rollout rules. Use when you need to control feature flag state or set up segmented rollouts.
npx skill4agent add civitai/civitai fliptnode .claude/skills/flipt/flipt.mjs <command> [options]| Command | Description |
|---|---|
| List all flags |
| Get details for a specific flag |
| Create a new boolean flag |
| Enable a flag (set to true) |
| Disable a flag (set to false) |
| Delete a flag (requires confirmation) |
| Flag | Description |
|---|---|
| Description for new flag |
| Create flag as enabled (default: disabled) |
| Output results as JSON |
| Minimal output |
| Skip confirmation prompts |
# List all flags
node .claude/skills/flipt/flipt.mjs list
# Get a specific flag
node .claude/skills/flipt/flipt.mjs get gift-card-vendor-waifu-way
# Create a new flag (disabled by default)
node .claude/skills/flipt/flipt.mjs create my-new-feature -d "Enable new feature for testing"
# Create a flag that's enabled immediately
node .claude/skills/flipt/flipt.mjs create my-feature --enabled -d "Already enabled feature"
# Enable a flag
node .claude/skills/flipt/flipt.mjs enable my-new-feature
# Disable a flag
node .claude/skills/flipt/flipt.mjs disable my-new-feature
# Delete a flag (with confirmation)
node .claude/skills/flipt/flipt.mjs delete old-flag
# Delete without confirmation
node .claude/skills/flipt/flipt.mjs delete old-flag --force
# JSON output for scripting
node .claude/skills/flipt/flipt.mjs list --jsoncivitai/flipt-state# Clone the state repo
gh repo clone civitai/flipt-state /tmp/flipt-state
# Edit civitai-app/default/features.yaml
# Add your flag under the `flags:` section
# Commit and push
cd /tmp/flipt-state
git add -A && git commit -m "Add new feature flag" && git pushflags:
- key: my-feature-flag
name: my-feature-flag
type: BOOLEAN_FLAG_TYPE
description: Description of what this flag controls
enabled: false
# Optional: rollout rules
rollouts:
- threshold:
percentage: 50
value: true
- segment:
keys:
- moderators
operator: OR_SEGMENT_OPERATOR
value: true.env.example.envcp .claude/skills/flipt/.env.example .claude/skills/flipt/.envFLIPT_URLFLIPT_API_TOKEN