@pollinations/cli 0.1.14 → 0.1.16

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 CHANGED
@@ -37,6 +37,14 @@ printf '%s' "$POLLINATIONS_API_KEY" | polli auth login --with-token
37
37
 
38
38
  Credentials land at `~/.pollinations/credentials.json`. For one-off runs pass `--key sk_...` or set `POLLINATIONS_API_KEY`. Get keys at [enter.pollinations.ai](https://enter.pollinations.ai/keys).
39
39
 
40
+ ```bash
41
+ polli update # npm install -g @pollinations/cli@latest, if installed globally
42
+ ```
43
+
44
+ For npx or a local/project install, `update` prints instructions instead of creating a second global install.
45
+
46
+ Interactive commands show an occasional update notice without waiting for the network. Set `NO_UPDATE_NOTIFIER=1` to disable it. Notices are skipped for scripts, pipes, and `--json`; updates are never installed automatically. Updating leaves credentials and harness settings untouched.
47
+
40
48
  ## Generate
41
49
 
42
50
  ```bash
@@ -92,6 +100,7 @@ Keys can't be edited — to change a name, budget, or model list, revoke and rec
92
100
  polli usage # pollen balance
93
101
  polli usage --history # recent requests
94
102
  polli usage --daily # daily spend
103
+ polli usage --daily --key polli-harness-claude --days 1 # what one harness key cost in the last day
95
104
  polli earnings # developer earnings (default 30 days, --days up to 90)
96
105
  polli quests --claimable # only rewards ready to claim
97
106
  polli agents list # managed prompt agents
@@ -131,8 +140,8 @@ restores the backup.
131
140
  ```bash
132
141
  polli harness --help # supported harnesses
133
142
  polli harness bloom on # creates a dedicated key for Bloom CLI
134
- polli harness dsh on # DeepSeek Harness → Pollinations (default model: deepseek)
135
- polli harness dsh on --model kimi
143
+ polli harness dsh on # DeepSeek Harness → Pollinations
144
+ polli harness dsh on --model moonshotai/kimi-k2.6
136
145
  polli harness dsh on --no-mcp # skip MCP tool configuration
137
146
  polli harness opencode on # enables the Pollinations OpenCode plugin + default model
138
147
  polli harness openclaw on # adds the Pollinations provider + Polli skill to OpenClaw
package/SKILL.md CHANGED
@@ -43,6 +43,7 @@ If `polli` is not installed, run `npm i -g @pollinations/cli@latest` (provides t
43
43
  | List your quests + claim state | `polli quests` (filters: `--open --claimable --claimed --coming-soon`) |
44
44
  | Manage prompt agents | `polli agents list` |
45
45
  | Manage invite-only community models | `polli my-models list` |
46
+ | Update the CLI | `polli update` (global installs only; npx/local get instructions) |
46
47
  | Connect a coding harness to Pollinations | `polli harness <bloom\|dsh\|opencode\|openclaw\|pi\|prime> on` (available adapters: `polli harness --help`) |
47
48
  | Machine-readable output | append `--json` to any command |
48
49
 
@@ -59,7 +60,7 @@ Override the stored key for a single command with `--key <key>`.
59
60
  ```bash
60
61
  polli gen image "a fox reading a book, studio ghibli style" --output fox.png
61
62
  ```
62
- Defaults: `zimage`, 1024x1024. Pick a different model with `--model flux` (see `polli models --type image`). For edits / img2img, pass one or more `--image <url>` flags — **must be public http(s) URLs**, local paths are rejected client-side. **Only models that list `"image"` in `input_modalities` actually consume the flag** — `flux` and `zimage` are text-only and will silently ignore `--image`. Find i2i-capable models with `polli models --type image --json | jq -r '.[] | select(.input_modalities | contains(["image"])) | .name'` (common choices: `nanobanana`, `kontext`, `p-image-edit`). To use a local file, upload it first with `polli upload` (see next recipe).
63
+ Defaults: `zimage`, 1024x1024. Pick a different model with `--model flux` (see `polli models --type image`). For edits / img2img, pass one or more `--image <url>` flags — **must be public http(s) URLs**, local paths are rejected client-side. **Only models that list `"image"` in `input_modalities` actually consume the flag** — `flux` and `zimage` are text-only and will silently ignore `--image`. Find i2i-capable models with `polli models --type image --json | jq -r '.[] | select(.input_modalities | contains(["image"])) | .name'` (common choices: `nanobanana`, `kontext`, `p-image-edit`). To use a local file, upload it first with `polli upload` (see next recipe). **Img2img models may treat `--width`/`--height` as a hint** and keep the source aspect — check the output with `file`/`ffprobe`; if the aspect matters, pre-crop the source or crop afterwards.
63
64
 
64
65
  ### Upload a local file to get a public URL
65
66
  ```bash
@@ -149,6 +150,7 @@ Use `--stats` before choosing a model. **Caveat**: the `err%` column counts **5x
149
150
  polli usage # current pollen balance
150
151
  polli usage --history # recent individual requests
151
152
  polli usage --daily # daily cost summary
153
+ polli usage --daily --key polli-harness-claude --days 1 # cost of one harness key for the last day (`--model`, `--csv` filter/export both views; `--key` is repeatable)
152
154
  polli earnings # developer earnings total + per-entity breakdown (default 30d)
153
155
  polli earnings --days 7 # rolling window, max 90
154
156
  polli quests # your quests + claim state (open/claimable/claimed/coming)
@@ -211,13 +213,13 @@ polli keys revoke <id> # id comes fr
211
213
  polli harness --help # supported harnesses
212
214
  polli harness bloom on # create a dedicated key for Bloom CLI
213
215
  polli harness dsh on # login if needed, mint key "polli-harness-dsh", write provider + default model
214
- polli harness dsh on --model kimi # any tool-calling text model from `polli models`
216
+ polli harness dsh on --model moonshotai/kimi-k2.6 # use the model ID from `polli models`
215
217
  polli harness dsh on --no-mcp # configure the provider and skill without MCP tools
216
218
  polli harness dsh off # restore the config backed up before "on"
217
219
  polli harness opencode on # enable the Pollinations OpenCode plugin
218
220
  polli harness opencode off # remove the plugin setup and stored key
219
221
  polli harness pi on # login if needed, mint key "polli-harness-pi", configure Pi with Pollinations
220
- polli harness pi on --model kimi # any tool-calling text model from `polli models`
222
+ polli harness pi on --model moonshotai/kimi-k2.6 # use the model ID from `polli models`
221
223
  polli harness pi off # restore the Pi config backed up before "on"
222
224
  polli harness openclaw on # login if needed, mint key "polli-harness-openclaw", add provider + Polli skill
223
225
  polli harness openclaw off # remove the Pollinations provider, key, and skill
@@ -257,3 +259,5 @@ polli docs --open # open in browser
257
259
  - Running commands without auth — `polli auth status` tells you who you're logged in as and your balance in one call.
258
260
  - **`gen text` streams to a TTY, buffers when piped.** The default now auto-detects — a human at the terminal sees tokens tick in, a pipe/redirect gets the full response once. Force either mode with `--stream` or `--no-stream`. For scripts and chains like `polli gen text … | polli gen audio …`, you don't need to do anything; buffering happens automatically.
259
261
  - **Translating a `polli` workflow into a browser app.** `gen.pollinations.ai` requires a bearer token for generation requests, so a plain client-side `fetch` with no auth returns 401 unless it is served from cache. Mint a scoped key with `polli keys create` and proxy via your own backend.
262
+ - **Backgrounded `polli gen` can fail silently** — no output file, empty log, no error (a safety rejection is an explicit 400). Run in the foreground; if backgrounded, check the `--output` file exists and retry once in the foreground before calling it failed.
263
+ - **Content-safety 400s aren't only about violence.** Body-focused action phrasing can trip a sexual-content category on some edit models. Rephrase the benign intent neutrally (e.g. sport framing) and retry with a new seed.