@pollinations/cli 0.1.21 → 0.1.22
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 +15 -8
- package/SKILL.md +1 -1
- package/dist/index.js +697 -416
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,14 +4,20 @@ The Pollinations CLI — for humans, AI agents, and everything in between.
|
|
|
4
4
|
|
|
5
5
|
Generate text, images, audio, video from the terminal. Backed by the [Pollinations API](https://gen.pollinations.ai).
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
<a href="https://github.com/user-attachments/assets/c3ff5c45-672c-4c45-9027-7743d32f9785">▶️ Watch the demo</a>
|
|
9
|
-
</video>
|
|
7
|
+
## First result
|
|
10
8
|
|
|
11
9
|
```bash
|
|
12
|
-
|
|
10
|
+
npm install -g @pollinations/cli
|
|
11
|
+
polli auth login
|
|
12
|
+
polli gen text "Say hello in one sentence" --model openai/gpt-5.4-nano
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
+
Device login opens a browser for approval. The last command prints a short, low-cost result in your terminal. To try an image next, run `polli gen image "a cat in space" --output cat.png` and check that `cat.png` was saved.
|
|
16
|
+
|
|
17
|
+
<video src="https://github.com/user-attachments/assets/c3ff5c45-672c-4c45-9027-7743d32f9785" controls muted loop playsinline width="720">
|
|
18
|
+
<a href="https://github.com/user-attachments/assets/c3ff5c45-672c-4c45-9027-7743d32f9785">▶️ Watch the demo</a>
|
|
19
|
+
</video>
|
|
20
|
+
|
|
15
21
|
## For AI agents
|
|
16
22
|
|
|
17
23
|
Point your coding agent (Claude Code, Cursor, Windsurf, Codex) at the skill file and it gets the full usage map — flags, stdin conventions, `--json` output shape, error codes, the lot:
|
|
@@ -24,14 +30,12 @@ Every command is agent-friendly:
|
|
|
24
30
|
|
|
25
31
|
- `--json` — structured stdout, human messages to stderr. Safe to parse.
|
|
26
32
|
- Exit code `0` on success, non-zero on error.
|
|
27
|
-
-
|
|
33
|
+
- A 402 error links to your balance, Quests, and top-up options.
|
|
28
34
|
- `polli auth status --json` (or `polli whoami --json`) exposes everything about the current session.
|
|
29
35
|
|
|
30
|
-
##
|
|
36
|
+
## Other ways to start
|
|
31
37
|
|
|
32
38
|
```bash
|
|
33
|
-
npm install -g @pollinations/cli # installs the `polli` binary
|
|
34
|
-
polli auth login # device-flow via enter.pollinations.ai
|
|
35
39
|
printf '%s' "$POLLINATIONS_API_KEY" | polli auth login --with-token
|
|
36
40
|
```
|
|
37
41
|
|
|
@@ -174,6 +178,9 @@ stores its provider and skill under `$HERMES_HOME` (default `~/.hermes`, or
|
|
|
174
178
|
install its hosted MCP servers with `polli mcp install hermes --all`. OpenCode uses
|
|
175
179
|
its official plugin; OpenClaw uses `openclaw.json`, while Pi and Prime Agent use
|
|
176
180
|
their native `models.json` provider support.
|
|
181
|
+
Pi 0.99+ also supports `polli mcp install pi --all` for native hosted MCP
|
|
182
|
+
servers. Run `/reload` in Pi afterward; remove them with `polli mcp remove pi`.
|
|
183
|
+
Model setup remains compatible with older Pi versions.
|
|
177
184
|
|
|
178
185
|
See [Coding Harnesses](https://github.com/pollinations/pollinations/blob/main/CODING_HARNESSES.md) for what each profile changes and how to add one.
|
|
179
186
|
|
package/SKILL.md
CHANGED
|
@@ -73,7 +73,7 @@ Defaults: `zimage`, 1024x1024. Pick a different model with `--model flux` (see `
|
|
|
73
73
|
URL=$(polli upload cat.png)
|
|
74
74
|
polli gen image "make the cat purple" --image "$URL" --output purple.png
|
|
75
75
|
```
|
|
76
|
-
`polli upload <file>`
|
|
76
|
+
`polli upload <file>` streams one raw-file request to `media.pollinations.ai` (400 MiB max; 30-day lifecycle, refreshed by GETs once the object is at least 15 days old). Each upload receives a unique id. Human mode: URL on stdout and id/size/contentType on stderr. `--json`: full upload response on stdout. The returned URL is public (no auth to fetch) and works anywhere `--image` is accepted — `gen image`, `gen video`, etc.
|
|
77
77
|
|
|
78
78
|
### Generate text
|
|
79
79
|
```bash
|