@pollinations/cli 0.1.55 → 0.1.57

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/SKILL.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: polli
3
- description: Generate images, text, audio, video, and transcribe speech via the Pollinations API using the polli CLI. Use when asked to generate media, call pollinations.ai, check pollen balance, list models, manage API keys, inspect quests, manage agents or my-models, or run polli commands.
3
+ description: Generate images, text, audio, video, and transcribe speech via the Pollinations API using the polli CLI. Use when asked to generate media, call pollinations.ai, check pollen balance, list models, manage API keys, inspect quests, manage agents or my-models, publish a static site, or run polli commands.
4
4
  allowed-tools: Bash(polli *)
5
5
  ---
6
6
 
@@ -19,6 +19,7 @@ If `polli` is not installed, run `npm i -g @pollinations/cli@latest` (provides t
19
19
  - User wants to **browse or filter available models**
20
20
  - User wants to inspect **quests** or manage invite-only **my-models**
21
21
  - User wants to create or update a hosted prompt **agent**
22
+ - User wants to **publish a website or web app** they built
22
23
 
23
24
  For agent-assisted login, use `polli --json auth login --no-browser`. Read stderr while the command runs and show the user the verification URL and user code so they can review access. On approval, stdout contains one JSON result: `{"authenticated":true}`. Tokens are stored locally and never included in that result.
24
25
 
@@ -55,6 +56,7 @@ For agent-assisted login, use `polli --json auth login --no-browser`. Read stder
55
56
  | Connect a coding harness to Pollinations | `polli harness <bloom\|dsh\|hermes\|opencode\|openclaw\|pi\|prime\|tgpt> on` (available adapters: `polli harness --help`) |
56
57
  | Start a Linux sandbox (alpha) | `polli sandbox create` (`--timeout <seconds>` to keep it running without ssh, `0` until you pause or kill it; `pollinations-large` as the template for 4 vCPU and 8 GB; then `list`, `logs <id>`, `timeout <id> <seconds>`, `pause <id>`, `kill <id>`); the default template comes logged in, with the coding harnesses |
57
58
  | ssh / scp / rsync into a sandbox | `ssh <sandbox-id>.polli`. Port forwarding (`ssh -L 3000:localhost:3000 <sandbox-id>.polli`) and VS Code Remote-SSH work. An open connection keeps the sandbox running and paid; it pauses 15–20 minutes after the last one closes (5–10 on Windows) |
59
+ | Publish a static site | `polli sites deploy ./dist --name my-app` (prints `https://my-app.pollinations.app`; then `list`, `delete <name>`) |
58
60
  | Machine-readable output | append `--json` to any command |
59
61
 
60
62
  ## Setup
@@ -244,6 +246,15 @@ Prompt-agent config contains `systemPrompt`, `baseModel`, and optional `mcpServe
244
246
 
245
247
  Creating an agent also creates its callable model listing. Managed agents are text-only and free, with no fallbacks or per-user RPM. Deleting the agent also deletes its model listing. See [Publish an Agent](https://github.com/pollinations/pollinations/blob/main/BUILD_YOUR_OWN_AGENT.md).
246
248
 
249
+ ### Publish a static site
250
+ ```bash
251
+ npm run build
252
+ polli sites deploy ./dist --name my-app # → https://my-app.pollinations.app
253
+ polli sites list
254
+ polli sites delete my-app
255
+ ```
256
+ Publishes a folder of static files with an `index.html`; unknown paths serve `index.html`, so single-page apps route on the client. Deploying the same name again replaces the site and uploads only changed files. Names are 3–32 lowercase letters, digits and hyphens, starting with a letter; the first deploy claims the name. Limits: 5 sites per account, 200 MB and 1,000 files per site, 25 MiB per file. Dotfiles and `node_modules` are not uploaded. Sites are public: never put an API key in them. To call Pollinations from a site, let visitors sign in with their own Pollen (see [Connect User Wallets](https://gen.pollinations.ai/docs/llm.txt?section=byop)). Share the URL the command prints rather than composing one from the name.
257
+
247
258
  ### Manage API keys
248
259
  ```bash
249
260
  polli keys list # list all keys on the account