CLI reference
Every command of the pocketone binary with its standard extensions: PocketBase's own, the ones extensions add, and a pocketone remote … command for every operation of every contract, generated from it (how). pocketone <command> --help says the same.
Global flags
Every command takes these.
| Flag | Type | Default | |
|---|---|---|---|
--config |
string | – | the config file (default ./pocketone.yaml, else next to the executable) |
--env-file |
string | – | secrets for $VAR references in the config file (default .env beside it); never passed to the app |
pocketone cache
Shows each extension's folder in pb_cache and its size
pocketone cache
pb_cache, next to pb_data, holds files extensions can rebuild (one folder each). It's never backed up or deployed, and emptying it is always safe.
From Standard Set.
pocketone cache clear
Empties pb_cache (every extension's folder, or the ones named)
pocketone cache clear [extension...]
From Standard Set.
pocketone clone
Starts a local project from a running app: makes the folder, links and signs in, and pulls its code
pocketone clone <url> [dir]
Makes dir (default: named after the app's host, e.g. pocketcon for https://pocketcon.dev), adds the app as the project's default remote, signs in (in the browser when the app offers it, else with an API token), and pulls pb_hooks, pb_migrations, pb_pages, pb_public, pb_templates, package.json, the lockfile and patches/. pb_data never comes. Then run dev in the folder to keep both sides in step.
| Flag | Type | Default | |
|---|---|---|---|
--device |
bool | – | sign in on another device with a code (SSH, headless) |
--name |
string | default |
remote name |
--no-browser |
bool | – | print the sign-in URL instead of opening a browser |
--token |
string | – | use this API token (pbt_..., a PocketHost token, or a JWT) |
--token-stdin |
bool | – | read the token from stdin |
From Deploy.
pocketone config
Lists the pocketone.yaml sections this binary understands, with their defaults
pocketone config
| Flag | Type | Default | |
|---|---|---|---|
--json |
bool | – | print the sections as JSON (name, doc, owning extension, keys with types and defaults) |
From Config.
pocketone config check
Checks the config file: every section known and valid, every $VAR set
pocketone config check
From Config.
pocketone deploy
Deploys pb_hooks, pb_migrations, pb_pages, pb_public and packages to a remote
pocketone deploy [remote]
Deploys the project's code set (pb_* folders except pb_data and pb_cache, package.json, bun.lock(b), patches/, and the production node_modules tree) to a remote. Only changed files are uploaded and the remote swaps them in. Hooks, pages and public files take effect by themselves; migrations and packages apply when the app restarts: pass --restart, or run 'pocketone restart' later. A deploy stops when files changed on the remote since your last deploy, pull or dev (an edit through the file drive, a migration the dashboard wrote) and lists them; --force overwrites them. A project with no record of the remote yet (a fresh checkout, CI) deploys without that check.
| Flag | Type | Default | |
|---|---|---|---|
--dry-run |
bool | – | list what would be deployed, deploy nothing |
-e, --exclude |
stringSlice | – | exclude patterns (pb_data and pb_cache are always excluded) |
--force |
bool | – | deploy even when files changed on the remote since your last deploy, pull or dev, overwriting them |
-i, --include |
stringSlice | – | add include patterns (default set: pb_*,pb_*/**/*,package.json,bun.lockb,bun.lock,patches,patches/**/*) |
--no-node-modules |
bool | – | don't ship node_modules; leave the remote's alone |
--node-modules |
bool | – | ship the production node_modules tree (default with a package.json) |
--out |
string | – | write the deploy set to a local folder instead of deploying |
--restart |
bool | – | restart the app after deploying when migrations or packages changed |
-v, --verbose |
bool | – | list every file |
From Deploy.
pocketone desktop
Commands under desktop
From Desktop.
pocketone desktop build
Build this folder's app as a native desktop app (this platform; --all for every platform)
pocketone desktop build
Compiles the PocketOne app in the current folder into a desktop app: pb_hooks, pb_migrations and pb_public are embedded in the executable, which runs the app's server on a private 127.0.0.1 port and shows it in a native window. Each user's data lives in their own app-data folder, named by the app id.
Without flags it builds for this machine. --all builds macOS (arm64, amd64), Windows (amd64, arm64) and Linux (amd64, arm64); --target picks some. The apps land in dist/, macOS's as an .app and a .dmg.
With a sign section in pocketone.yaml it signs what it built afterwards, here on this machine: macOS with your Developer ID (and notarizes), Windows with your command, Linux with GPG. --no-sign skips it.
It runs in Docker, in the build image matching this pocketone (Go and PocketOne's source, vendored, so it needs nothing else and works offline once the image is here). --local builds with your own Go and a PocketOne checkout.
| Flag | Type | Default | |
|---|---|---|---|
--all |
bool | – | build for every platform |
--image |
string | – | the build image (default pocketone-build:dev) |
--local |
bool | – | build with your own Go instead of the build image |
--no-sign |
bool | – | skip pocketone.yaml's desktop.sign section (builds stay signed ad hoc) |
--out |
string | dist |
the folder the apps are written to |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
--source |
string | – | a PocketOne checkout: --local builds against it; a development pocketone builds its image from it (default $P1_SOURCE, else the checkout this folder is in) |
--target |
stringSlice | – | platforms to build, as os/arch (darwin/arm64,windows/amd64,...) |
From Desktop.
pocketone desktop image
Build the desktop build image from a PocketOne checkout
pocketone desktop image
Builds the image desktop build runs in (Go plus this checkout's source, vendored) and tags it. A release publishes it as ghcr.io/pocketonehq/pocketone-build:v<version>; a development pocketone builds pocketone-build:dev on first use.
| Flag | Type | Default | |
|---|---|---|---|
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
--source |
string | – | the PocketOne checkout (default $P1_SOURCE, else the one this folder is in) |
--tag |
string | pocketone-build:dev |
the image's tag |
From Desktop.
pocketone desktop prepare
Write the build image's vendored module into <dir> (the build image's Dockerfile runs this)
pocketone desktop prepare <dir>
| Flag | Type | Default | |
|---|---|---|---|
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
--source |
string | – | the PocketOne source tree |
From Desktop.
pocketone dev
Keeps the project's code and a remote in step both ways (and streams the remote's logs)
pocketone dev [remote]
Syncs pb_hooks, pb_migrations, pb_pages, pb_public and the other pb_* folders, package.json, bun.lock(b) and patches/ both ways: edits here are uploaded half a second after you save, and changes on the remote (such as migrations the dashboard writes) are downloaded within seconds. node_modules is only uploaded, when package.json or the lockfile changes. pb_data is never synced. Hooks, pages and public files take effect by themselves; migrations and packages you upload apply when the app restarts: type r and Enter. State is kept in .pocketone/; files to leave out go in .pocketoneignore.
| Flag | Type | Default | |
|---|---|---|---|
-e, --exclude |
stringSlice | – | exclude patterns (pb_data and pb_cache are always excluded) |
-i, --include |
stringSlice | – | add include patterns (default set: pb_*,pb_*/**/*,package.json,bun.lockb,bun.lock,patches,patches/**/*) |
--no-logs |
bool | – | don't stream the remote's logs |
--no-node-modules |
bool | – | don't ship node_modules; leave the remote's alone |
--node-modules |
bool | – | ship the production node_modules tree (default with a package.json) |
--poll |
duration | 5s |
how often to check the remote for changes |
--prefer |
string | – | on the first sync, files that differ: local (upload yours) or remote (download theirs); default asks |
--push-only |
bool | – | only upload changes (the old one-way dev); never download |
-v, --verbose |
bool | – | list every file |
From Deploy.
pocketone docker
Release binaries for the docker runtime provider (docker.versions in pocketone.yaml)
From Docker.
pocketone docker seed
Downloads the releases docker.versions lists that the cache doesn't have yet
pocketone docker seed
From Docker.
pocketone docker update
Finds the latest patch of each docker.versions minor, records and downloads it
pocketone docker update
From Docker.
pocketone extensions
Manages the extensions' own schema (their migrations)
From Standard Set.
pocketone extensions migrate
Applies or reverts an extension's migrations
From Standard Set.
pocketone extensions migrate down
Reverts an extension's last n migrations (default 1; 0: all of them)
pocketone extensions migrate down <extension> [n]
Reverting drops what the migrations created, data included. The next start applies them again, unless the extension is turned off (<extension>: {enabled: false} in pocketone.yaml).
From Standard Set.
pocketone extensions migrate up
Applies pending extension migrations (startup does this too)
pocketone extensions migrate up [extension]
From Standard Set.
pocketone extensions migrations
Lists each extension's migrations and whether they're applied
pocketone extensions migrations
Extensions apply their migrations at startup, after PocketBase's own and before the app's pb_migrations, and record them in _extension_migrations (apart from the app's _migrations).
From Standard Set.
pocketone link
Adds a remote (default name "default") and signs in to it
pocketone link <url> [token]
| Flag | Type | Default | |
|---|---|---|---|
--device |
bool | – | sign in on another device with a code (SSH, headless) |
--name |
string | default |
remote name |
--no-browser |
bool | – | print the sign-in URL instead of opening a browser |
--token |
string | – | use this API token (pbt_..., a PocketHost token, or a JWT) |
--token-stdin |
bool | – | read the token from stdin |
From Remotes.
pocketone login
Signs in to a remote and saves the login
pocketone login [remote]
Signs in to a remote: in the browser when the remote offers OAuth (--device for a code on another device), else with a superuser's email and password (or a pasted API token).
| Flag | Type | Default | |
|---|---|---|---|
--device |
bool | – | sign in on another device with a code (SSH, headless) |
--no-browser |
bool | – | print the sign-in URL instead of opening a browser |
--token |
string | – | use this API token (pbt_..., a PocketHost token, or a JWT) |
--token-stdin |
bool | – | read the token from stdin |
From Remotes.
pocketone logout
Forgets the saved login (and revokes it, for a browser login)
pocketone logout [remote]
From Remotes.
pocketone logs
Streams a remote's app logs
pocketone logs [remote]
| Flag | Type | Default | |
|---|---|---|---|
-n, --lines |
int | 100 |
replay this many earlier lines (0..1000) |
From Deploy.
pocketone migrate
Executes app DB migration scripts
pocketone migrate
Supported arguments are:
- up - runs all available migrations
- down [number] - reverts the last [number] applied migrations
- create name - creates new blank migration template file
- collections - creates new migration file with snapshot of the local collections configuration
- history-sync - ensures that the _migrations history table doesn't have references to deleted migration files
| Flag | Type | Default | |
|---|---|---|---|
--dev |
bool | – | enable dev mode, aka. printing logs and sql statements to the console |
--dir |
string | <the binary's folder>/pb_data |
the PocketBase data directory |
--encryptionEnv |
string | – | the env variable whose value of 32 characters will be used as encryption key for the app settings (default none) |
--hooksDir |
string | – | the directory with the JS app hooks |
--hooksPool |
int | 15 |
only with --jsvm goja: the JS runtimes kept ready for hooks |
--jsvm |
string | quickjs |
the JS engine: quickjs (PocketOne's) or goja (PocketBase's own, for pure PocketBase compatibility) |
--migrationsDir |
string | – | the directory with the user defined migrations |
--queryTimeout |
int | 30 |
the default SELECT queries timeout in seconds |
From PocketBase.
pocketone oauth
Manage the OAuth server
From API Tokens.
Every pocketone oauth command takes these.
| Flag | Type | Default | |
|---|---|---|---|
--dev |
bool | – | enable dev mode, aka. printing logs and sql statements to the console |
--dir |
string | <the binary's folder>/pb_data |
the PocketBase data directory |
--encryptionEnv |
string | – | the env variable whose value of 32 characters will be used as encryption key for the app settings (default none) |
--hooksDir |
string | – | the directory with the JS app hooks |
--hooksPool |
int | 15 |
only with --jsvm goja: the JS runtimes kept ready for hooks |
--jsvm |
string | quickjs |
the JS engine: quickjs (PocketOne's) or goja (PocketBase's own, for pure PocketBase compatibility) |
--migrationsDir |
string | – | the directory with the user defined migrations |
--queryTimeout |
int | 30 |
the default SELECT queries timeout in seconds |
pocketone oauth clients
Manage registered OAuth clients
From API Tokens.
pocketone oauth clients add
Registers a client (prints its id, and its secret once for a confidential client)
pocketone oauth clients add
| Flag | Type | Default | |
|---|---|---|---|
--name |
string | – | name shown on the consent page |
--public |
bool | – | public client (no secret; PKCE only), e.g. a desktop or mobile app |
--redirect |
stringSlice | – | allowed redirect URI (repeatable; loopback URIs match any port) |
From API Tokens.
pocketone oauth clients list
Lists registered clients
pocketone oauth clients list
From API Tokens.
pocketone oauth clients rm
Removes a client
pocketone oauth clients rm <client_id>
From API Tokens.
pocketone pages
Pages: create an app from a starter kit
From Pages.
pocketone pages create
Create a folder with a starter kit (pb_pages and anything it needs)
pocketone pages create <name>
| Flag | Type | Default | |
|---|---|---|---|
--starter |
string | – | starter kit (default minimal; list them with: pages starters) |
From Pages.
pocketone pages starters
List the starter kits
pocketone pages starters
From Pages.
pocketone pitr
Point-in-time restore of the database
From PITR.
Every pocketone pitr command takes these.
| Flag | Type | Default | |
|---|---|---|---|
--dev |
bool | – | enable dev mode, aka. printing logs and sql statements to the console |
--dir |
string | <the binary's folder>/pb_data |
the PocketBase data directory |
--encryptionEnv |
string | – | the env variable whose value of 32 characters will be used as encryption key for the app settings (default none) |
--hooksDir |
string | – | the directory with the JS app hooks |
--hooksPool |
int | 15 |
only with --jsvm goja: the JS runtimes kept ready for hooks |
--jsvm |
string | quickjs |
the JS engine: quickjs (PocketOne's) or goja (PocketBase's own, for pure PocketBase compatibility) |
--migrationsDir |
string | – | the directory with the user defined migrations |
--queryTimeout |
int | 30 |
the default SELECT queries timeout in seconds |
pocketone pitr restore
Restore the database as it was at --at, into --to, or in place on the next start
pocketone pitr restore
With --to, writes the database as it was at --at into that file (any time, also on a fresh machine with the same bucket config). Without --to, stages the restore in place; run it while the server is stopped: the swap happens on the next start.
| Flag | Type | Default | |
|---|---|---|---|
--at |
string | – | time to restore to (RFC 3339) |
--to |
string | – | write into this file instead of restoring in place |
From PITR.
pocketone pitr status
Show the restorable window and history size
pocketone pitr status
From PITR.
pocketone pull
Downloads files from a remote into the project (default: pb_hooks, pb_migrations, pb_pages, pb_public, pb_templates, package.json, the lockfile, patches/)
pocketone pull [remote] [paths...]
| Flag | Type | Default | |
|---|---|---|---|
--dry-run |
bool | – | list what would be pulled |
From Deploy.
pocketone remote
The project's remotes, and the commands that run on them (every contract an app offers)
pocketone remote add
Adds or replaces a remote
pocketone remote add <name> <url>
| Flag | Type | Default | |
|---|---|---|---|
--default |
bool | – | make it the default remote |
From Remotes.
pocketone remote api-tokens
Commands under remote api-tokens
pocketone remote api-tokens verify
Checks an API token and says who it acts as and what it may do (its scopes, with their values) (api-tokens.verify/v1)
pocketone remote api-tokens verify
Checks an API token and says who it acts as and what it may do (its scopes, with their values). A token that isn't valid is an answer (Valid false), not an error, so callers can tell a refused token from an outage.
Calls POST /api/_c/api-tokens.verify/v1/ on the remote (token scope: api_tokens_verify).
| Flag | Type | Default | |
|---|---|---|---|
--ip |
string | – | |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
--token |
string | – |
From api-tokens.verify/v1 (generated).
pocketone remote bulkmail
Calls bulkmail/v1 on a remote
pocketone remote bulkmail cancel
Stops a campaign for good; recipients not yet sent to are dropped (bulkmail/v1)
pocketone remote bulkmail cancel
Stops a campaign for good; recipients not yet sent to are dropped.
Calls POST /api/_c/bulkmail/v1/cancel on the remote (token scope: bulkmail).
| Flag | Type | Default | |
|---|---|---|---|
--campaign |
string | – | |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From bulkmail/v1 (generated).
pocketone remote bulkmail count
Says how many recipients an audience reaches, how many of them are suppressed, and a few sample addresses (bulkmail/v1)
pocketone remote bulkmail count
Says how many recipients an audience reaches, how many of them are suppressed, and a few sample addresses.
Calls POST /api/_c/bulkmail/v1/count on the remote (token scope: bulkmail:read).
| Flag | Type | Default | |
|---|---|---|---|
--audience |
string | – | a JSON value (@file reads a file) |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From bulkmail/v1 (generated).
pocketone remote bulkmail pause
Stops sending a campaign; Resume carries on (bulkmail/v1)
pocketone remote bulkmail pause
Stops sending a campaign; Resume carries on.
Calls POST /api/_c/bulkmail/v1/pause on the remote (token scope: bulkmail).
| Flag | Type | Default | |
|---|---|---|---|
--campaign |
string | – | |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From bulkmail/v1 (generated).
pocketone remote bulkmail preview
Renders a campaign's message for one recipient (the first in its audience when Email is empty) (bulkmail/v1)
pocketone remote bulkmail preview
Renders a campaign's message for one recipient (the first in its audience when Email is empty).
Calls POST /api/_c/bulkmail/v1/preview on the remote (token scope: bulkmail:read).
| Flag | Type | Default | |
|---|---|---|---|
--campaign |
string | – | |
--email |
string | – | |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From bulkmail/v1 (generated).
pocketone remote bulkmail resume
Carries on sending a paused campaign (bulkmail/v1)
pocketone remote bulkmail resume
Carries on sending a paused campaign.
Calls POST /api/_c/bulkmail/v1/resume on the remote (token scope: bulkmail).
| Flag | Type | Default | |
|---|---|---|---|
--campaign |
string | – | |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From bulkmail/v1 (generated).
pocketone remote bulkmail start
Queues a campaign's recipients and starts sending (Limit > 0: at most that many new recipients) (bulkmail/v1)
pocketone remote bulkmail start
Queues a campaign's recipients and starts sending (Limit > 0: at most that many new recipients).
Calls POST /api/_c/bulkmail/v1/start on the remote (token scope: bulkmail).
| Flag | Type | Default | |
|---|---|---|---|
--campaign |
string | – | |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--limit |
int64 | 0 |
|
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From bulkmail/v1 (generated).
pocketone remote bulkmail test
Sends a campaign's message to one address, marked as a test (bulkmail/v1)
pocketone remote bulkmail test
Sends a campaign's message to one address, marked as a test.
Calls POST /api/_c/bulkmail/v1/test on the remote (token scope: bulkmail).
| Flag | Type | Default | |
|---|---|---|---|
--campaign |
string | – | |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
--to |
string | – |
From bulkmail/v1 (generated).
pocketone remote cache
Commands under remote cache
pocketone remote cache clear
Empties one of the app's cache buckets, or every bucket it has (cache.clear/v1)
pocketone remote cache clear
Empties one of the app's cache buckets, or every bucket it has.
Calls POST /api/_c/cache.clear/v1/ on the remote (token scope: cache).
| Flag | Type | Default | |
|---|---|---|---|
--bucket |
string | – | |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From cache.clear/v1 (generated).
pocketone remote default
Sets the default remote
pocketone remote default <name>
From Remotes.
pocketone remote instance
Commands under remote instance
pocketone remote instance watch
Calls instance.watch/v1 on a remote
pocketone remote instance watch stream
Opens this edge's stream: a hello first, then answers and changes for the hostnames it watches, the edges list when it changes, and its standing set when that changes (instance.watch/v1)
pocketone remote instance watch stream
Opens this edge's stream: a hello first, then answers and changes for the hostnames it watches, the edges list when it changes, and its standing set when that changes.
Calls GET /api/_c/instance.watch/v1/stream on the remote (token scope: fleet).
| Flag | Type | Default | |
|---|---|---|---|
--edge |
string | – | |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From instance.watch/v1 (generated).
pocketone remote instance watch unwatch
Stops changes for a hostname on a stream (instance.watch/v1)
pocketone remote instance watch unwatch
Stops changes for a hostname on a stream.
Calls POST /api/_c/instance.watch/v1/unwatch on the remote (token scope: fleet).
| Flag | Type | Default | |
|---|---|---|---|
--conn |
string | – | |
--host |
string | – | |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From instance.watch/v1 (generated).
pocketone remote kv
Calls kv/v1 on a remote
pocketone remote kv delete
Removes a value (kv/v1)
pocketone remote kv delete
Removes a value. Deleting a name with no value is not an error.
Calls POST /api/_c/kv/v1/delete on the remote (token scope: kv).
| Flag | Type | Default | |
|---|---|---|---|
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--name |
string | – | |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From kv/v1 (generated).
pocketone remote kv get
Returns one value (kv/v1)
pocketone remote kv get
Returns one value. A name with no value is a not_found error; a private name is a private error.
Calls GET /api/_c/kv/v1/get on the remote (token scope: kv:read).
| Flag | Type | Default | |
|---|---|---|---|
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--name |
string | – | |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From kv/v1 (generated).
pocketone remote kv list
Returns the values whose names start with prefix (all of them when it's empty), sorted by name (kv/v1)
pocketone remote kv list
Returns the values whose names start with prefix (all of them when it's empty), sorted by name. Private names (starting with _) are left out.
Calls GET /api/_c/kv/v1/ on the remote (token scope: kv:read).
| Flag | Type | Default | |
|---|---|---|---|
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--prefix |
string | – | |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From kv/v1 (generated).
pocketone remote kv set
Stores a JSON value under a name, replacing any value it had (kv/v1)
pocketone remote kv set
Stores a JSON value under a name, replacing any value it had.
Calls POST /api/_c/kv/v1/set on the remote (token scope: kv).
| Flag | Type | Default | |
|---|---|---|---|
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--name |
string | – | |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
--value |
string | – | a JSON value (@file reads a file) |
From kv/v1 (generated).
pocketone remote list
Lists remotes and whether you're logged in
pocketone remote list
Aliases: ls
From Remotes.
pocketone remote llm
Commands under remote llm
pocketone remote llm align
Says when each line and word of the text is said in the audio (llm.align/v1)
pocketone remote llm align
Says when each line and word of the text is said in the audio.
Calls POST /api/_c/llm.align/v1/align on the remote (token scope: llm).
| Flag | Type | Default | |
|---|---|---|---|
--audio |
string | – | a JSON value (@file reads a file) |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--language |
string | – | |
--mode |
string | – | |
--model |
string | – | |
--options |
string | – | a JSON value (@file reads a file) |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
--text |
string | – |
From llm.align/v1 (generated).
pocketone remote llm align models
Lists the alignment models of every provider in Settings → LLM (llm.align/v1)
pocketone remote llm align models
Lists the alignment models of every provider in Settings → LLM.
Calls GET /api/_c/llm.align/v1/models on the remote (token scope: llm:read).
| Flag | Type | Default | |
|---|---|---|---|
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--provider |
string | – | |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From llm.align/v1 (generated).
pocketone remote llm chat
Calls llm.chat/v1 on a remote
pocketone remote llm chat forget
Deletes a chat, its messages and the model's state for it (llm.chat/v1)
pocketone remote llm chat forget
Deletes a chat, its messages and the model's state for it.
Calls POST /api/_c/llm.chat/v1/forget on the remote (token scope: chat).
| Flag | Type | Default | |
|---|---|---|---|
--id |
string | – | |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From llm.chat/v1 (generated).
pocketone remote llm chat forget-where
Deletes every chat whose meta matches (as in List), e.g (llm.chat/v1)
pocketone remote llm chat forget-where
Deletes every chat whose meta matches (as in List), e.g. all of a user the app deleted.
Calls POST /api/_c/llm.chat/v1/forget-where on the remote (token scope: chat).
| Flag | Type | Default | |
|---|---|---|---|
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--limit |
int64 | 0 |
|
--meta |
string | – | a JSON value (@file reads a file) |
--offset |
int64 | 0 |
|
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From llm.chat/v1 (generated).
pocketone remote llm chat get
Returns a chat (llm.chat/v1)
pocketone remote llm chat get
Returns a chat.
Calls POST /api/_c/llm.chat/v1/get on the remote (token scope: chat:read).
| Flag | Type | Default | |
|---|---|---|---|
--id |
string | – | |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From llm.chat/v1 (generated).
pocketone remote llm chat history
Returns a chat's messages, oldest first: the last Limit before the message Before (all when 0 and "") (llm.chat/v1)
pocketone remote llm chat history
Returns a chat's messages, oldest first: the last Limit before the message Before (all when 0 and "").
Calls POST /api/_c/llm.chat/v1/history on the remote (token scope: chat:read).
| Flag | Type | Default | |
|---|---|---|---|
--before |
string | – | |
--id |
string | – | |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--limit |
int64 | 0 |
|
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From llm.chat/v1 (generated).
pocketone remote llm chat list
Returns chats, most recently updated first; Meta keeps those whose meta has each of its top-level keys with that value (llm.chat/v1)
pocketone remote llm chat list
Returns chats, most recently updated first; Meta keeps those whose meta has each of its top-level keys with that value.
Calls POST /api/_c/llm.chat/v1/list on the remote (token scope: chat:read).
| Flag | Type | Default | |
|---|---|---|---|
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--limit |
int64 | 0 |
|
--meta |
string | – | a JSON value (@file reads a file) |
--offset |
int64 | 0 |
|
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From llm.chat/v1 (generated).
pocketone remote llm chat new
Starts a chat and returns it; its id is how the app finds it again (llm.chat/v1)
pocketone remote llm chat new
Starts a chat and returns it; its id is how the app finds it again.
Calls POST /api/_c/llm.chat/v1/new on the remote (token scope: chat).
| Flag | Type | Default | |
|---|---|---|---|
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--meta |
string | – | a JSON value (@file reads a file) |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
--title |
string | – |
From llm.chat/v1 (generated).
pocketone remote llm chat send
Asks the chat a question: the provider sends the system text, the chat's summary, its recent messages and the question (with Context after it) to llm.text/v1, saves both turns, and folds older messages into the summary when it's due (llm.chat/v1)
pocketone remote llm chat send
Asks the chat a question: the provider sends the system text, the chat's summary, its recent messages and the question (with Context after it) to llm.text/v1, saves both turns, and folds older messages into the summary when it's due.
Calls POST /api/_c/llm.chat/v1/send on the remote (token scope: chat).
| Flag | Type | Default | |
|---|---|---|---|
--context |
string | – | |
--enrich |
string | – | a JSON value (@file reads a file) |
--id |
string | – | |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--maxtokens |
int64 | 0 |
|
--model |
string | – | |
--reasoning |
string | – | |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
--schema |
string | – | a JSON value (@file reads a file) |
--summarizeevery |
int64 | 0 |
|
--system |
string | – | |
--temperature |
string | – | a JSON value (@file reads a file) |
--text |
string | – | |
--window |
int64 | 0 |
From llm.chat/v1 (generated).
pocketone remote llm chat send-stream
Is Send with the answer as it's written: llm.text/v1 chunks, the last one with done and the result (llm.chat/v1)
pocketone remote llm chat send-stream
Is Send with the answer as it's written: llm.text/v1 chunks, the last one with done and the result.
Calls POST /api/_c/llm.chat/v1/send-stream on the remote (token scope: chat).
| Flag | Type | Default | |
|---|---|---|---|
--context |
string | – | |
--enrich |
string | – | a JSON value (@file reads a file) |
--id |
string | – | |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--maxtokens |
int64 | 0 |
|
--model |
string | – | |
--reasoning |
string | – | |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
--schema |
string | – | a JSON value (@file reads a file) |
--summarizeevery |
int64 | 0 |
|
--system |
string | – | |
--temperature |
string | – | a JSON value (@file reads a file) |
--text |
string | – | |
--window |
int64 | 0 |
From llm.chat/v1 (generated).
pocketone remote llm chat update
Sets a chat's title or meta (fields left out stay) (llm.chat/v1)
pocketone remote llm chat update
Sets a chat's title or meta (fields left out stay).
Calls POST /api/_c/llm.chat/v1/update on the remote (token scope: chat).
| Flag | Type | Default | |
|---|---|---|---|
--id |
string | – | |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--meta |
string | – | a JSON value (@file reads a file) |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
--title |
string | – | a JSON value (@file reads a file) |
From llm.chat/v1 (generated).
pocketone remote llm embed
Returns one vector per input text, in order (llm.embed/v1)
pocketone remote llm embed
Returns one vector per input text, in order.
Calls POST /api/_c/llm.embed/v1/embed on the remote (token scope: llm).
| Flag | Type | Default | |
|---|---|---|---|
--dimensions |
int64 | 0 |
|
--input |
stringSlice | – | |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--model |
string | – | |
--options |
string | – | a JSON value (@file reads a file) |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From llm.embed/v1 (generated).
pocketone remote llm embed models
Lists the embedding models of every provider in Settings → LLM (llm.embed/v1)
pocketone remote llm embed models
Lists the embedding models of every provider in Settings → LLM.
Calls GET /api/_c/llm.embed/v1/models on the remote (token scope: llm:read).
| Flag | Type | Default | |
|---|---|---|---|
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--provider |
string | – | |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From llm.embed/v1 (generated).
pocketone remote llm image
Calls llm.image/v1 on a remote
pocketone remote llm image generate
Makes pictures from a prompt, and from the reference pictures it's given (llm.image/v1)
pocketone remote llm image generate
Makes pictures from a prompt, and from the reference pictures it's given.
Calls POST /api/_c/llm.image/v1/generate on the remote (token scope: llm).
| Flag | Type | Default | |
|---|---|---|---|
--aspectratio |
string | – | |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--model |
string | – | |
--n |
int64 | 0 |
|
--options |
string | – | a JSON value (@file reads a file) |
--prompt |
string | – | |
--references |
string | – | a JSON value (@file reads a file) |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
--size |
string | – |
From llm.image/v1 (generated).
pocketone remote llm image models
Lists the image models of every provider in Settings → LLM (llm.image/v1)
pocketone remote llm image models
Lists the image models of every provider in Settings → LLM.
Calls GET /api/_c/llm.image/v1/models on the remote (token scope: llm:read).
| Flag | Type | Default | |
|---|---|---|---|
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--provider |
string | – | |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From llm.image/v1 (generated).
pocketone remote llm ledger
Calls llm.ledger/v1 on a remote
pocketone remote llm ledger calls
Lists the ledger's rows, newest first (llm.ledger/v1)
pocketone remote llm ledger calls
Lists the ledger's rows, newest first.
Calls GET /api/_c/llm.ledger/v1/calls on the remote (token scope: llm:read).
| Flag | Type | Default | |
|---|---|---|---|
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--kind |
string | – | |
--limit |
int64 | 0 |
|
--model |
string | – | |
--offset |
int64 | 0 |
|
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
--since |
string | – | |
--status |
string | – | |
--subject |
string | – | |
--until |
string | – | |
--window |
string | – |
From llm.ledger/v1 (generated).
pocketone remote llm ledger remaining
Is, for each limit in Settings → LLM that counts the subject's calls, how much is used and left in its current window, the tightest first (llm.ledger/v1)
pocketone remote llm ledger remaining
Is, for each limit in Settings → LLM that counts the subject's calls, how much is used and left in its current window, the tightest first.
Calls GET /api/_c/llm.ledger/v1/remaining on the remote (token scope: public).
| Flag | Type | Default | |
|---|---|---|---|
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
--subject |
string | – |
From llm.ledger/v1 (generated).
pocketone remote llm ledger spent
Is what the subject's calls used in a window (llm.ledger/v1)
pocketone remote llm ledger spent
Is what the subject's calls used in a window.
Calls GET /api/_c/llm.ledger/v1/spent on the remote (token scope: public).
| Flag | Type | Default | |
|---|---|---|---|
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--kind |
string | – | |
--model |
string | – | |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
--since |
string | – | |
--subject |
string | – | |
--until |
string | – | |
--window |
string | – |
From llm.ledger/v1 (generated).
pocketone remote llm ledger summary
Is what calls used, grouped by model, kind, subject or day (llm.ledger/v1)
pocketone remote llm ledger summary
Is what calls used, grouped by model, kind, subject or day.
Calls GET /api/_c/llm.ledger/v1/summary on the remote (token scope: llm:read).
| Flag | Type | Default | |
|---|---|---|---|
--by |
string | – | |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--kind |
string | – | |
--limit |
int64 | 0 |
|
--model |
string | – | |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
--since |
string | – | |
--subject |
string | – | |
--until |
string | – | |
--window |
string | – |
From llm.ledger/v1 (generated).
pocketone remote llm music
Calls llm.music/v1 on a remote
pocketone remote llm music content
Fetches one of a done job's files (llm.music/v1)
pocketone remote llm music content
Fetches one of a done job's files.
Calls POST /api/_c/llm.music/v1/content on the remote (token scope: llm:read).
| Flag | Type | Default | |
|---|---|---|---|
--id |
string | – | |
--index |
int64 | 0 |
|
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From llm.music/v1 (generated).
pocketone remote llm music create
Starts making music (llm.music/v1)
pocketone remote llm music create
Starts making music. With Wait it returns once the job is done (or failed), its files included; otherwise at once, to follow with Get.
Calls POST /api/_c/llm.music/v1/create on the remote (token scope: llm).
| Flag | Type | Default | |
|---|---|---|---|
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--lyrics |
string | – | |
--model |
string | – | |
--options |
string | – | a JSON value (@file reads a file) |
--prompt |
string | – | |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
--seconds |
float64 | 0 |
|
--wait |
string | – |
From llm.music/v1 (generated).
pocketone remote llm music get
Says how a job is going (llm.music/v1)
pocketone remote llm music get
Says how a job is going.
Calls POST /api/_c/llm.music/v1/get on the remote (token scope: llm:read).
| Flag | Type | Default | |
|---|---|---|---|
--id |
string | – | |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From llm.music/v1 (generated).
pocketone remote llm music models
Lists the music models of every provider in Settings → LLM (llm.music/v1)
pocketone remote llm music models
Lists the music models of every provider in Settings → LLM.
Calls GET /api/_c/llm.music/v1/models on the remote (token scope: llm:read).
| Flag | Type | Default | |
|---|---|---|---|
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--provider |
string | – | |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From llm.music/v1 (generated).
pocketone remote llm search
Calls llm.search/v1 on a remote
pocketone remote llm search add
Puts a file or pasted text in a bucket as its own source (one document), replacing the source of that name (llm.search/v1)
pocketone remote llm search add
Puts a file or pasted text in a bucket as its own source (one document), replacing the source of that name. The same text again costs nothing; changed text embeds only its new chunks. It returns at once; the document is embedded in the background (its status says how far it got).
Calls POST /api/_c/llm.search/v1/add on the remote (token scope: search).
| Flag | Type | Default | |
|---|---|---|---|
--bucket |
string | – | |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--kind |
string | – | |
--name |
string | – | |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
--replace |
string | – | |
--text |
string | – |
From llm.search/v1 (generated).
pocketone remote llm search add-folder
Adds a folder of the app's own files on the server (named by its path, replacing one of that name): every text file in it, read in the background and read again every few minutes, so changed files are embedded again and removed ones leave (llm.search/v1)
pocketone remote llm search add-folder
Adds a folder of the app's own files on the server (named by its path, replacing one of that name): every text file in it, read in the background and read again every few minutes, so changed files are embedded again and removed ones leave. With URL, each result from it links to the page that file is published at.
Calls POST /api/_c/llm.search/v1/add-folder on the remote (token scope: search).
| Flag | Type | Default | |
|---|---|---|---|
--bucket |
string | – | |
--exclude |
stringSlice | – | |
--include |
stringSlice | – | |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--path |
string | – | |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
--url |
string | – |
From llm.search/v1 (generated).
pocketone remote llm search add-u-r-l
Adds a web page or a Git repository as a source (named by its URL, replacing one of that name) and reads it in the background; Every keeps it current (llm.search/v1)
pocketone remote llm search add-u-r-l
Adds a web page or a Git repository as a source (named by its URL, replacing one of that name) and reads it in the background; Every keeps it current.
Calls POST /api/_c/llm.search/v1/add-url on the remote (token scope: search).
| Flag | Type | Default | |
|---|---|---|---|
--bucket |
string | – | |
--commits |
int64 | 0 |
|
--every |
string | – | |
--exclude |
stringSlice | – | |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--kind |
string | – | |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
--url |
string | – |
From llm.search/v1 (generated).
pocketone remote llm search bucket
Returns one bucket with its counts (llm.search/v1)
pocketone remote llm search bucket
Returns one bucket with its counts.
Calls GET /api/_c/llm.search/v1/bucket on the remote (token scope: search:read).
| Flag | Type | Default | |
|---|---|---|---|
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--name |
string | – | |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From llm.search/v1 (generated).
pocketone remote llm search buckets
Lists the app's buckets with their counts (llm.search/v1)
pocketone remote llm search buckets
Lists the app's buckets with their counts.
Calls GET /api/_c/llm.search/v1/buckets on the remote (token scope: search:read).
| Flag | Type | Default | |
|---|---|---|---|
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From llm.search/v1 (generated).
pocketone remote llm search delete
Removes a bucket and everything in it (llm.search/v1)
pocketone remote llm search delete
Removes a bucket and everything in it.
Calls POST /api/_c/llm.search/v1/delete on the remote (token scope: search).
| Flag | Type | Default | |
|---|---|---|---|
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--name |
string | – | |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From llm.search/v1 (generated).
pocketone remote llm search detect-u-r-l
Says how AddURL would read a URL: as a Git repository when its server answers the Git protocol (any host, with or without .git), otherwise as a web page (llm.search/v1)
pocketone remote llm search detect-u-r-l
Says how AddURL would read a URL: as a Git repository when its server answers the Git protocol (any host, with or without .git), otherwise as a web page.
Calls POST /api/_c/llm.search/v1/detect-url on the remote (token scope: search:read).
| Flag | Type | Default | |
|---|---|---|---|
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
--url |
string | – |
From llm.search/v1 (generated).
pocketone remote llm search documents
Lists a bucket's documents (or one source's), by source and name (llm.search/v1)
pocketone remote llm search documents
Lists a bucket's documents (or one source's), by source and name.
Calls GET /api/_c/llm.search/v1/documents on the remote (token scope: search:read).
| Flag | Type | Default | |
|---|---|---|---|
--bucket |
string | – | |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--prefix |
string | – | |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
--source |
string | – |
From llm.search/v1 (generated).
pocketone remote llm search ensure
Makes a bucket if it's missing and returns it (llm.search/v1)
pocketone remote llm search ensure
Makes a bucket if it's missing and returns it. An existing bucket keeps its settings, except that an empty title, description or owner is filled in. Apps call it at startup for the bucket they need.
Calls POST /api/_c/llm.search/v1/ensure on the remote (token scope: search).
| Flag | Type | Default | |
|---|---|---|---|
--description |
string | – | |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--name |
string | – | |
--owner |
string | – | |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
--title |
string | – |
From llm.search/v1 (generated).
pocketone remote llm search follow
Adds one of the app's collections as a source (named by the collection): each record the filter keeps is a document, kept in sync as records are saved and deleted (llm.search/v1)
pocketone remote llm search follow
Adds one of the app's collections as a source (named by the collection): each record the filter keeps is a document, kept in sync as records are saved and deleted.
Calls POST /api/_c/llm.search/v1/follow on the remote (token scope: search).
| Flag | Type | Default | |
|---|---|---|---|
--bucket |
string | – | |
--collection |
string | – | |
--fields |
stringSlice | – | |
--filter |
string | – | |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From llm.search/v1 (generated).
pocketone remote llm search prune
Removes the documents of a folder source that aren't in Keep: the files the folder no longer has (llm.search/v1)
pocketone remote llm search prune
Removes the documents of a folder source that aren't in Keep: the files the folder no longer has.
Calls POST /api/_c/llm.search/v1/prune on the remote (token scope: search).
| Flag | Type | Default | |
|---|---|---|---|
--bucket |
string | – | |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--keep |
stringSlice | – | |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
--source |
string | – |
From llm.search/v1 (generated).
pocketone remote llm search put
Adds one file to a folder source (made on the first one), the way the dashboard sends a dropped folder; Prune ends it (llm.search/v1)
pocketone remote llm search put
Adds one file to a folder source (made on the first one), the way the dashboard sends a dropped folder; Prune ends it.
Calls POST /api/_c/llm.search/v1/put on the remote (token scope: search).
| Flag | Type | Default | |
|---|---|---|---|
--bucket |
string | – | |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--path |
string | – | |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
--replace |
string | – | |
--source |
string | – | |
--text |
string | – |
From llm.search/v1 (generated).
pocketone remote llm search refresh
Reads a source again now: fetches a URL or repository, rereads a collection, resplits a file or zip (llm.search/v1)
pocketone remote llm search refresh
Reads a source again now: fetches a URL or repository, rereads a collection, resplits a file or zip.
Calls POST /api/_c/llm.search/v1/refresh on the remote (token scope: search).
| Flag | Type | Default | |
|---|---|---|---|
--bucket |
string | – | |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
--source |
string | – |
From llm.search/v1 (generated).
pocketone remote llm search remove
Takes sources out of a bucket, with their documents (llm.search/v1)
pocketone remote llm search remove
Takes sources out of a bucket, with their documents.
Calls POST /api/_c/llm.search/v1/remove on the remote (token scope: search).
| Flag | Type | Default | |
|---|---|---|---|
--bucket |
string | – | |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
--sources |
stringSlice | – |
From llm.search/v1 (generated).
pocketone remote llm search sample
Returns chunks picked at random from the buckets named: material to draw from ("surprise me", a topic nobody asked about), not matches (llm.search/v1)
pocketone remote llm search sample
Returns chunks picked at random from the buckets named: material to draw from ("surprise me", a topic nobody asked about), not matches. No query, no embedding, so it costs nothing. Like Search without a viewer, it may return any chunk, a followed record's included.
Calls POST /api/_c/llm.search/v1/sample on the remote (token scope: search:read).
| Flag | Type | Default | |
|---|---|---|---|
--bucket |
string | – | |
--buckets |
stringSlice | – | |
--count |
int64 | 0 |
|
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--prefix |
string | – | |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From llm.search/v1 (generated).
pocketone remote llm search set-model
Changes the app's embedding model ("provider/model" from llm.embed/v1's models; "" picks one again) (llm.search/v1)
pocketone remote llm search set-model
Changes the app's embedding model ("provider/model" from llm.embed/v1's models; "" picks one again). Every bucket is embedded again in the background; until a chunk is, keywords still find it.
Calls POST /api/_c/llm.search/v1/set-model on the remote (token scope: search).
| Flag | Type | Default | |
|---|---|---|---|
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--model |
string | – | |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From llm.search/v1 (generated).
pocketone remote llm search sources
Lists a bucket's sources, by name (llm.search/v1)
pocketone remote llm search sources
Lists a bucket's sources, by name.
Calls GET /api/_c/llm.search/v1/sources on the remote (token scope: search:read).
| Flag | Type | Default | |
|---|---|---|---|
--bucket |
string | – | |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From llm.search/v1 (generated).
pocketone remote llm search status
Is the app's embedding model and how far embedding has got across every bucket (llm.search/v1)
pocketone remote llm search status
Is the app's embedding model and how far embedding has got across every bucket.
Calls GET /api/_c/llm.search/v1/status on the remote (token scope: search:read).
| Flag | Type | Default | |
|---|---|---|---|
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From llm.search/v1 (generated).
pocketone remote llm search update
Changes a bucket's title, description or limits (fields left out stay) (llm.search/v1)
pocketone remote llm search update
Changes a bucket's title, description or limits (fields left out stay).
Calls POST /api/_c/llm.search/v1/update on the remote (token scope: search).
| Flag | Type | Default | |
|---|---|---|---|
--description |
string | – | a JSON value (@file reads a file) |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--maxbytes |
string | – | a JSON value (@file reads a file) |
--maxdocuments |
string | – | a JSON value (@file reads a file) |
--name |
string | – | |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
--title |
string | – | a JSON value (@file reads a file) |
From llm.search/v1 (generated).
pocketone remote llm search upload
Adds a file sent as the request body: ?bucket=<name>&name=<file name>[&replace=<source>] (llm.search/v1)
pocketone remote llm search upload
Adds a file sent as the request body: ?bucket=<name>&name=<file name>[&replace=<source>]. A .zip is one source with a document per text file inside it; anything else is a file source.
Calls POST /api/_c/llm.search/v1/upload on the remote (token scope: search).
| Flag | Type | Default | |
|---|---|---|---|
--content-type |
string | application/octet-stream |
the body's content type |
--file |
string | - |
the body to send (- for stdin) |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From llm.search/v1 (generated).
pocketone remote llm speech
Calls llm.speech/v1 on a remote
pocketone remote llm speech models
Lists the speech models of every provider in Settings → LLM (llm.speech/v1)
pocketone remote llm speech models
Lists the speech models of every provider in Settings → LLM.
Calls GET /api/_c/llm.speech/v1/models on the remote (token scope: llm:read).
| Flag | Type | Default | |
|---|---|---|---|
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--provider |
string | – | |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From llm.speech/v1 (generated).
pocketone remote llm speech speak
Reads the text aloud and returns the audio (llm.speech/v1)
pocketone remote llm speech speak
Reads the text aloud and returns the audio.
Calls POST /api/_c/llm.speech/v1/speak on the remote (token scope: llm).
| Flag | Type | Default | |
|---|---|---|---|
--format |
string | – | |
--instructions |
string | – | |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--model |
string | – | |
--options |
string | – | a JSON value (@file reads a file) |
--reference |
string | – | a JSON value (@file reads a file) |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
--speed |
float64 | 0 |
|
--text |
string | – | |
--voice |
string | – |
From llm.speech/v1 (generated).
pocketone remote llm speech voices
Lists a model's voices, when the provider says (llm.speech/v1)
pocketone remote llm speech voices
Lists a model's voices, when the provider says.
Calls POST /api/_c/llm.speech/v1/voices on the remote (token scope: llm:read).
| Flag | Type | Default | |
|---|---|---|---|
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--model |
string | – | |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From llm.speech/v1 (generated).
pocketone remote llm text
Calls llm.text/v1 on a remote
pocketone remote llm text complete
Answers a prompt or a conversation (llm.text/v1)
pocketone remote llm text complete
Answers a prompt or a conversation.
Calls POST /api/_c/llm.text/v1/complete on the remote (token scope: llm).
| Flag | Type | Default | |
|---|---|---|---|
--enrich |
string | – | a JSON value (@file reads a file) |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--maxtokens |
int64 | 0 |
|
--messages |
string | – | a JSON value (@file reads a file) |
--model |
string | – | |
--options |
string | – | a JSON value (@file reads a file) |
--prompt |
string | – | |
--reasoning |
string | – | |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
--schema |
string | – | a JSON value (@file reads a file) |
--stop |
stringSlice | – | |
--system |
string | – | |
--temperature |
string | – | a JSON value (@file reads a file) |
From llm.text/v1 (generated).
pocketone remote llm text count
Says about how many tokens a text or a conversation is, for budgeting what to send (llm.text/v1)
pocketone remote llm text count
Says about how many tokens a text or a conversation is, for budgeting what to send.
Calls POST /api/_c/llm.text/v1/count on the remote (token scope: llm:read).
| Flag | Type | Default | |
|---|---|---|---|
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--messages |
string | – | a JSON value (@file reads a file) |
--model |
string | – | |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
--system |
string | – | |
--text |
string | – |
From llm.text/v1 (generated).
pocketone remote llm text models
Lists the text models of every provider in Settings → LLM (llm.text/v1)
pocketone remote llm text models
Lists the text models of every provider in Settings → LLM.
Calls GET /api/_c/llm.text/v1/models on the remote (token scope: llm:read).
| Flag | Type | Default | |
|---|---|---|---|
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--provider |
string | – | |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From llm.text/v1 (generated).
pocketone remote llm text stream
Answers like Complete, sending the answer as it's written: a chunk with text (or reasoning) for each piece, then one with done and the whole result (llm.text/v1)
pocketone remote llm text stream
Answers like Complete, sending the answer as it's written: a chunk with text (or reasoning) for each piece, then one with done and the whole result.
Calls POST /api/_c/llm.text/v1/stream on the remote (token scope: llm).
| Flag | Type | Default | |
|---|---|---|---|
--enrich |
string | – | a JSON value (@file reads a file) |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--maxtokens |
int64 | 0 |
|
--messages |
string | – | a JSON value (@file reads a file) |
--model |
string | – | |
--options |
string | – | a JSON value (@file reads a file) |
--prompt |
string | – | |
--reasoning |
string | – | |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
--schema |
string | – | a JSON value (@file reads a file) |
--stop |
stringSlice | – | |
--system |
string | – | |
--temperature |
string | – | a JSON value (@file reads a file) |
From llm.text/v1 (generated).
pocketone remote llm transcribe
Writes down what's said in the audio (llm.transcribe/v1)
pocketone remote llm transcribe
Writes down what's said in the audio.
Calls POST /api/_c/llm.transcribe/v1/transcribe on the remote (token scope: llm).
| Flag | Type | Default | |
|---|---|---|---|
--audio |
string | – | a JSON value (@file reads a file) |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--language |
string | – | |
--model |
string | – | |
--options |
string | – | a JSON value (@file reads a file) |
--prompt |
string | – | |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From llm.transcribe/v1 (generated).
pocketone remote llm transcribe models
Lists the transcription models of every provider in Settings → LLM (llm.transcribe/v1)
pocketone remote llm transcribe models
Lists the transcription models of every provider in Settings → LLM.
Calls GET /api/_c/llm.transcribe/v1/models on the remote (token scope: llm:read).
| Flag | Type | Default | |
|---|---|---|---|
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--provider |
string | – | |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From llm.transcribe/v1 (generated).
pocketone remote llm video
Calls llm.video/v1 on a remote
pocketone remote llm video content
Fetches one of a done job's files (llm.video/v1)
pocketone remote llm video content
Fetches one of a done job's files.
Calls POST /api/_c/llm.video/v1/content on the remote (token scope: llm:read).
| Flag | Type | Default | |
|---|---|---|---|
--id |
string | – | |
--index |
int64 | 0 |
|
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From llm.video/v1 (generated).
pocketone remote llm video create
Starts making a video (llm.video/v1)
pocketone remote llm video create
Starts making a video. With Wait it returns once the job is done (or failed); otherwise at once, to follow with Get. A done job lists how many files it made (Outputs); Content fetches each.
Calls POST /api/_c/llm.video/v1/create on the remote (token scope: llm).
| Flag | Type | Default | |
|---|---|---|---|
--aspectratio |
string | – | |
--image |
string | – | a JSON value (@file reads a file) |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--model |
string | – | |
--options |
string | – | a JSON value (@file reads a file) |
--prompt |
string | – | |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
--seconds |
float64 | 0 |
|
--size |
string | – | |
--wait |
string | – |
From llm.video/v1 (generated).
pocketone remote llm video get
Says how a job is going (llm.video/v1)
pocketone remote llm video get
Says how a job is going.
Calls POST /api/_c/llm.video/v1/get on the remote (token scope: llm:read).
| Flag | Type | Default | |
|---|---|---|---|
--id |
string | – | |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From llm.video/v1 (generated).
pocketone remote llm video models
Lists the video models of every provider in Settings → LLM (llm.video/v1)
pocketone remote llm video models
Lists the video models of every provider in Settings → LLM.
Calls GET /api/_c/llm.video/v1/models on the remote (token scope: llm:read).
| Flag | Type | Default | |
|---|---|---|---|
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--provider |
string | – | |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From llm.video/v1 (generated).
pocketone remote logs
Streams the app's log: the last entries, then new ones as they're written (remote/v1)
pocketone remote logs
Streams the app's log: the last entries, then new ones as they're written.
Calls GET /api/_c/remote/v1/logs on the remote (token scope: remote:read).
| Flag | Type | Default | |
|---|---|---|---|
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--n |
int64 | 0 |
|
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From remote/v1 (generated).
pocketone remote mail
Commands under remote mail
pocketone remote mail suppression
Calls mail.suppression/v1 on a remote
pocketone remote mail suppression check
Says whether an address is suppressed, and why (mail.suppression/v1)
pocketone remote mail suppression check
Says whether an address is suppressed, and why.
Calls GET /api/_c/mail.suppression/v1/check on the remote (token scope: suppression:read).
| Flag | Type | Default | |
|---|---|---|---|
--email |
string | – | |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From mail.suppression/v1 (generated).
pocketone remote mail suppression suppress
Adds an address (or changes its reason) (mail.suppression/v1)
pocketone remote mail suppression suppress
Adds an address (or changes its reason).
Calls POST /api/_c/mail.suppression/v1/suppress on the remote (token scope: suppression).
| Flag | Type | Default | |
|---|---|---|---|
--campaign |
string | – | |
--email |
string | – | |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
--reason |
string | – | |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
--source |
string | – |
From mail.suppression/v1 (generated).
pocketone remote mail suppression unsuppress
Removes an address, so it receives bulk mail again (mail.suppression/v1)
pocketone remote mail suppression unsuppress
Removes an address, so it receives bulk mail again.
Calls POST /api/_c/mail.suppression/v1/unsuppress on the remote (token scope: suppression).
| Flag | Type | Default | |
|---|---|---|---|
--email |
string | – | |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From mail.suppression/v1 (generated).
pocketone remote restart
Restarts the app; requests in flight finish first (remote/v1)
pocketone remote restart
Restarts the app; requests in flight finish first.
Calls POST /api/_c/remote/v1/restart on the remote (token scope: remote).
| Flag | Type | Default | |
|---|---|---|---|
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From remote/v1 (generated).
pocketone remote restore
Calls restore/v1 on a remote
pocketone remote restore points
Says what the app's data can be restored to: a window of time (continuous history) or a list of moments (backups), and whether a restore is running (restore/v1)
pocketone remote restore points
Says what the app's data can be restored to: a window of time (continuous history) or a list of moments (backups), and whether a restore is running.
Calls GET /api/_c/restore/v1/ on the remote (token scope: restore:read).
| Flag | Type | Default | |
|---|---|---|---|
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From restore/v1 (generated).
pocketone remote restore to
Puts the app's data back as it was at the given moment, from the latest point at or before it (restore/v1)
pocketone remote restore to
Puts the app's data back as it was at the given moment, from the latest point at or before it. The app restarts to apply it; its current data is kept aside until the next restore.
Calls POST /api/_c/restore/v1/restore on the remote (token scope: restore).
| Flag | Type | Default | |
|---|---|---|---|
--at |
string | – | a time: RFC 3339 ("2026-11-10T15:00:00Z"), local ("2026-11-10 15:00"), or relative to now ("-2h") |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From restore/v1 (generated).
pocketone remote rm
Removes a remote (its saved login stays; see logout)
pocketone remote rm <name>
Aliases: remove
From Remotes.
pocketone remote settings
Calls settings/v1 on a remote
pocketone remote settings get
Returns one extension's settings (settings/v1)
pocketone remote settings get
Returns one extension's settings. Secrets come back empty, with a flag saying they're set.
Calls GET /api/_c/settings/v1/get on the remote (token scope: settings:read).
| Flag | Type | Default | |
|---|---|---|---|
--extension |
string | – | |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From settings/v1 (generated).
pocketone remote settings list
Names the extensions whose settings this app's admins can change (settings/v1)
pocketone remote settings list
Names the extensions whose settings this app's admins can change.
Calls GET /api/_c/settings/v1/ on the remote (token scope: settings:read).
| Flag | Type | Default | |
|---|---|---|---|
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From settings/v1 (generated).
pocketone remote settings save
Replaces one extension's settings and applies them (settings/v1)
pocketone remote settings save
Replaces one extension's settings and applies them. A secret left empty keeps its saved value. Settings a host sets are read-only here.
Calls POST /api/_c/settings/v1/save on the remote (token scope: settings).
| Flag | Type | Default | |
|---|---|---|---|
--extension |
string | – | |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
--values |
string | – | a JSON value (@file reads a file) |
From settings/v1 (generated).
pocketone remote settings test
Checks one extension's settings without saving them (a test write to a bucket, a test message) (settings/v1)
pocketone remote settings test
Checks one extension's settings without saving them (a test write to a bucket, a test message).
Calls POST /api/_c/settings/v1/test on the remote (token scope: settings).
| Flag | Type | Default | |
|---|---|---|---|
--extension |
string | – | |
--json |
string | – | the whole input as JSON (@file reads a file, - reads stdin); flags override its fields |
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
--values |
string | – | a JSON value (@file reads a file) |
From settings/v1 (generated).
pocketone remote status
Reports whether the app is running, its versions, uptime and mode (remote/v1)
pocketone remote status
Reports whether the app is running, its versions, uptime and mode.
Calls GET /api/_c/remote/v1/status on the remote (token scope: remote:read).
| Flag | Type | Default | |
|---|---|---|---|
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From remote/v1 (generated).
pocketone remote vacuum
Calls vacuum/v1 on a remote
pocketone remote vacuum status
Says who compacts the app's databases, whether and how often, and how the last run went (vacuum/v1)
pocketone remote vacuum status
Says who compacts the app's databases, whether and how often, and how the last run went.
Calls GET /api/_c/vacuum/v1/ on the remote (token scope: vacuum:read).
| Flag | Type | Default | |
|---|---|---|---|
-r, --remote |
string | – | the remote (a name or URL); default: the project's default remote |
From vacuum/v1 (generated).
pocketone remote whoami
Shows who you are on a remote and what it offers
pocketone remote whoami [remote]
From Remotes.
pocketone restart
Restarts a remote's app so it applies new migrations and packages
pocketone restart [remote]
From Deploy.
pocketone serve
Starts the web server (default to 127.0.0.1:8090 if no domain is specified)
pocketone serve [domain(s)]
| Flag | Type | Default | |
|---|---|---|---|
--automigrate |
bool | true |
enable/disable auto migrations |
--autotls |
bool | – | HTTPS certificates through CertMagic instead of the built-in autocert (with serve <domain> or --https): other CAs, extra domains, wildcards through DNS-01 |
--autotlsCA |
string | – | certificate authority for --autotls: letsencrypt (default), letsencrypt-staging, zerossl, or an ACME directory URL |
--autotlsDNS |
string | – | DNS provider for DNS-01 challenges with --autotls (supported: cloudflare) |
--autotlsDNSTokenEnv |
string | CF_API_TOKEN |
environment variable holding the DNS provider's API token for --autotlsDNS |
--autotlsDomains |
stringSlice | – | extra domains for --autotls, obtained at start (comma separated; wildcards like *.example.com need --autotlsDNS) |
--autotlsEmail |
string | – | ACME account email for --autotls (expiry notices from the CA) |
--dev |
bool | – | enable dev mode, aka. printing logs and sql statements to the console |
--dir |
string | <the binary's folder>/pb_data |
the PocketBase data directory |
--encryptionEnv |
string | – | the env variable whose value of 32 characters will be used as encryption key for the app settings (default none) |
--hooksDir |
string | – | the directory with the JS app hooks |
--hooksPool |
int | 15 |
only with --jsvm goja: the JS runtimes kept ready for hooks |
--hooksWatch |
bool | true |
auto restart the app on pb_hooks file change; it has no effect on Windows |
--http |
string | – | TCP address to listen for the HTTP server (if domain args are specified - default to 0.0.0.0:80, otherwise - default to 127.0.0.1:8090) |
--https |
string | – | TCP address to listen for the HTTPS server (if domain args are specified - default to 0.0.0.0:443, otherwise - default to empty string, aka. no TLS) The incoming HTTP traffic also will be auto redirected to the HTTPS version |
--indexFallback |
bool | true |
fallback the request to index.html on missing static path, e.g. when pretty urls are used with SPA |
--jsvm |
string | quickjs |
the JS engine: quickjs (PocketOne's) or goja (PocketBase's own, for pure PocketBase compatibility) |
--migrationsDir |
string | – | the directory with the user defined migrations |
--origins |
stringSlice | [*] |
CORS allowed domain origins list |
--pagesDir |
string | – | the directory with the app's pages (default pb_pages next to pb_data); served when it exists |
--pitr |
bool | true |
point-in-time restore: replicate data.db into pb_data/litestream/ while serving |
--pitrRetention |
duration | 72h0m0s |
how far back a point-in-time restore can go |
--publicDir |
string | <the binary's folder>/pb_public |
the directory to serve static files |
--queryTimeout |
int | 30 |
the default SELECT queries timeout in seconds |
--s3Redirect |
bool | true |
answer file downloads with a short-lived signed redirect to the bucket when S3 file storage is on |
--s3RedirectTTL |
duration | 5m0s |
how long each signed file download URL stays valid |
From PocketBase.
pocketone superuser
Manage superusers
From PocketBase.
Every pocketone superuser command takes these.
| Flag | Type | Default | |
|---|---|---|---|
--dev |
bool | – | enable dev mode, aka. printing logs and sql statements to the console |
--dir |
string | <the binary's folder>/pb_data |
the PocketBase data directory |
--encryptionEnv |
string | – | the env variable whose value of 32 characters will be used as encryption key for the app settings (default none) |
--hooksDir |
string | – | the directory with the JS app hooks |
--hooksPool |
int | 15 |
only with --jsvm goja: the JS runtimes kept ready for hooks |
--jsvm |
string | quickjs |
the JS engine: quickjs (PocketOne's) or goja (PocketBase's own, for pure PocketBase compatibility) |
--migrationsDir |
string | – | the directory with the user defined migrations |
--queryTimeout |
int | 30 |
the default SELECT queries timeout in seconds |
pocketone superuser create
Creates a new superuser
pocketone superuser create
From PocketBase.
pocketone superuser delete
Deletes an existing superuser
pocketone superuser delete
From PocketBase.
pocketone superuser ips
Updates the superuser IPs whitelist setting (the IPs/subnets arguments must be space separated; leave empty to clear the whitelist restriction)
pocketone superuser ips
From PocketBase.
pocketone superuser otp
Creates a new OTP for the specified superuser
pocketone superuser otp
From PocketBase.
pocketone superuser update
Changes the password of a single superuser
pocketone superuser update
From PocketBase.
pocketone superuser upsert
Creates, or updates if email exists, a single superuser
pocketone superuser upsert
From PocketBase.
pocketone template
Lists and ejects extensions' page templates (pb_templates)
From Templates.
Every pocketone template command takes these.
| Flag | Type | Default | |
|---|---|---|---|
--dev |
bool | – | enable dev mode, aka. printing logs and sql statements to the console |
--dir |
string | <the binary's folder>/pb_data |
the PocketBase data directory |
--encryptionEnv |
string | – | the env variable whose value of 32 characters will be used as encryption key for the app settings (default none) |
--hooksDir |
string | – | the directory with the JS app hooks |
--hooksPool |
int | 15 |
only with --jsvm goja: the JS runtimes kept ready for hooks |
--jsvm |
string | quickjs |
the JS engine: quickjs (PocketOne's) or goja (PocketBase's own, for pure PocketBase compatibility) |
--migrationsDir |
string | – | the directory with the user defined migrations |
--queryTimeout |
int | 30 |
the default SELECT queries timeout in seconds |
pocketone template eject
Copies a template set (every set without a name) into pb_templates/<set>/ for you to edit
pocketone template eject [set]
Copies the set's built-in Go templates into pb_templates/<set>/; the app renders your copy of each file from then on (delete a file to go back to the built-in one). Files you already have and haven't changed are left alone; files you changed are only overwritten after you confirm, or with --force.
| Flag | Type | Default | |
|---|---|---|---|
--force |
bool | – | overwrite files you changed without asking |
From Templates.
pocketone template list
Lists the template sets extensions offer, and what you've changed in pb_templates
pocketone template list
From Templates.
pocketone token
Manage API tokens (pbt_...)
From API Tokens.
Every pocketone token command takes these.
| Flag | Type | Default | |
|---|---|---|---|
--dev |
bool | – | enable dev mode, aka. printing logs and sql statements to the console |
--dir |
string | <the binary's folder>/pb_data |
the PocketBase data directory |
--encryptionEnv |
string | – | the env variable whose value of 32 characters will be used as encryption key for the app settings (default none) |
--hooksDir |
string | – | the directory with the JS app hooks |
--hooksPool |
int | 15 |
only with --jsvm goja: the JS runtimes kept ready for hooks |
--jsvm |
string | quickjs |
the JS engine: quickjs (PocketOne's) or goja (PocketBase's own, for pure PocketBase compatibility) |
--migrationsDir |
string | – | the directory with the user defined migrations |
--queryTimeout |
int | 30 |
the default SELECT queries timeout in seconds |
pocketone token create
Creates an API token and prints its secret (shown once)
pocketone token create
| Flag | Type | Default | |
|---|---|---|---|
--collection |
string | – | owner: auth collection (with --record) |
--name |
string | – | a name to recognize the token by |
--record |
string | – | owner: record id or email in --collection |
--scope |
stringSlice | – | limit the token to a scope, name or name=value (repeatable; none: the owner's full rights) |
--superuser |
string | – | owner: a superuser's email |
--ttl |
duration | 0s |
lifetime, e.g. 720h (default: never expires) |
From API Tokens.
pocketone token list
Lists API tokens (all, or one owner's)
pocketone token list
| Flag | Type | Default | |
|---|---|---|---|
--collection |
string | – | owner: auth collection (with --record) |
--record |
string | – | owner: record id or email in --collection |
--superuser |
string | – | owner: a superuser's email |
From API Tokens.
pocketone token revoke
Revokes API tokens by id, or all of one owner's (--all)
pocketone token revoke [id...]
| Flag | Type | Default | |
|---|---|---|---|
--all |
bool | – | revoke every token of the owner |
--collection |
string | – | owner: auth collection (with --record) |
--record |
string | – | owner: record id or email in --collection |
--superuser |
string | – | owner: a superuser's email |
From API Tokens.
pocketone token scopes
Lists the scopes extensions registered
pocketone token scopes
From API Tokens.
pocketone upgrade
Upgrades this executable to the latest release, keeping the old one as <name>-<version>
pocketone upgrade
Upgrades this executable to the latest release, keeping the old one as <name>-<version>.
The newest release is offered, prereleases included. Moving from a stable release to a prerelease asks first (no means the newest stable release instead, if there's a newer one); from one prerelease to the next it doesn't.
| Flag | Type | Default | |
|---|---|---|---|
--backup |
bool | true |
Back up pb_data after upgrading, if this folder has one |
-y, --yes |
bool | – | Move from a stable release to a prerelease without asking |
From Upgrade.
Questions and comments
Comments are a GitHub Discussions thread; sign in with GitHub to post.