@flagify/cli 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -42,32 +42,35 @@ flagify flags toggle my-flag -p <project-id>
|
|
|
42
42
|
|
|
43
43
|
## Commands
|
|
44
44
|
|
|
45
|
+
> **Machine-readable output**: every read-only command below supports `--format json` for clean, pipe-friendly output. Combine with `jq` in scripts and CI. `--environment` accepts the canonical `development|staging|production` **and** the short aliases `dev|stg|prod`.
|
|
46
|
+
|
|
45
47
|
| Command | Description |
|
|
46
48
|
|---------|-------------|
|
|
47
49
|
| `flagify login` | Authenticate with email and password |
|
|
48
50
|
| `flagify logout` | Clear stored credentials |
|
|
49
51
|
| `flagify whoami` | Show the currently authenticated user |
|
|
50
|
-
| `flagify workspaces list` | List your workspaces |
|
|
52
|
+
| `flagify workspaces list` | List your workspaces (`--format json`) |
|
|
51
53
|
| `flagify workspaces pick` | Interactively select a default workspace |
|
|
52
|
-
| `flagify projects list` | List projects in a workspace |
|
|
53
|
-
| `flagify projects get` | Show project details with environments |
|
|
54
|
+
| `flagify projects list` | List projects in a workspace (`--format json`) |
|
|
55
|
+
| `flagify projects get` | Show project details with environments (`--format json`) |
|
|
54
56
|
| `flagify projects pick` | Interactively select a default project |
|
|
55
57
|
| `flagify projects delete <id>` | Delete a project and all its environments, flags, and segments (admin only) |
|
|
56
58
|
| `flagify environments pick` | Interactively select a default environment |
|
|
57
|
-
| `flagify flags list` | List all flags in a project (`--format json`
|
|
58
|
-
| `flagify flags get` | Get details for a specific flag with per-environment status |
|
|
59
|
+
| `flagify flags list` | List all flags in a project (`--format json`) |
|
|
60
|
+
| `flagify flags get` | Get details for a specific flag with per-environment status (`--format json`) |
|
|
59
61
|
| `flagify flags create` | Create a new feature flag (kebab-case keys enforced) |
|
|
60
62
|
| `flagify flags toggle` | Enable or disable a flag (interactive picker if no key given, supports `--all`) |
|
|
61
|
-
| `flagify keys generate` | Generate API key pair for environment |
|
|
62
|
-
| `flagify keys list` | List API keys for environment |
|
|
63
|
+
| `flagify keys generate` | Generate API key pair for environment (`--format json`) |
|
|
64
|
+
| `flagify keys list` | List API keys for environment (`--format json`) |
|
|
63
65
|
| `flagify keys revoke` | Revoke all API keys for environment |
|
|
64
|
-
| `flagify segments list` | List user segments in a project |
|
|
66
|
+
| `flagify segments list` | List user segments in a project (`--format json`) |
|
|
65
67
|
| `flagify segments create <name>` | Create a segment with optional JSON rules (`--match`, `--rules`) |
|
|
66
68
|
| `flagify segments delete <id>` | Delete a segment by ID |
|
|
67
|
-
| `flagify targeting list <flag-key>` | Show targeting rules for a flag in an environment |
|
|
68
|
-
| `flagify targeting set <flag-key>` | Replace all targeting rules for a flag (`--rules '<json>'`) |
|
|
69
|
+
| `flagify targeting list <flag-key>` | Show targeting rules for a flag in an environment (`--format json`; returns `{flag, environment, rules}`) |
|
|
70
|
+
| `flagify targeting set <flag-key>` | Replace all targeting rules for a flag (`--rules '<json>'`, `--format json`) |
|
|
71
|
+
| `flagify whoami` | Show current authenticated user (`--format json`) |
|
|
69
72
|
| `flagify ai-setup` | Generate AI tool configs (Claude, Cursor, Copilot, Windsurf). Includes the integrations catalogue; use `--include-flags` for a snapshot |
|
|
70
|
-
| `flagify config` | Show current configuration |
|
|
73
|
+
| `flagify config` | Show current configuration (`--format json`) |
|
|
71
74
|
| `flagify config set <key> <value>` | Set a config value (api-url, console-url, workspace, project, environment) |
|
|
72
75
|
| `flagify config get <key>` | Get a single config value |
|
|
73
76
|
| `flagify completion` | Generate shell completion scripts |
|