@genfeedai/cli 0.3.1 → 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 +196 -42
- package/dist/index.js +27333 -17878
- package/package.json +28 -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
|
```
|
|
@@ -13,7 +13,39 @@
|
|
|
13
13
|
> What image | video do you want to create? _
|
|
14
14
|
```
|
|
15
15
|
|
|
16
|
-
CLI tool for [Genfeed.ai](https://genfeed.ai) - Generate
|
|
16
|
+
CLI tool for [Genfeed.ai](https://genfeed.ai) - Generate, schedule, analyze, and publish AI content from your terminal.
|
|
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
|
+
```
|
|
17
49
|
|
|
18
50
|
## Requirements
|
|
19
51
|
|
|
@@ -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:
|
|
@@ -138,82 +238,105 @@ With options:
|
|
|
138
238
|
genfeed generate video "Your prompt" --model google-veo-3 --duration 10 --resolution 1080p --output ./video.mp4
|
|
139
239
|
```
|
|
140
240
|
|
|
141
|
-
###
|
|
241
|
+
### Article Generation
|
|
142
242
|
|
|
143
|
-
|
|
243
|
+
Generate an article:
|
|
144
244
|
|
|
145
245
|
```bash
|
|
146
|
-
genfeed
|
|
246
|
+
genfeed generate article "Write about AI marketing trends" --category marketing
|
|
147
247
|
```
|
|
148
248
|
|
|
149
|
-
|
|
249
|
+
Generate several at once, steered by keywords:
|
|
150
250
|
|
|
151
251
|
```bash
|
|
152
|
-
genfeed
|
|
252
|
+
genfeed generate article "Write about AI marketing trends" --count 3 --keywords ai,marketing,seo
|
|
153
253
|
```
|
|
154
254
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
Check GPU health:
|
|
255
|
+
Generate long-form X article:
|
|
158
256
|
|
|
159
257
|
```bash
|
|
160
|
-
|
|
258
|
+
genfeed generate article-x "Write a founder update thread" --tone analytical --words 3000
|
|
161
259
|
```
|
|
162
260
|
|
|
163
|
-
|
|
261
|
+
Article generation is synchronous — the command returns the finished articles, so
|
|
262
|
+
there is nothing to poll. To re-read one later:
|
|
164
263
|
|
|
165
264
|
```bash
|
|
166
|
-
|
|
167
|
-
gf darkroom comfy restart
|
|
265
|
+
genfeed status <article-id> --type article
|
|
168
266
|
```
|
|
169
267
|
|
|
170
|
-
|
|
268
|
+
### Check Status
|
|
269
|
+
|
|
270
|
+
Check image status:
|
|
171
271
|
|
|
172
272
|
```bash
|
|
173
|
-
|
|
273
|
+
genfeed status <id>
|
|
174
274
|
```
|
|
175
275
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
Start LoRA training:
|
|
276
|
+
Check video status:
|
|
179
277
|
|
|
180
278
|
```bash
|
|
181
|
-
|
|
279
|
+
genfeed status <id> --type video
|
|
182
280
|
```
|
|
183
281
|
|
|
184
|
-
Check
|
|
282
|
+
Check article status:
|
|
185
283
|
|
|
186
284
|
```bash
|
|
187
|
-
|
|
285
|
+
genfeed status <id> --type article
|
|
188
286
|
```
|
|
189
287
|
|
|
190
|
-
###
|
|
288
|
+
### Agent Chat
|
|
191
289
|
|
|
192
|
-
|
|
290
|
+
Start the interactive Genfeed agent shell:
|
|
193
291
|
|
|
194
292
|
```bash
|
|
195
|
-
|
|
293
|
+
genfeed chat
|
|
294
|
+
genfeed chat --thread <thread-id>
|
|
295
|
+
genfeed chat --model claude-3-7-sonnet
|
|
196
296
|
```
|
|
197
297
|
|
|
198
|
-
|
|
298
|
+
Send one non-interactive agent turn for Claude/OpenAI/OpenClaw-style tool use:
|
|
199
299
|
|
|
200
300
|
```bash
|
|
201
|
-
|
|
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
|
|
202
306
|
```
|
|
203
307
|
|
|
204
|
-
|
|
308
|
+
Answer a pending input request on an existing thread:
|
|
205
309
|
|
|
206
310
|
```bash
|
|
207
|
-
|
|
311
|
+
genfeed threads respond <thread-id> "Use the more technical angle" --json
|
|
208
312
|
```
|
|
209
313
|
|
|
210
|
-
###
|
|
314
|
+
### Batch Generation
|
|
315
|
+
|
|
316
|
+
```bash
|
|
317
|
+
genfeed batch create -n 5 -p twitter,linkedin --topics ai,product --style professional
|
|
318
|
+
genfeed batch list
|
|
319
|
+
genfeed batch show <batch-id>
|
|
320
|
+
genfeed batch approve <batch-id>
|
|
321
|
+
```
|
|
211
322
|
|
|
212
|
-
|
|
323
|
+
### Templates
|
|
213
324
|
|
|
214
325
|
```bash
|
|
215
|
-
|
|
216
|
-
|
|
326
|
+
genfeed template list
|
|
327
|
+
genfeed template create --label "LinkedIn Hook" --purpose prompt --content "Write a hook about {{topic}}"
|
|
328
|
+
genfeed template use <template-id> --variables '{"topic":"AI workflows"}'
|
|
329
|
+
```
|
|
330
|
+
|
|
331
|
+
### Scheduling and Insights
|
|
332
|
+
|
|
333
|
+
```bash
|
|
334
|
+
genfeed schedule calendar
|
|
335
|
+
genfeed insights
|
|
336
|
+
genfeed insights times --platform twitter
|
|
337
|
+
genfeed performance weekly
|
|
338
|
+
genfeed credits summary
|
|
339
|
+
genfeed posts list --platform twitter --status published
|
|
217
340
|
```
|
|
218
341
|
|
|
219
342
|
## Options
|
|
@@ -249,6 +372,21 @@ gf caption <handle> --trigger "custom_trigger"
|
|
|
249
372
|
| `-d, --duration <sec>` | Video duration |
|
|
250
373
|
| `-r, --resolution <res>` | Resolution (720p, 1080p, 4k) |
|
|
251
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
|
+
|
|
252
390
|
## Scripting
|
|
253
391
|
|
|
254
392
|
Use `--json` for machine-readable output:
|
|
@@ -314,6 +452,19 @@ genfeed status $IMAGE_ID --json
|
|
|
314
452
|
genfeed publish $IMAGE_ID --platforms twitter,linkedin --json
|
|
315
453
|
```
|
|
316
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
|
+
|
|
317
468
|
### MCP Server
|
|
318
469
|
|
|
319
470
|
For richer integration, connect directly to the Genfeed MCP server:
|
|
@@ -336,9 +487,12 @@ Config is stored in `~/.gf/config.json`:
|
|
|
336
487
|
"profiles": {
|
|
337
488
|
"default": {
|
|
338
489
|
"apiUrl": "https://api.genfeed.ai/v1",
|
|
490
|
+
"appUrl": "https://app.genfeed.ai",
|
|
339
491
|
"role": "user",
|
|
340
|
-
"
|
|
341
|
-
|
|
492
|
+
"agent": {
|
|
493
|
+
"model": "claude-3-7-sonnet",
|
|
494
|
+
"lastThreadIdByOrganization": {}
|
|
495
|
+
},
|
|
342
496
|
"defaults": {
|
|
343
497
|
"imageModel": "imagen-4",
|
|
344
498
|
"videoModel": "google-veo-3"
|
|
@@ -354,15 +508,15 @@ Config is stored in `~/.gf/config.json`:
|
|
|
354
508
|
|----------|-------------|
|
|
355
509
|
| `GENFEED_API_KEY` | API key |
|
|
356
510
|
| `GENFEED_API_URL` | API base URL |
|
|
511
|
+
| `GENFEED_APP_URL` | Web app URL serving `/oauth/cli` (derived from `GENFEED_API_URL` when unset) |
|
|
357
512
|
| `GENFEED_TOKEN` | Auth token |
|
|
358
513
|
| `GENFEED_ORGANIZATION_ID` | Organization ID |
|
|
359
514
|
| `GENFEED_USER_ID` | User ID |
|
|
360
|
-
| `
|
|
361
|
-
| `GF_DARKROOM_PORT` | Darkroom API port |
|
|
515
|
+
| `GENFEED_AGENT_MODEL` | Default agent model for `chat` / `chat send` |
|
|
362
516
|
|
|
363
517
|
## Contributing
|
|
364
518
|
|
|
365
|
-
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.
|
|
366
520
|
|
|
367
521
|
## License
|
|
368
522
|
|