@flagify/cli 0.0.2 → 1.0.5

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.
Files changed (2) hide show
  1. package/README.md +49 -10
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -17,20 +17,27 @@ brew install flagify
17
17
 
18
18
  Or download binaries directly from [GitHub Releases](https://github.com/flagifyhq/cli/releases).
19
19
 
20
+ **Tip:** Add a short alias to your shell profile for faster usage:
21
+
22
+ ```bash
23
+ echo 'alias flag="flagify"' >> ~/.zshrc && source ~/.zshrc
24
+ ```
25
+
20
26
  ## Quick Start
21
27
 
22
28
  ```bash
23
29
  # Login to your account
24
30
  flagify login
25
31
 
26
- # List feature flags
27
- flagify flags list
32
+ # Discover your resources
33
+ flagify workspaces list
34
+ flagify projects list -w <workspace-id>
35
+ flagify projects get <project-id>
28
36
 
29
- # Create a new flag
30
- flagify flags create --key my-flag --name "My Flag" --type boolean
31
-
32
- # Toggle a flag
33
- flagify flags toggle my-flag --enabled
37
+ # Manage feature flags
38
+ flagify flags list -p <project-id>
39
+ flagify flags create my-flag -p <project-id> --type boolean
40
+ flagify flags toggle my-flag -p <project-id>
34
41
  ```
35
42
 
36
43
  ## Commands
@@ -39,11 +46,43 @@ flagify flags toggle my-flag --enabled
39
46
  |---------|-------------|
40
47
  | `flagify login` | Authenticate with email and password |
41
48
  | `flagify logout` | Clear stored credentials |
42
- | `flagify flags list` | List all flags in the current project |
43
- | `flagify flags create` | Create a new feature flag |
44
- | `flagify flags toggle` | Enable or disable a flag |
49
+ | `flagify workspaces list` | List your workspaces |
50
+ | `flagify workspaces pick` | Interactively select a default workspace |
51
+ | `flagify projects list` | List projects in a workspace |
52
+ | `flagify projects get` | Show project details with environments |
53
+ | `flagify projects pick` | Interactively select a default project |
54
+ | `flagify environments pick` | Interactively select a default environment |
55
+ | `flagify flags list` | List all flags in a project (`--format json` for machine-readable output) |
56
+ | `flagify flags get` | Get details for a specific flag with per-environment status |
57
+ | `flagify flags create` | Create a new feature flag (kebab-case keys enforced) |
58
+ | `flagify flags toggle` | Enable or disable a flag (interactive picker if no key given, supports `--all`) |
59
+ | `flagify keys generate` | Generate API key pair for environment |
60
+ | `flagify keys list` | List API keys for environment |
61
+ | `flagify keys revoke` | Revoke all API keys for environment |
62
+ | `flagify ai-setup` | Generate AI tool configs (Claude, Cursor, Copilot, Windsurf). Use `--include-flags` for a snapshot |
63
+ | `flagify config` | Show current configuration |
64
+ | `flagify config set <key> <value>` | Set a config value (api-url, workspace, project, environment) |
65
+ | `flagify config get <key>` | Get a single config value |
66
+ | `flagify completion` | Generate shell completion scripts |
45
67
  | `flagify version` | Print CLI version |
46
68
 
69
+ ## Shell Completions
70
+
71
+ **Zsh:**
72
+ ```bash
73
+ flagify completion zsh > "${fpath[1]}/_flagify"
74
+ ```
75
+
76
+ **Bash:**
77
+ ```bash
78
+ flagify completion bash > /usr/local/etc/bash_completion.d/flagify
79
+ ```
80
+
81
+ **Fish:**
82
+ ```bash
83
+ flagify completion fish > ~/.config/fish/completions/flagify.fish
84
+ ```
85
+
47
86
  ## Configuration
48
87
 
49
88
  The CLI stores credentials in `~/.flagify/config.json`. Use `--project` and `--environment` flags to target specific resources.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flagify/cli",
3
- "version": "0.0.2",
3
+ "version": "1.0.5",
4
4
  "description": "Flagify CLI — manage feature flags from the terminal",
5
5
  "license": "MIT",
6
6
  "bin": {