@genfeedai/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.
Files changed (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +226 -0
  3. package/dist/index.js +33966 -0
  4. package/package.json +72 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Genfeed.ai
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,226 @@
1
+ # @genfeedai/cli
2
+
3
+ [![npm version](https://img.shields.io/npm/v/@genfeedai/cli.svg)](https://www.npmjs.com/package/@genfeedai/cli)
4
+ [![CI](https://github.com/genfeedai/cli/actions/workflows/ci.yml/badge.svg)](https://github.com/genfeedai/cli/actions/workflows/ci.yml)
5
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
6
+
7
+ ```
8
+ ___ __ _ ___ _ ___
9
+ / __|___ _ _ / _|___ ___ ___| | / __| | |_ _|
10
+ | (_ / -_) ' \ | _/ -_) -_) -_) | | (__| |__ | |
11
+ \___\___|_||_||_| \___\___\___|_| \___|____|___|
12
+
13
+ > What image | video do you want to create? _
14
+ ```
15
+
16
+ CLI tool for [Genfeed.ai](https://genfeed.ai) - Generate AI images and videos from your terminal.
17
+
18
+ ## Requirements
19
+
20
+ - Node.js 18+
21
+ - A [Genfeed.ai](https://genfeed.ai) account with API access
22
+
23
+ ## Installation
24
+
25
+ Using bun (recommended):
26
+
27
+ ```bash
28
+ bun add -g @genfeedai/cli
29
+ ```
30
+
31
+ Using npm:
32
+
33
+ ```bash
34
+ npm install -g @genfeedai/cli
35
+ ```
36
+
37
+ ## Quick Start
38
+
39
+ Login with your API key:
40
+
41
+ ```bash
42
+ genfeed login
43
+ ```
44
+
45
+ Generate an image:
46
+
47
+ ```bash
48
+ genfeed generate image "A futuristic cityscape at sunset"
49
+ ```
50
+
51
+ Generate a video:
52
+
53
+ ```bash
54
+ genfeed generate video "A drone flying over mountains"
55
+ ```
56
+
57
+ ## Authentication
58
+
59
+ Get your API key from the [Genfeed.ai dashboard](https://app.genfeed.ai/settings/api-keys).
60
+
61
+ Interactive login:
62
+
63
+ ```bash
64
+ genfeed login
65
+ ```
66
+
67
+ Non-interactive login:
68
+
69
+ ```bash
70
+ genfeed login --key gf_live_xxx
71
+ ```
72
+
73
+ Check current user:
74
+
75
+ ```bash
76
+ genfeed whoami
77
+ ```
78
+
79
+ Logout:
80
+
81
+ ```bash
82
+ genfeed logout
83
+ ```
84
+
85
+ ## Commands
86
+
87
+ ### Brand Management
88
+
89
+ List all brands:
90
+
91
+ ```bash
92
+ genfeed brands
93
+ ```
94
+
95
+ Select active brand:
96
+
97
+ ```bash
98
+ genfeed brands select
99
+ ```
100
+
101
+ Show current brand:
102
+
103
+ ```bash
104
+ genfeed brands current
105
+ ```
106
+
107
+ ### Image Generation
108
+
109
+ Basic generation:
110
+
111
+ ```bash
112
+ genfeed generate image "Your prompt here"
113
+ ```
114
+
115
+ With options:
116
+
117
+ ```bash
118
+ genfeed generate image "Your prompt" --model imagen-4 --width 1920 --height 1080 --output ./image.jpg
119
+ ```
120
+
121
+ Don't wait for completion:
122
+
123
+ ```bash
124
+ genfeed generate image "Your prompt" --no-wait
125
+ ```
126
+
127
+ ### Video Generation
128
+
129
+ Basic generation:
130
+
131
+ ```bash
132
+ genfeed generate video "Your prompt here"
133
+ ```
134
+
135
+ With options:
136
+
137
+ ```bash
138
+ genfeed generate video "Your prompt" --model google-veo-3 --duration 10 --resolution 1080p --output ./video.mp4
139
+ ```
140
+
141
+ ### Check Status
142
+
143
+ Check image status:
144
+
145
+ ```bash
146
+ genfeed status <id>
147
+ ```
148
+
149
+ Check video status:
150
+
151
+ ```bash
152
+ genfeed status <id> --type video
153
+ ```
154
+
155
+ ## Options
156
+
157
+ ### Global Options
158
+
159
+ | Option | Description |
160
+ |--------|-------------|
161
+ | `--json` | Output as JSON (for scripting) |
162
+ | `--help` | Show help |
163
+ | `--version` | Show version |
164
+
165
+ ### Generation Options
166
+
167
+ | Option | Description |
168
+ |--------|-------------|
169
+ | `-m, --model <model>` | Model to use |
170
+ | `-b, --brand <id>` | Override active brand |
171
+ | `-o, --output <path>` | Download to file |
172
+ | `--no-wait` | Don't wait for completion |
173
+
174
+ ### Image-specific Options
175
+
176
+ | Option | Description |
177
+ |--------|-------------|
178
+ | `-w, --width <px>` | Image width |
179
+ | `-h, --height <px>` | Image height |
180
+
181
+ ### Video-specific Options
182
+
183
+ | Option | Description |
184
+ |--------|-------------|
185
+ | `-d, --duration <sec>` | Video duration |
186
+ | `-r, --resolution <res>` | Resolution (720p, 1080p, 4k) |
187
+
188
+ ## Scripting
189
+
190
+ Use `--json` for machine-readable output:
191
+
192
+ Get image URL:
193
+
194
+ ```bash
195
+ URL=$(genfeed generate image "prompt" --json | jq -r '.url')
196
+ ```
197
+
198
+ Check status programmatically:
199
+
200
+ ```bash
201
+ STATUS=$(genfeed status abc123 --json | jq -r '.status')
202
+ ```
203
+
204
+ ## Configuration
205
+
206
+ Config is stored in `~/.config/genfeed/config.json`:
207
+
208
+ ```json
209
+ {
210
+ "apiKey": "gf_live_xxx",
211
+ "apiUrl": "https://api.genfeed.ai/v1",
212
+ "activeBrand": "507f1f77bcf86cd799439011",
213
+ "defaults": {
214
+ "imageModel": "imagen-4",
215
+ "videoModel": "google-veo-3"
216
+ }
217
+ }
218
+ ```
219
+
220
+ ## Contributing
221
+
222
+ Contributions are welcome! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
223
+
224
+ ## License
225
+
226
+ MIT