@pollinations/cli 0.1.21 → 0.1.23
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 +29 -9
- package/SKILL.md +3 -1
- package/dist/index.js +1103 -467
- 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
|
|
|
@@ -137,7 +141,7 @@ polli agents delete <id>
|
|
|
137
141
|
|
|
138
142
|
Creating an agent also creates its callable model listing. See [Publish an Agent](https://github.com/pollinations/pollinations/blob/main/BUILD_YOUR_OWN_AGENT.md) for visibility, billing, and lifecycle details.
|
|
139
143
|
|
|
140
|
-
`polli auth login` creates a key with all account permissions Polli needs: `profile`, `usage`, and `
|
|
144
|
+
`polli auth login` creates a key with all account permissions Polli needs: `profile`, `usage`, `keys`, and `machines`. Use `account:usage` for narrow read-only account state like usage and quests. Use `account:keys` to manage keys and, where invite-only My Models access is enabled, my-models. Quest claiming remains in the dashboard.
|
|
141
145
|
|
|
142
146
|
## Coding harnesses
|
|
143
147
|
|
|
@@ -174,9 +178,25 @@ 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
|
|
|
187
|
+
## Sandboxes
|
|
188
|
+
|
|
189
|
+
Linux VMs from E2B, paid from your wallet (alpha).
|
|
190
|
+
|
|
191
|
+
```bash
|
|
192
|
+
polli sandbox create # prints the id and sets up ssh
|
|
193
|
+
ssh <id>.polli # scp and rsync work too
|
|
194
|
+
polli sandbox timeout <id> 14400 # keep it running 4 hours without ssh
|
|
195
|
+
polli sandbox kill <id>
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
The default template comes logged in with the coding harnesses installed; the first interactive `ssh` connects them. See [Sandboxes](https://gen.pollinations.ai/docs#tag/sandboxes) for cost, limits, and using E2B's own CLI and SDKs.
|
|
199
|
+
|
|
180
200
|
## Links
|
|
181
201
|
|
|
182
202
|
- [gen.pollinations.ai](https://gen.pollinations.ai) — API
|
package/SKILL.md
CHANGED
|
@@ -50,6 +50,8 @@ If `polli` is not installed, run `npm i -g @pollinations/cli@latest` (provides t
|
|
|
50
50
|
| Manage invite-only community models | `polli my-models list` |
|
|
51
51
|
| Update the CLI | `polli update` (global installs only; npx/local get instructions) |
|
|
52
52
|
| Connect a coding harness to Pollinations | `polli harness <bloom\|dsh\|hermes\|opencode\|openclaw\|pi\|prime\|tgpt> on` (available adapters: `polli harness --help`) |
|
|
53
|
+
| Start a Linux sandbox (alpha) | `polli sandbox create` (then `list`, `logs <id>`, `timeout <id> <seconds>`, `kill <id>`); the default template comes logged in, with the coding harnesses |
|
|
54
|
+
| ssh / scp / rsync into a sandbox | `ssh <sandbox-id>.polli` |
|
|
53
55
|
| Machine-readable output | append `--json` to any command |
|
|
54
56
|
|
|
55
57
|
## Setup
|
|
@@ -73,7 +75,7 @@ Defaults: `zimage`, 1024x1024. Pick a different model with `--model flux` (see `
|
|
|
73
75
|
URL=$(polli upload cat.png)
|
|
74
76
|
polli gen image "make the cat purple" --image "$URL" --output purple.png
|
|
75
77
|
```
|
|
76
|
-
`polli upload <file>`
|
|
78
|
+
`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
79
|
|
|
78
80
|
### Generate text
|
|
79
81
|
```bash
|