@genfeedai/cli 0.1.0 → 0.2.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 +150 -7
- package/dist/index.js +23615 -23207
- package/package.json +55 -52
package/README.md
CHANGED
|
@@ -152,6 +152,70 @@ Check video status:
|
|
|
152
152
|
genfeed status <id> --type video
|
|
153
153
|
```
|
|
154
154
|
|
|
155
|
+
### Darkroom (Admin)
|
|
156
|
+
|
|
157
|
+
Check GPU health:
|
|
158
|
+
|
|
159
|
+
```bash
|
|
160
|
+
gf darkroom health
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
Manage ComfyUI service:
|
|
164
|
+
|
|
165
|
+
```bash
|
|
166
|
+
gf darkroom comfy status
|
|
167
|
+
gf darkroom comfy restart
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
List available LoRA models:
|
|
171
|
+
|
|
172
|
+
```bash
|
|
173
|
+
gf darkroom loras
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
### Training (Admin)
|
|
177
|
+
|
|
178
|
+
Start LoRA training:
|
|
179
|
+
|
|
180
|
+
```bash
|
|
181
|
+
gf train <handle> --steps 2000 --wait
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
Check training status:
|
|
185
|
+
|
|
186
|
+
```bash
|
|
187
|
+
gf train status <jobId> --watch
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
### Datasets (Admin)
|
|
191
|
+
|
|
192
|
+
View dataset info:
|
|
193
|
+
|
|
194
|
+
```bash
|
|
195
|
+
gf dataset info <handle>
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
Upload training images:
|
|
199
|
+
|
|
200
|
+
```bash
|
|
201
|
+
gf dataset upload <handle> ./images/
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
Download dataset:
|
|
205
|
+
|
|
206
|
+
```bash
|
|
207
|
+
gf dataset download <handle> ./output/
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
### Captioning (Admin)
|
|
211
|
+
|
|
212
|
+
Run Florence-2 auto-captioning on a dataset:
|
|
213
|
+
|
|
214
|
+
```bash
|
|
215
|
+
gf caption <handle>
|
|
216
|
+
gf caption <handle> --trigger "custom_trigger"
|
|
217
|
+
```
|
|
218
|
+
|
|
155
219
|
## Options
|
|
156
220
|
|
|
157
221
|
### Global Options
|
|
@@ -201,22 +265,101 @@ Check status programmatically:
|
|
|
201
265
|
STATUS=$(genfeed status abc123 --json | jq -r '.status')
|
|
202
266
|
```
|
|
203
267
|
|
|
268
|
+
## Agent Integration
|
|
269
|
+
|
|
270
|
+
The Genfeed CLI is designed for use by AI agents and automation tools.
|
|
271
|
+
|
|
272
|
+
### Non-Interactive Authentication
|
|
273
|
+
|
|
274
|
+
```bash
|
|
275
|
+
genfeed login --key $GENFEED_API_KEY
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
### JSON Output
|
|
279
|
+
|
|
280
|
+
All commands support `--json` for machine-readable output:
|
|
281
|
+
|
|
282
|
+
```bash
|
|
283
|
+
genfeed generate image "A sunset over mountains" --json
|
|
284
|
+
genfeed generate video "Product demo" --json
|
|
285
|
+
genfeed brands --json
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
### Async Operations
|
|
289
|
+
|
|
290
|
+
Use `--no-wait` to get an ID immediately without waiting for completion:
|
|
291
|
+
|
|
292
|
+
```bash
|
|
293
|
+
# Start generation and get ID
|
|
294
|
+
ID=$(genfeed generate image "prompt" --no-wait --json | jq -r '.id')
|
|
295
|
+
|
|
296
|
+
# Poll for completion
|
|
297
|
+
genfeed status $ID --json
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
### Agent Usage Example
|
|
301
|
+
|
|
302
|
+
```bash
|
|
303
|
+
# Authenticate
|
|
304
|
+
genfeed login --key gf_live_xxx
|
|
305
|
+
|
|
306
|
+
# Generate an image
|
|
307
|
+
RESULT=$(genfeed generate image "Professional headshot, studio lighting" --json)
|
|
308
|
+
IMAGE_ID=$(echo $RESULT | jq -r '.id')
|
|
309
|
+
|
|
310
|
+
# Check status
|
|
311
|
+
genfeed status $IMAGE_ID --json
|
|
312
|
+
|
|
313
|
+
# Publish to social media
|
|
314
|
+
genfeed publish $IMAGE_ID --platforms twitter,linkedin --json
|
|
315
|
+
```
|
|
316
|
+
|
|
317
|
+
### MCP Server
|
|
318
|
+
|
|
319
|
+
For richer integration, connect directly to the Genfeed MCP server:
|
|
320
|
+
|
|
321
|
+
```
|
|
322
|
+
Endpoint: https://mcp.genfeed.ai/mcp
|
|
323
|
+
Transport: Streamable HTTP
|
|
324
|
+
Auth: Bearer token (API key)
|
|
325
|
+
```
|
|
326
|
+
|
|
327
|
+
See the [MCP documentation](https://mcp.genfeed.ai/v1/docs) for details.
|
|
328
|
+
|
|
204
329
|
## Configuration
|
|
205
330
|
|
|
206
|
-
Config is stored in `~/.
|
|
331
|
+
Config is stored in `~/.gf/config.json`:
|
|
207
332
|
|
|
208
333
|
```json
|
|
209
334
|
{
|
|
210
|
-
"
|
|
211
|
-
"
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
335
|
+
"activeProfile": "default",
|
|
336
|
+
"profiles": {
|
|
337
|
+
"default": {
|
|
338
|
+
"apiUrl": "https://api.genfeed.ai/v1",
|
|
339
|
+
"role": "user",
|
|
340
|
+
"darkroomHost": "100.106.229.81",
|
|
341
|
+
"darkroomApiPort": 8189,
|
|
342
|
+
"defaults": {
|
|
343
|
+
"imageModel": "imagen-4",
|
|
344
|
+
"videoModel": "google-veo-3"
|
|
345
|
+
}
|
|
346
|
+
}
|
|
216
347
|
}
|
|
217
348
|
}
|
|
218
349
|
```
|
|
219
350
|
|
|
351
|
+
### Environment Variable Overrides
|
|
352
|
+
|
|
353
|
+
| Variable | Description |
|
|
354
|
+
|----------|-------------|
|
|
355
|
+
| `GENFEED_API_KEY` | API key |
|
|
356
|
+
| `GENFEED_API_URL` | API base URL |
|
|
357
|
+
| `GENFEED_TOKEN` | Auth token |
|
|
358
|
+
| `GENFEED_ORGANIZATION_ID` | Organization ID |
|
|
359
|
+
| `GENFEED_USER_ID` | User ID |
|
|
360
|
+
| `GF_DARKROOM_HOST` | Darkroom GPU host IP |
|
|
361
|
+
| `GF_DARKROOM_PORT` | Darkroom API port |
|
|
362
|
+
|
|
220
363
|
## Contributing
|
|
221
364
|
|
|
222
365
|
Contributions are welcome! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
|