@flagify/cli 0.0.2 → 0.0.3
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 +47 -9
- 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
|
-
#
|
|
27
|
-
flagify
|
|
32
|
+
# Discover your resources
|
|
33
|
+
flagify workspaces list
|
|
34
|
+
flagify projects list -w <workspace-id>
|
|
35
|
+
flagify projects get <project-id>
|
|
28
36
|
|
|
29
|
-
#
|
|
30
|
-
flagify flags
|
|
31
|
-
|
|
32
|
-
|
|
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,42 @@ 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
|
|
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 |
|
|
43
56
|
| `flagify flags create` | Create a new feature flag |
|
|
44
|
-
| `flagify flags toggle` | Enable or disable a flag |
|
|
57
|
+
| `flagify flags toggle` | Enable or disable a flag (supports `--all`) |
|
|
58
|
+
| `flagify keys generate` | Generate API key pair for environment |
|
|
59
|
+
| `flagify keys list` | List API keys for environment |
|
|
60
|
+
| `flagify keys revoke` | Revoke all API keys for environment |
|
|
61
|
+
| `flagify ai-setup` | Generate AI tool configs (Claude, Cursor, Copilot, Windsurf). Use `--include-flags` for a snapshot |
|
|
62
|
+
| `flagify config` | Show current configuration |
|
|
63
|
+
| `flagify config set <key> <value>` | Set a config value (api-url, workspace, project, environment) |
|
|
64
|
+
| `flagify config get <key>` | Get a single config value |
|
|
65
|
+
| `flagify completion` | Generate shell completion scripts |
|
|
45
66
|
| `flagify version` | Print CLI version |
|
|
46
67
|
|
|
68
|
+
## Shell Completions
|
|
69
|
+
|
|
70
|
+
**Zsh:**
|
|
71
|
+
```bash
|
|
72
|
+
flagify completion zsh > "${fpath[1]}/_flagify"
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
**Bash:**
|
|
76
|
+
```bash
|
|
77
|
+
flagify completion bash > /usr/local/etc/bash_completion.d/flagify
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
**Fish:**
|
|
81
|
+
```bash
|
|
82
|
+
flagify completion fish > ~/.config/fish/completions/flagify.fish
|
|
83
|
+
```
|
|
84
|
+
|
|
47
85
|
## Configuration
|
|
48
86
|
|
|
49
87
|
The CLI stores credentials in `~/.flagify/config.json`. Use `--project` and `--environment` flags to target specific resources.
|