@great-arrow/cli 0.1.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 +171 -0
- package/dist/index.js +6032 -0
- package/package.json +36 -0
package/README.md
ADDED
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
# @great-arrow/cli (`gad`)
|
|
2
|
+
|
|
3
|
+
Terminal-based access to the Great Arrow Digital platform — memory management, workspace administration, integration diagnostics, MCP tooling, and deployment operations.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g @great-arrow/cli
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Requires **Node.js 20+**.
|
|
12
|
+
|
|
13
|
+
## Authentication
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
# Browser-based login (opens token minting page)
|
|
17
|
+
gad login
|
|
18
|
+
|
|
19
|
+
# Direct token (CI/CD)
|
|
20
|
+
gad login --token gad_xxxxx
|
|
21
|
+
|
|
22
|
+
# Check who you are
|
|
23
|
+
gad whoami
|
|
24
|
+
|
|
25
|
+
# Remove stored credentials
|
|
26
|
+
gad logout
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Tokens are stored in the OS keychain (macOS Keychain / Windows Credential Manager / Linux Secret Service). You can also set `GAD_TOKEN` as an environment variable.
|
|
30
|
+
|
|
31
|
+
## Commands
|
|
32
|
+
|
|
33
|
+
### Memory
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
gad memory create --title "API design decision" --content "We chose REST over GraphQL because..."
|
|
37
|
+
gad memory search "authentication flow"
|
|
38
|
+
gad memory list --layer SEMANTIC --tag auth
|
|
39
|
+
gad memory get <id>
|
|
40
|
+
gad memory delete <id>
|
|
41
|
+
|
|
42
|
+
# Pipe content from stdin
|
|
43
|
+
cat notes.md | gad memory create --title "Meeting notes"
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Workspace
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
gad workspace list
|
|
50
|
+
gad workspace switch my-project
|
|
51
|
+
gad workspace info
|
|
52
|
+
gad workspace members
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Todos
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
gad todo list
|
|
59
|
+
gad todo list --status in_progress
|
|
60
|
+
gad todo create "Fix login bug" --priority high --due 2026-06-05
|
|
61
|
+
gad todo done <id>
|
|
62
|
+
gad todo update <id> --status review
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Diagnostics
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
# Full health check (token, API, integrations, MCP)
|
|
69
|
+
gad doctor
|
|
70
|
+
|
|
71
|
+
# Integration management
|
|
72
|
+
gad integrations list
|
|
73
|
+
gad integrations sync github
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### MCP Server
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
gad mcp status
|
|
80
|
+
gad mcp logs
|
|
81
|
+
gad mcp test
|
|
82
|
+
|
|
83
|
+
# Generate MCP config for your AI client
|
|
84
|
+
gad mcp install claude
|
|
85
|
+
gad mcp install cursor
|
|
86
|
+
gad mcp install kiro
|
|
87
|
+
gad mcp install codex
|
|
88
|
+
gad mcp install gemini
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
`gad mcp install codex` writes Codex's native `~/.codex/config.toml` server
|
|
92
|
+
entry and stores the bearer token in `~/.codex/.env`.
|
|
93
|
+
|
|
94
|
+
### Agents
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
gad agent list
|
|
98
|
+
gad agent invoke research-analyst --task "Summarize Q2 metrics"
|
|
99
|
+
gad ask "What did we decide about the caching layer?"
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### Deployment & Operations
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
gad deploy # Interactive confirmation
|
|
106
|
+
gad deploy --confirm # CI/CD (no prompt)
|
|
107
|
+
gad migrate # Run pending DB migrations
|
|
108
|
+
gad smoke # MCP smoke test suite
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
### Shell Completions
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
gad completions bash >> ~/.bashrc
|
|
115
|
+
gad completions zsh >> ~/.zshrc
|
|
116
|
+
gad completions fish > ~/.config/fish/completions/gad.fish
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
## Output Modes
|
|
120
|
+
|
|
121
|
+
All list/query commands support:
|
|
122
|
+
|
|
123
|
+
| Flag | Effect |
|
|
124
|
+
| ------------ | ---------------------------- |
|
|
125
|
+
| `--json` | Machine-readable JSON output |
|
|
126
|
+
| `--quiet` | Data only, no decorations |
|
|
127
|
+
| `--no-color` | Disable ANSI colors |
|
|
128
|
+
|
|
129
|
+
When stdout is not a TTY (piped), colors and interactive prompts are automatically disabled.
|
|
130
|
+
|
|
131
|
+
## Configuration
|
|
132
|
+
|
|
133
|
+
Optional config file at `~/.gadrc`:
|
|
134
|
+
|
|
135
|
+
```ini
|
|
136
|
+
api_url = https://www.greatarrowdigital.com
|
|
137
|
+
default_workspace = my-project
|
|
138
|
+
output_format = table
|
|
139
|
+
token = gad_xxxxx
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
Precedence: `GAD_TOKEN` env → OS keychain → `.gadrc` file.
|
|
143
|
+
|
|
144
|
+
## Exit Codes
|
|
145
|
+
|
|
146
|
+
| Code | Meaning |
|
|
147
|
+
| ---- | --------------------------------------------- |
|
|
148
|
+
| 0 | Success |
|
|
149
|
+
| 1 | Authentication error (expired token, 401/403) |
|
|
150
|
+
| 2 | Network error (timeout, unreachable, 5xx) |
|
|
151
|
+
| 3 | Validation error (missing args, bad input) |
|
|
152
|
+
|
|
153
|
+
## Development
|
|
154
|
+
|
|
155
|
+
```bash
|
|
156
|
+
# From the repo root
|
|
157
|
+
cd packages/cli
|
|
158
|
+
|
|
159
|
+
# Run tests
|
|
160
|
+
pnpm test
|
|
161
|
+
|
|
162
|
+
# Build (single-file ESM bundle)
|
|
163
|
+
pnpm build
|
|
164
|
+
|
|
165
|
+
# Type check
|
|
166
|
+
pnpm typecheck
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
## License
|
|
170
|
+
|
|
171
|
+
Proprietary — see root [LICENSE](../../LICENSE).
|