@genfeedai/cli 0.4.0 → 0.6.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 +176 -77
- package/dist/index.js +19210 -11603
- package/package.json +27 -30
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# @genfeedai/cli
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@genfeedai/cli)
|
|
4
|
-
[](https://github.com/genfeedai/genfeed.ai/actions/workflows/ci.yml)
|
|
5
5
|
[](https://opensource.org/licenses/MIT)
|
|
6
6
|
|
|
7
7
|
```
|
|
@@ -15,6 +15,38 @@
|
|
|
15
15
|
|
|
16
16
|
CLI tool for [Genfeed.ai](https://genfeed.ai) - Generate, schedule, analyze, and publish AI content from your terminal.
|
|
17
17
|
|
|
18
|
+
## Last Verified
|
|
19
|
+
|
|
20
|
+
- **Date:** 2026-08-06
|
|
21
|
+
- **Implemented state source:** local `packages/cli/` commands and package metadata
|
|
22
|
+
- **Delivery state source:** GitHub issues/project metadata
|
|
23
|
+
|
|
24
|
+
## Dual-State Note
|
|
25
|
+
|
|
26
|
+
- **Implemented state:** command behavior documented here should match `src/commands/*`.
|
|
27
|
+
- **Delivery state:** roadmap/priority comes from GitHub Issues/Projects, not this README.
|
|
28
|
+
|
|
29
|
+
## Monorepo Location
|
|
30
|
+
|
|
31
|
+
The CLI lives in `packages/cli` inside the `genfeedai/genfeed.ai` monorepo. It is part of the root `packages/*` workspace and uses the same Turbo build, lint, test, and type-check flow as the other shared packages.
|
|
32
|
+
|
|
33
|
+
Root-level commands:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
bun run build:cli
|
|
37
|
+
bun run test:cli
|
|
38
|
+
bun run type-check:cli
|
|
39
|
+
bun run dev:cli -- --help
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Package-level commands:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
bun run --cwd packages/cli build
|
|
46
|
+
bun run --cwd packages/cli test
|
|
47
|
+
bun run --cwd packages/cli type-check
|
|
48
|
+
```
|
|
49
|
+
|
|
18
50
|
## Requirements
|
|
19
51
|
|
|
20
52
|
- Node.js 18+
|
|
@@ -56,20 +88,42 @@ genfeed generate video "A drone flying over mountains"
|
|
|
56
88
|
|
|
57
89
|
## Authentication
|
|
58
90
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
Interactive login:
|
|
91
|
+
Browser login (opens `https://app.genfeed.ai/oauth/cli` and completes a PKCE flow):
|
|
62
92
|
|
|
63
93
|
```bash
|
|
64
94
|
genfeed login
|
|
65
95
|
```
|
|
66
96
|
|
|
67
|
-
Non-interactive login:
|
|
97
|
+
Non-interactive login with an API key from the [Genfeed.ai dashboard](https://app.genfeed.ai/settings/api-keys) — also the path for self-hosted deployments:
|
|
68
98
|
|
|
69
99
|
```bash
|
|
70
100
|
genfeed login --key gf_live_xxx
|
|
71
101
|
```
|
|
72
102
|
|
|
103
|
+
Paste a key manually instead of opening a browser:
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
genfeed login --interactive
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Self-hosted login — point the browser flow at your own deployment:
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
genfeed login --api-url https://api.yourdomain.com/v1
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
Both URLs are saved to the active profile, so subsequent commands target the same deployment. The
|
|
116
|
+
web app URL serving `/oauth/cli` is derived from the API URL (`api.` → `app.`, or the API origin
|
|
117
|
+
when the API is path-mounted). Override it when your app lives somewhere else:
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
genfeed login --api-url https://yourdomain.com/api/v1 --app-url https://studio.yourdomain.com
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
The same values are settable outside login via `genfeed config set api-url <url>` /
|
|
124
|
+
`genfeed config set app-url <url>`, or the `GENFEED_API_URL` / `GENFEED_APP_URL` env vars.
|
|
125
|
+
`genfeed config show` prints the resolved app URL and marks it `(derived)` when it was inferred.
|
|
126
|
+
|
|
73
127
|
Check current user:
|
|
74
128
|
|
|
75
129
|
```bash
|
|
@@ -84,6 +138,52 @@ genfeed logout
|
|
|
84
138
|
|
|
85
139
|
## Commands
|
|
86
140
|
|
|
141
|
+
### API Keys
|
|
142
|
+
|
|
143
|
+
List, create, rotate, and revoke API keys for headless and MCP access:
|
|
144
|
+
|
|
145
|
+
```bash
|
|
146
|
+
genfeed keys list
|
|
147
|
+
genfeed keys create -n "CI publisher" -p content
|
|
148
|
+
genfeed keys rotate <id>
|
|
149
|
+
genfeed keys revoke <id>
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
`create` takes a scope preset via `-p` (`mcp`, `read`, `content`, `full`) or an explicit `--scopes` list, plus optional `--expires-at`, `--rate-limit`, and `--allow-ip`. The secret is printed once, on creation and on rotation.
|
|
153
|
+
|
|
154
|
+
### CLI Configuration
|
|
155
|
+
|
|
156
|
+
Inspect and edit the active profile:
|
|
157
|
+
|
|
158
|
+
```bash
|
|
159
|
+
genfeed config show
|
|
160
|
+
genfeed config path
|
|
161
|
+
genfeed config set api-url http://localhost:3010/v1
|
|
162
|
+
genfeed config reset --force
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
Settable keys: `agent-model`, `api-key`, `api-url`, `brand`, `fleet-host`, `fleet-port`, `org-id`, `persona`, `role`.
|
|
166
|
+
|
|
167
|
+
### Organizations
|
|
168
|
+
|
|
169
|
+
List your organizations:
|
|
170
|
+
|
|
171
|
+
```bash
|
|
172
|
+
gf organizations
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
Switch the active organization (also updates the default brand):
|
|
176
|
+
|
|
177
|
+
```bash
|
|
178
|
+
gf organizations select
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
Show the current organization:
|
|
182
|
+
|
|
183
|
+
```bash
|
|
184
|
+
gf organizations current
|
|
185
|
+
```
|
|
186
|
+
|
|
87
187
|
### Brand Management
|
|
88
188
|
|
|
89
189
|
List all brands:
|
|
@@ -146,16 +246,22 @@ Generate an article:
|
|
|
146
246
|
genfeed generate article "Write about AI marketing trends" --category marketing
|
|
147
247
|
```
|
|
148
248
|
|
|
249
|
+
Generate several at once, steered by keywords:
|
|
250
|
+
|
|
251
|
+
```bash
|
|
252
|
+
genfeed generate article "Write about AI marketing trends" --count 3 --keywords ai,marketing,seo
|
|
253
|
+
```
|
|
254
|
+
|
|
149
255
|
Generate long-form X article:
|
|
150
256
|
|
|
151
257
|
```bash
|
|
152
|
-
genfeed generate article-x "Write a founder update thread"
|
|
258
|
+
genfeed generate article-x "Write a founder update thread" --tone analytical --words 3000
|
|
153
259
|
```
|
|
154
260
|
|
|
155
|
-
|
|
261
|
+
Article generation is synchronous — the command returns the finished articles, so
|
|
262
|
+
there is nothing to poll. To re-read one later:
|
|
156
263
|
|
|
157
264
|
```bash
|
|
158
|
-
genfeed generate article "Your prompt" --no-wait
|
|
159
265
|
genfeed status <article-id> --type article
|
|
160
266
|
```
|
|
161
267
|
|
|
@@ -179,6 +285,32 @@ Check article status:
|
|
|
179
285
|
genfeed status <id> --type article
|
|
180
286
|
```
|
|
181
287
|
|
|
288
|
+
### Agent Chat
|
|
289
|
+
|
|
290
|
+
Start the interactive Genfeed agent shell:
|
|
291
|
+
|
|
292
|
+
```bash
|
|
293
|
+
genfeed chat
|
|
294
|
+
genfeed chat --thread <thread-id>
|
|
295
|
+
genfeed chat --model claude-3-7-sonnet
|
|
296
|
+
```
|
|
297
|
+
|
|
298
|
+
Send one non-interactive agent turn for Claude/OpenAI/OpenClaw-style tool use:
|
|
299
|
+
|
|
300
|
+
```bash
|
|
301
|
+
genfeed chat send "Plan a launch week content sequence" --json
|
|
302
|
+
genfeed chat send --thread <thread-id> --stdin < prompt.txt
|
|
303
|
+
genfeed chat send "Review this draft" \
|
|
304
|
+
--attachment '{"url":"https://cdn.genfeed.ai/example.png","kind":"image"}' \
|
|
305
|
+
--json
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
Answer a pending input request on an existing thread:
|
|
309
|
+
|
|
310
|
+
```bash
|
|
311
|
+
genfeed threads respond <thread-id> "Use the more technical angle" --json
|
|
312
|
+
```
|
|
313
|
+
|
|
182
314
|
### Batch Generation
|
|
183
315
|
|
|
184
316
|
```bash
|
|
@@ -207,70 +339,6 @@ genfeed credits summary
|
|
|
207
339
|
genfeed posts list --platform twitter --status published
|
|
208
340
|
```
|
|
209
341
|
|
|
210
|
-
### Darkroom (Admin)
|
|
211
|
-
|
|
212
|
-
Check GPU health:
|
|
213
|
-
|
|
214
|
-
```bash
|
|
215
|
-
gf darkroom health
|
|
216
|
-
```
|
|
217
|
-
|
|
218
|
-
Manage ComfyUI service:
|
|
219
|
-
|
|
220
|
-
```bash
|
|
221
|
-
gf darkroom comfy status
|
|
222
|
-
gf darkroom comfy restart
|
|
223
|
-
```
|
|
224
|
-
|
|
225
|
-
List available LoRA models:
|
|
226
|
-
|
|
227
|
-
```bash
|
|
228
|
-
gf darkroom loras
|
|
229
|
-
```
|
|
230
|
-
|
|
231
|
-
### Training (Admin)
|
|
232
|
-
|
|
233
|
-
Start LoRA training:
|
|
234
|
-
|
|
235
|
-
```bash
|
|
236
|
-
gf train <handle> --steps 2000 --wait
|
|
237
|
-
```
|
|
238
|
-
|
|
239
|
-
Check training status:
|
|
240
|
-
|
|
241
|
-
```bash
|
|
242
|
-
gf train status <jobId> --watch
|
|
243
|
-
```
|
|
244
|
-
|
|
245
|
-
### Datasets (Admin)
|
|
246
|
-
|
|
247
|
-
View dataset info:
|
|
248
|
-
|
|
249
|
-
```bash
|
|
250
|
-
gf dataset info <handle>
|
|
251
|
-
```
|
|
252
|
-
|
|
253
|
-
Upload training images:
|
|
254
|
-
|
|
255
|
-
```bash
|
|
256
|
-
gf dataset upload <handle> ./images/
|
|
257
|
-
```
|
|
258
|
-
|
|
259
|
-
Download dataset:
|
|
260
|
-
|
|
261
|
-
```bash
|
|
262
|
-
gf dataset download <handle> ./output/
|
|
263
|
-
```
|
|
264
|
-
|
|
265
|
-
### Captioning (Admin)
|
|
266
|
-
|
|
267
|
-
Run Florence-2 auto-captioning on a dataset:
|
|
268
|
-
|
|
269
|
-
```bash
|
|
270
|
-
gf caption <handle>
|
|
271
|
-
gf caption <handle> --trigger "custom_trigger"
|
|
272
|
-
```
|
|
273
|
-
|
|
274
342
|
## Options
|
|
275
343
|
|
|
276
344
|
### Global Options
|
|
@@ -304,6 +372,21 @@ gf caption <handle> --trigger "custom_trigger"
|
|
|
304
372
|
| `-d, --duration <sec>` | Video duration |
|
|
305
373
|
| `-r, --resolution <res>` | Resolution (720p, 1080p, 4k) |
|
|
306
374
|
|
|
375
|
+
### Article-specific Options
|
|
376
|
+
|
|
377
|
+
Article generation is synchronous, so `--no-wait` does not apply. By default,
|
|
378
|
+
articles use the active brand; pass `--brand <id>` to override it.
|
|
379
|
+
|
|
380
|
+
| Option | Description |
|
|
381
|
+
|--------|-------------|
|
|
382
|
+
| `-b, --brand <id>` | Override active brand |
|
|
383
|
+
| `-c, --count <n>` | Number of standard articles (1-4) |
|
|
384
|
+
| `--category <cat>` | Article category |
|
|
385
|
+
| `--keywords <list>` | Comma-separated keywords |
|
|
386
|
+
| `--tone <tone>` | Tone of voice (`article-x` only) |
|
|
387
|
+
| `--words <n>` | Target word count, 2500-10000 (`article-x` only) |
|
|
388
|
+
| `--no-header-image` | Skip the header image (`article-x` only) |
|
|
389
|
+
|
|
307
390
|
## Scripting
|
|
308
391
|
|
|
309
392
|
Use `--json` for machine-readable output:
|
|
@@ -369,6 +452,19 @@ genfeed status $IMAGE_ID --json
|
|
|
369
452
|
genfeed publish $IMAGE_ID --platforms twitter,linkedin --json
|
|
370
453
|
```
|
|
371
454
|
|
|
455
|
+
### External LLM Tooling Example
|
|
456
|
+
|
|
457
|
+
```bash
|
|
458
|
+
# One-shot agent turn from an external model/tool runner
|
|
459
|
+
genfeed chat send "Generate 3 LinkedIn post ideas for our AI launch" --json
|
|
460
|
+
|
|
461
|
+
# Continue the same thread on the next tool call
|
|
462
|
+
genfeed chat send --thread thread_123 "Turn idea 2 into a full post" --json
|
|
463
|
+
|
|
464
|
+
# Resolve a structured follow-up question from the agent
|
|
465
|
+
genfeed threads respond thread_123 "Target early-stage SaaS founders" --json
|
|
466
|
+
```
|
|
467
|
+
|
|
372
468
|
### MCP Server
|
|
373
469
|
|
|
374
470
|
For richer integration, connect directly to the Genfeed MCP server:
|
|
@@ -391,9 +487,12 @@ Config is stored in `~/.gf/config.json`:
|
|
|
391
487
|
"profiles": {
|
|
392
488
|
"default": {
|
|
393
489
|
"apiUrl": "https://api.genfeed.ai/v1",
|
|
490
|
+
"appUrl": "https://app.genfeed.ai",
|
|
394
491
|
"role": "user",
|
|
395
|
-
"
|
|
396
|
-
|
|
492
|
+
"agent": {
|
|
493
|
+
"model": "claude-3-7-sonnet",
|
|
494
|
+
"lastThreadIdByOrganization": {}
|
|
495
|
+
},
|
|
397
496
|
"defaults": {
|
|
398
497
|
"imageModel": "imagen-4",
|
|
399
498
|
"videoModel": "google-veo-3"
|
|
@@ -409,15 +508,15 @@ Config is stored in `~/.gf/config.json`:
|
|
|
409
508
|
|----------|-------------|
|
|
410
509
|
| `GENFEED_API_KEY` | API key |
|
|
411
510
|
| `GENFEED_API_URL` | API base URL |
|
|
511
|
+
| `GENFEED_APP_URL` | Web app URL serving `/oauth/cli` (derived from `GENFEED_API_URL` when unset) |
|
|
412
512
|
| `GENFEED_TOKEN` | Auth token |
|
|
413
513
|
| `GENFEED_ORGANIZATION_ID` | Organization ID |
|
|
414
514
|
| `GENFEED_USER_ID` | User ID |
|
|
415
|
-
| `
|
|
416
|
-
| `GF_DARKROOM_PORT` | Darkroom API port |
|
|
515
|
+
| `GENFEED_AGENT_MODEL` | Default agent model for `chat` / `chat send` |
|
|
417
516
|
|
|
418
517
|
## Contributing
|
|
419
518
|
|
|
420
|
-
Contributions are welcome! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
|
|
519
|
+
Contributions are welcome! Please see the monorepo [CONTRIBUTING.md](https://github.com/genfeedai/genfeed.ai/blob/master/CONTRIBUTING.md) for guidelines.
|
|
421
520
|
|
|
422
521
|
## License
|
|
423
522
|
|