Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to Content
PyoDocs

Command reference

Every command of the pyo CLI.

Add --help to any command to see this in your terminal. --url and --token, or PYO_URL and PYO_API_KEY, work on every command. --json works on the read commands. See JSON output.

pyo login

Sign in through the browser, or with --token for CI

Sign in through the browser, or with --token for CI

Usage: pyo login [OPTIONS]

Options:
      --expires <EXPIRES>  When the new API key expires [default: 1y] [possible values: 30d, 90d, 1y, never]
      --url <URL>          Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --token <TOKEN>      An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json               Print the data as JSON and nothing else, for scripts and agents. Read commands only
  -h, --help               Print help
  -V, --version            Print version

pyo logout

Forget this computer's sign-in

Forget this computer's sign-in

Usage: pyo logout [OPTIONS]

Options:
      --url <URL>      Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --token <TOKEN>  An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json           Print the data as JSON and nothing else, for scripts and agents. Read commands only
  -h, --help           Print help
  -V, --version        Print version

pyo whoami

Who you're signed in as

Who you're signed in as

Usage: pyo whoami [OPTIONS]

Options:
      --url <URL>      Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --token <TOKEN>  An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json           Print the data as JSON and nothing else, for scripts and agents. Read commands only
  -h, --help           Print help
  -V, --version        Print version

pyo observability

Whether observability (analytics, request logs, usage history) is on for this Pyo, or turn it on or off. Turning it is for the installation's admin, with a full-access key.

Whether observability (analytics, request logs, usage history) is on for this Pyo, or turn it on or off. Turning it is for the installation's admin, with a full-access key.

With --team, the team's: whether its servers collect, whether they keep request logs, and what they keep of visitors' IP addresses and query strings. Changing those is for the team's owners and admins.

Usage: pyo observability [OPTIONS] [STATE]

Arguments:
  [STATE]
          [possible values: on, off]

Options:
      --team <TEAM>
          Show or change this team's settings (slug or id) instead of the installation's

      --url <URL>
          Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to)
          
          [env: PYO_URL]

      --request-logs <REQUEST_LOGS>
          Whether the team's servers keep its request logs
          
          [possible values: on, off]

      --token <TOKEN>
          An API key, for CI (default: the one `pyo login` saved)
          
          [env: PYO_API_KEY]

      --ip <IP>
          What the team keeps of visitors' IP addresses, up to the installation's limit
          
          [possible values: none, anonymized, full, default]

      --json
          Print the data as JSON and nothing else, for scripts and agents. Read commands only

      --query-strings <QUERY_STRINGS>
          What the team keeps of query strings, up to the installation's limit
          
          [possible values: keep, names, none, default]

  -h, --help
          Print help (see a summary with '-h')

  -V, --version
          Print version

Link this folder to a service (writes pyo.jsonc)

Link this folder to a service (writes pyo.jsonc)

Usage: pyo link [OPTIONS] [SERVICE]

Arguments:
  [SERVICE]  "api", "shop/api" or "team/shop/api". Without it, pick from a list

Options:
      --url <URL>      Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --token <TOKEN>  An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json           Print the data as JSON and nothing else, for scripts and agents. Read commands only
  -h, --help           Print help
  -V, --version        Print version

pyo agents

Set up AI coding agents in this folder to use Pyo.

Set up AI coding agents in this folder to use Pyo.

Writes a Pyo section in AGENTS.md (or CLAUDE.md when that's the only one) and the Pyo MCP server in the clients' project config. Shows the changes and asks first. Running it again replaces only the Pyo section.

Usage: pyo agents [OPTIONS]

Options:
      --client <CLIENT>
          The MCP clients to set up, split by commas. Without it, pick from a list

          Possible values:
          - claude: Claude Code: .mcp.json
          - cursor: Cursor: .cursor/mcp.json
          - vscode: VS Code: .vscode/mcp.json
          - codex:  Codex: .codex/config.toml

      --url <URL>
          Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to)
          
          [env: PYO_URL]

      --token <TOKEN>
          An API key, for CI (default: the one `pyo login` saved)
          
          [env: PYO_API_KEY]

  -y, --yes
          Write without asking

      --dry-run
          Show what would change, and write nothing

      --json
          Print the data as JSON and nothing else, for scripts and agents. Read commands only

  -h, --help
          Print help (see a summary with '-h')

  -V, --version
          Print version

pyo deploy

Apply pyo.jsonc and deploy, then follow it to the end.

Apply pyo.jsonc and deploy, then follow it to the end.

A service built from a folder gets this folder, packed and uploaded (.gitignore and .pyoignore apply). In a folder no service is linked to, it makes one and links it. With -f, deploy a Docker Compose file instead: the first time it makes a project of it, and after that it changes only what the file says differently.

Usage: pyo deploy [OPTIONS]

Options:
  -s, --service <SERVICE>
          The service: a name ("api", "shop/api") or id. Default: pyo.jsonc's

      --url <URL>
          Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to)
          
          [env: PYO_URL]

      --detach
          Start it and exit, without following it

      --token <TOKEN>
          An API key, for CI (default: the one `pyo login` saved)
          
          [env: PYO_API_KEY]

      --json
          Print the data as JSON and nothing else, for scripts and agents. Read commands only

      --local
          Send this folder, also for a service built from Git

      --include-env
          Send .env files too (they're left out by default)

      --name <NAME>
          A new service's name. Defaults to the folder's

      --project <PROJECT>
          A new service's project (name or id), made when there's none by that name. With -f, the project the file goes to

  -f, --file <FILE>
          A Docker Compose file to deploy as a project (a .env next to it is read too)

      --dry-run
          With -f: show what would change, and change nothing

      --prune
          With -f: also delete the services made from the file that are no longer in it. Their volumes are kept

      --team <TEAM>
          The team of a new service or Compose import (slug or id). Defaults to your first team

      --cluster <CLUSTER>
          The cluster to run it on (name or id). Defaults to the team's default cluster

  -y, --yes
          Don't ask: deploy the Compose file (and delete with --prune), or go ahead with a very large replica change

      --ref <TAG|DIGEST>
          For a service that runs an image: deploy this tag (v1.2.3) or digest (sha256:…) of its image, and keep it as the service's

  -h, --help
          Print help (see a summary with '-h')

  -V, --version
          Print version

pyo status

The service's state, live version and domains

The service's state, live version and domains

Usage: pyo status [OPTIONS]

Options:
  -s, --service <SERVICE>  The service: a name ("api", "shop/api") or id. Default: pyo.jsonc's
      --url <URL>          Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --token <TOKEN>      An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json               Print the data as JSON and nothing else, for scripts and agents. Read commands only
  -h, --help               Print help
  -V, --version            Print version

pyo logs

The service's logs, from every replica

The service's logs, from every replica

Usage: pyo logs [OPTIONS]

Options:
  -s, --service <SERVICE>  The service: a name ("api", "shop/api") or id. Default: pyo.jsonc's
      --url <URL>          Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
  -f, --follow             Keep printing new lines
      --token <TOKEN>      An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json               Print the data as JSON and nothing else, for scripts and agents. Read commands only
      --since <SINCE>      Only lines since then: 30s, 10m, 2h or 1d
      --replica <REPLICA>  One replica, by its name as the lines show it
      --build              The latest deployment's build and deploy log instead
  -h, --help               Print help
  -V, --version            Print version

pyo env

Environment variables

Environment variables

Usage: pyo env [OPTIONS] [COMMAND]

Commands:
  list   List variables (secrets stay hidden)
  set    Set KEY=value pairs
  unset  Remove variables
  push   Set the variables of a .env file
  pull   Write the variables to a .env file
  help   Print this message or the help of the given subcommand(s)

Options:
      --url <URL>          Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --token <TOKEN>      An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json               Print the data as JSON and nothing else, for scripts and agents. Read commands only
  -s, --service <SERVICE>  The service: a name ("api", "shop/api") or id. Default: pyo.jsonc's
  -h, --help               Print help
  -V, --version            Print version

pyo env list

List variables (secrets stay hidden)

List variables (secrets stay hidden)

Usage: pyo env list [OPTIONS]

Options:
      --url <URL>          Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --token <TOKEN>      An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json               Print the data as JSON and nothing else, for scripts and agents. Read commands only
  -s, --service <SERVICE>  The service: a name ("api", "shop/api") or id. Default: pyo.jsonc's
  -h, --help               Print help
  -V, --version            Print version

pyo env set

Set KEY=value pairs

Set KEY=value pairs

Usage: pyo env set [OPTIONS] <KEY=VALUE>...

Arguments:
  <KEY=VALUE>...  

Options:
      --secret             Store them as secrets: encrypted, never shown again
      --url <URL>          Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --deploy             Deploy right away
      --token <TOKEN>      An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json               Print the data as JSON and nothing else, for scripts and agents. Read commands only
  -s, --service <SERVICE>  The service: a name ("api", "shop/api") or id. Default: pyo.jsonc's
  -h, --help               Print help
  -V, --version            Print version

pyo env unset

Remove variables

Remove variables

Usage: pyo env unset [OPTIONS] <KEY>...

Arguments:
  <KEY>...  

Options:
      --deploy             Deploy right away
      --url <URL>          Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --token <TOKEN>      An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json               Print the data as JSON and nothing else, for scripts and agents. Read commands only
  -s, --service <SERVICE>  The service: a name ("api", "shop/api") or id. Default: pyo.jsonc's
  -h, --help               Print help
  -V, --version            Print version

pyo env push

Set the variables of a .env file.

Set the variables of a .env file.

New keys are variables unless marked secret. A secret that's overwritten stays a secret. In a terminal, you're asked about keys that are already set. Elsewhere, pass --overwrite or --skip-existing.

Usage: pyo env push [OPTIONS] [FILE]

Arguments:
  [FILE]
          [default: .env]

Options:
      --overwrite
          Overwrite keys that are set already

      --url <URL>
          Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to)
          
          [env: PYO_URL]

      --skip-existing
          Keep keys that are set already

      --token <TOKEN>
          An API key, for CI (default: the one `pyo login` saved)
          
          [env: PYO_API_KEY]

      --json
          Print the data as JSON and nothing else, for scripts and agents. Read commands only

      --secret <KEY>
          Make this key a secret (repeatable)

      --secrets
          Make every key a secret

      --dry-run
          Show what would change, without saving

      --deploy
          Deploy right away

  -s, --service <SERVICE>
          The service: a name ("api", "shop/api") or id. Default: pyo.jsonc's

  -h, --help
          Print help (see a summary with '-h')

  -V, --version
          Print version

pyo env pull

Write the variables to a .env file.

Write the variables to a .env file.

Secrets are listed with an empty value, unless --secrets: owners and admins get their values.

Usage: pyo env pull [OPTIONS] [FILE]

Arguments:
  [FILE]
          The file to write
          
          [default: .env]

Options:
  -o, --file <FILE>
          The file to write, as an option

      --url <URL>
          Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to)
          
          [env: PYO_URL]

      --force
          Overwrite the file

      --token <TOKEN>
          An API key, for CI (default: the one `pyo login` saved)
          
          [env: PYO_API_KEY]

      --json
          Print the data as JSON and nothing else, for scripts and agents. Read commands only

      --secrets
          Write secrets' values too. Owners and admins

  -s, --service <SERVICE>
          The service: a name ("api", "shop/api") or id. Default: pyo.jsonc's

  -h, --help
          Print help (see a summary with '-h')

  -V, --version
          Print version

pyo rollback

Put back the previous version (or a deployment by id)

Put back the previous version (or a deployment by id)

Usage: pyo rollback [OPTIONS] [DEPLOYMENT]

Arguments:
  [DEPLOYMENT]  A deployment id. Defaults to the previous version

Options:
  -s, --service <SERVICE>  The service: a name ("api", "shop/api") or id. Default: pyo.jsonc's
      --url <URL>          Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --token <TOKEN>      An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json               Print the data as JSON and nothing else, for scripts and agents. Read commands only
  -h, --help               Print help
  -V, --version            Print version

pyo restart

Restart the service, one replica at a time

Restart the service, one replica at a time

Usage: pyo restart [OPTIONS]

Options:
  -s, --service <SERVICE>  The service: a name ("api", "shop/api") or id. Default: pyo.jsonc's
      --url <URL>          Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --token <TOKEN>      An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json               Print the data as JSON and nothing else, for scripts and agents. Read commands only
  -h, --help               Print help
  -V, --version            Print version

pyo place

Where the service runs: any server, or only the servers and tags given. It moves over right away, without a redeploy. Without options, shows where it runs now

Where the service runs: any server, or only the servers and tags given. It moves over right away, without a redeploy. Without options, shows where it runs now

Usage: pyo place [OPTIONS]

Options:
  -s, --service <SERVICE>  The service: a name ("api", "shop/api") or id. Default: pyo.jsonc's
      --url <URL>          Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --server <SERVERS>   A server to run on, by name (repeatable)
      --token <TOKEN>      An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json               Print the data as JSON and nothing else, for scripts and agents. Read commands only
      --tag <TAGS>         Run on every server with this tag, tagged now or later (repeatable)
      --any                Run on any server
  -h, --help               Print help
  -V, --version            Print version

pyo scale

How many replicas the service runs. It changes right away, without a redeploy, and in pyo.jsonc too. Without a number, shows how many run now and where

How many replicas the service runs. It changes right away, without a redeploy, and in pyo.jsonc too. Without a number, shows how many run now and where

Usage: pyo scale [OPTIONS] [REPLICAS]

Arguments:
  [REPLICAS]  The number of replicas, 1 or more

Options:
  -s, --service <SERVICE>  The service: a name ("api", "shop/api") or id. Default: pyo.jsonc's
      --url <URL>          Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --token <TOKEN>      An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
  -y, --yes                Don't ask: go ahead with a very large change
      --json               Print the data as JSON and nothing else, for scripts and agents. Read commands only
  -h, --help               Print help
  -V, --version            Print version

pyo exec

A shell in the service, or one command: pyo exec -- <command>.

A shell in the service, or one command: pyo exec -- <command>.

A command runs as it is, without a shell (use sh -c for one). It gets a terminal when stdin and stdout are one, else its output and errors stay apart, piped input goes to it, and pyo exits with its exit code.

Usage: pyo exec [OPTIONS] [-- <COMMAND>...]

Arguments:
  [COMMAND]...
          The command and its arguments, after --

Options:
  -s, --service <SERVICE>
          The service: a name ("api", "shop/api") or id. Default: pyo.jsonc's

      --url <URL>
          Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to)
          
          [env: PYO_URL]

      --replica <REPLICA>
          A replica name. Defaults to any ready replica

      --token <TOKEN>
          An API key, for CI (default: the one `pyo login` saved)
          
          [env: PYO_API_KEY]

      --json
          Print the data as JSON and nothing else, for scripts and agents. Read commands only

      --shell <SHELL>
          bash, sh, zsh or ash. Defaults to whichever the service has

  -t, --tty
          Give the command a terminal

  -T, --no-tty
          Never give the command a terminal

  -i, --interactive
          Send stdin to the command even from a terminal (end it with Ctrl-D)

  -h, --help
          Print help (see a summary with '-h')

  -V, --version
          Print version

pyo open

Open the service on the dashboard

Open the service on the dashboard

Usage: pyo open [OPTIONS]

Options:
  -s, --service <SERVICE>  The service: a name ("api", "shop/api") or id. Default: pyo.jsonc's
      --url <URL>          Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --token <TOKEN>      An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json               Print the data as JSON and nothing else, for scripts and agents. Read commands only
  -h, --help               Print help
  -V, --version            Print version

pyo registry

Pyo registry, for the team's own images

Pyo registry, for the team's own images

Usage: pyo registry [OPTIONS] <COMMAND>

Commands:
  login  Log Docker in with a new 30-day token, to push <team>/<project>/<service> images. Only works from a device on Pyo's tailnet
  help   Print this message or the help of the given subcommand(s)

Options:
      --url <URL>      Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --token <TOKEN>  An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json           Print the data as JSON and nothing else, for scripts and agents. Read commands only
  -h, --help           Print help
  -V, --version        Print version

pyo registry login

Log Docker in with a new 30-day token, to push <team>/<project>/<service> images. Only works from a device on Pyo's tailnet

Log Docker in with a new 30-day token, to push <team>/<project>/<service> images. Only works from a device on Pyo's tailnet

Usage: pyo registry login [OPTIONS]

Options:
      --team <TEAM>    The team (slug or id). Defaults to your first team
      --url <URL>      Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --pull-only      A token that can only pull
      --token <TOKEN>  An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json           Print the data as JSON and nothing else, for scripts and agents. Read commands only
  -h, --help           Print help
  -V, --version        Print version

pyo sandbox

Sandboxes: isolated machines on your sandbox servers. exec, shell and cp reach the sandbox's server directly over your tailnet, or through Pyo when the server has no Tailscale

Sandboxes: isolated machines on your sandbox servers. exec, shell and cp reach the sandbox's server directly over your tailnet, or through Pyo when the server has no Tailscale

Usage: pyo sandbox [OPTIONS] <COMMAND>

Commands:
  create     Make a sandbox from a sandbox template and print its id
  ls         The team's sandboxes
  get        One sandbox
  rename     Give a sandbox another name. Its id stays the same
  rm         Delete a sandbox and its files
  pause      Pause a sandbox. It resumes where it was
  resume     Resume a paused sandbox
  extend     Make a sandbox end this long from now
  token      A new token for the sandbox's server, valid an hour
  exec       Run a command in a sandbox and print its output. Exits with its code
  shell      A terminal in a sandbox
  cp         Copy a file into or out of a sandbox: <ID>:<PATH> on one side. Up to 64 MB
  ports      Serve a sandbox's ports at their own URLs
  servers    The servers sandboxes run on
  templates  What sandboxes start from
  help       Print this message or the help of the given subcommand(s)

Options:
      --url <URL>      Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --token <TOKEN>  An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json           Print the data as JSON and nothing else, for scripts and agents. Read commands only
      --team <TEAM>    The team (slug or id). Defaults to your first team
  -h, --help           Print help
  -V, --version        Print version

pyo sandbox create

Make a sandbox from a sandbox template and print its id

Make a sandbox from a sandbox template and print its id

Usage: pyo sandbox create [OPTIONS] [TEMPLATE]

Arguments:
  [TEMPLATE]  The sandbox template, like node-22 (see pyo sandbox templates ls). Default base: Ubuntu 24.04 with git, Python, uv, Node.js, pnpm, Bun, Deno, the GitHub and Docker CLIs, Claude Code, Codex and opencode. desktop adds a desktop and a browser: CDP on port 9222, the screen on port 6080. A server makes these the first time they're used there

Options:
      --name <NAME>             A name to tell it apart. Pyo makes up a short one when left out
      --url <URL>               Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --server <SERVER>         The sandbox server to run it on, by name or id. Pyo picks one when left out
      --token <TOKEN>           An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --cpus <CPUS>             CPUs. Default 1 (2 for desktop)
      --json                    Print the data as JSON and nothing else, for scripts and agents. Read commands only
      --memory <MEMORY>         Memory in MiB. Default 512 (2048 for desktop)
      --disk <DISK>             Writable disk in MiB. Default 2048
      --ttl <TTL>               How long it lives, like 30m, 1h or 7d, up to 365d. "none" keeps it until you delete it. Default 5m
      --pause-when-idle <SECS>  Pause after this many seconds without use
  -e, --env <KEY=VALUE>         An environment variable, KEY=VALUE. Repeat for more
      --label <KEY=VALUE>       A label, key=value. Repeat for more
      --network <NETWORK>       internet or none [possible values: internet, none]
      --isolation <ISOLATION>   auto (Firecracker where the server has KVM, gVisor elsewhere) or vm (Firecracker only) [possible values: auto, vm]
      --project <PROJECT>       A project of the team (id), as a label
      --team <TEAM>             The team (slug or id). Defaults to your first team
  -h, --help                    Print help
  -V, --version                 Print version

pyo sandbox ls

The team's sandboxes

The team's sandboxes

Usage: pyo sandbox ls [OPTIONS]

Options:
  -a, --all            Ended ones too (the latest 500)
      --url <URL>      Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --token <TOKEN>  An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json           Print the data as JSON and nothing else, for scripts and agents. Read commands only
      --team <TEAM>    The team (slug or id). Defaults to your first team
  -h, --help           Print help
  -V, --version        Print version

pyo sandbox get

One sandbox

One sandbox

Usage: pyo sandbox get [OPTIONS] <ID>

Arguments:
  <ID>  The sandbox's id, sbx_…

Options:
      --url <URL>      Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --token <TOKEN>  An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json           Print the data as JSON and nothing else, for scripts and agents. Read commands only
      --team <TEAM>    The team (slug or id). Defaults to your first team
  -h, --help           Print help
  -V, --version        Print version

pyo sandbox rename

Give a sandbox another name. Its id stays the same

Give a sandbox another name. Its id stays the same

Usage: pyo sandbox rename [OPTIONS] <ID> <NAME>

Arguments:
  <ID>    The sandbox's id, sbx_…
  <NAME>  The new name

Options:
      --url <URL>      Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --token <TOKEN>  An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json           Print the data as JSON and nothing else, for scripts and agents. Read commands only
      --team <TEAM>    The team (slug or id). Defaults to your first team
  -h, --help           Print help
  -V, --version        Print version

pyo sandbox rm

Delete a sandbox and its files

Delete a sandbox and its files

Usage: pyo sandbox rm [OPTIONS] <ID>

Arguments:
  <ID>  The sandbox's id, sbx_…

Options:
      --url <URL>      Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --token <TOKEN>  An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json           Print the data as JSON and nothing else, for scripts and agents. Read commands only
      --team <TEAM>    The team (slug or id). Defaults to your first team
  -h, --help           Print help
  -V, --version        Print version

pyo sandbox pause

Pause a sandbox. It resumes where it was

Pause a sandbox. It resumes where it was

Usage: pyo sandbox pause [OPTIONS] <ID>

Arguments:
  <ID>  The sandbox's id, sbx_…

Options:
      --url <URL>      Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --token <TOKEN>  An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json           Print the data as JSON and nothing else, for scripts and agents. Read commands only
      --team <TEAM>    The team (slug or id). Defaults to your first team
  -h, --help           Print help
  -V, --version        Print version

pyo sandbox resume

Resume a paused sandbox

Resume a paused sandbox

Usage: pyo sandbox resume [OPTIONS] <ID>

Arguments:
  <ID>  The sandbox's id, sbx_…

Options:
      --url <URL>      Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --token <TOKEN>  An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json           Print the data as JSON and nothing else, for scripts and agents. Read commands only
      --team <TEAM>    The team (slug or id). Defaults to your first team
  -h, --help           Print help
  -V, --version        Print version

pyo sandbox extend

Make a sandbox end this long from now

Make a sandbox end this long from now

Usage: pyo sandbox extend [OPTIONS] <ID> <TTL>

Arguments:
  <ID>   The sandbox's id, sbx_…
  <TTL>  Like 30m, 1h or 7d. "none" keeps it until you delete it

Options:
      --url <URL>      Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --token <TOKEN>  An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json           Print the data as JSON and nothing else, for scripts and agents. Read commands only
      --team <TEAM>    The team (slug or id). Defaults to your first team
  -h, --help           Print help
  -V, --version        Print version

pyo sandbox token

A new token for the sandbox's server, valid an hour

A new token for the sandbox's server, valid an hour

Usage: pyo sandbox token [OPTIONS] <ID>

Arguments:
  <ID>  The sandbox's id, sbx_…

Options:
      --url <URL>      Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --token <TOKEN>  An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json           Print the data as JSON and nothing else, for scripts and agents. Read commands only
      --team <TEAM>    The team (slug or id). Defaults to your first team
  -h, --help           Print help
  -V, --version        Print version

pyo sandbox exec

Run a command in a sandbox and print its output. Exits with its code

Run a command in a sandbox and print its output. Exits with its code

Usage: pyo sandbox exec [OPTIONS] <ID> <COMMAND>...

Arguments:
  <ID>          The sandbox's id, sbx_…
  <COMMAND>...  One argument runs with /bin/sh -c, more run as they are

Options:
      --cwd <CWD>       The working directory
      --url <URL>       Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --timeout <SECS>  Kill the command after this many seconds. Default 60
      --token <TOKEN>   An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json            Print the data as JSON and nothing else, for scripts and agents. Read commands only
      --team <TEAM>     The team (slug or id). Defaults to your first team
  -h, --help            Print help
  -V, --version         Print version

pyo sandbox shell

A terminal in a sandbox

A terminal in a sandbox

Usage: pyo sandbox shell [OPTIONS] <ID>

Arguments:
  <ID>  The sandbox's id, sbx_…

Options:
      --url <URL>      Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --token <TOKEN>  An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json           Print the data as JSON and nothing else, for scripts and agents. Read commands only
      --team <TEAM>    The team (slug or id). Defaults to your first team
  -h, --help           Print help
  -V, --version        Print version

pyo sandbox cp

Copy a file into or out of a sandbox: <ID>:<PATH> on one side. Up to 64 MB

Copy a file into or out of a sandbox: <ID>:<PATH> on one side. Up to 64 MB

Usage: pyo sandbox cp [OPTIONS] <FROM> <TO>

Arguments:
  <FROM>  A local file, - for stdin, or <ID>:<PATH>
  <TO>    A local file or folder, - for stdout, or <ID>:<PATH>

Options:
      --url <URL>      Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --token <TOKEN>  An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json           Print the data as JSON and nothing else, for scripts and agents. Read commands only
      --team <TEAM>    The team (slug or id). Defaults to your first team
  -h, --help           Print help
  -V, --version        Print version

pyo sandbox ports

Serve a sandbox's ports at their own URLs

Serve a sandbox's ports at their own URLs

Usage: pyo sandbox ports [OPTIONS] <COMMAND>

Commands:
  open   Serve a port the sandbox listens on and print its URL
  close  Stop serving a port
  ls     The sandbox's open ports
  help   Print this message or the help of the given subcommand(s)

Options:
      --url <URL>      Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --token <TOKEN>  An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json           Print the data as JSON and nothing else, for scripts and agents. Read commands only
      --team <TEAM>    The team (slug or id). Defaults to your first team
  -h, --help           Print help
  -V, --version        Print version

pyo sandbox servers

The servers sandboxes run on

The servers sandboxes run on

Usage: pyo sandbox servers [OPTIONS] <COMMAND>

Commands:
  add   Add a sandbox server: prints the command to run on it. Owners and admins
  ls    The sandbox servers the team can use
  rm    Remove a sandbox server (name or id). Its sandboxes end
  help  Print this message or the help of the given subcommand(s)

Options:
      --url <URL>      Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --token <TOKEN>  An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json           Print the data as JSON and nothing else, for scripts and agents. Read commands only
      --team <TEAM>    The team (slug or id). Defaults to your first team
  -h, --help           Print help
  -V, --version        Print version

pyo sandbox templates

What sandboxes start from

What sandboxes start from

Usage: pyo sandbox templates [OPTIONS] <COMMAND>

Commands:
  ls      The sandbox templates the team can use
  create  Make a sandbox template from an image
  help    Print this message or the help of the given subcommand(s)

Options:
      --url <URL>      Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --token <TOKEN>  An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json           Print the data as JSON and nothing else, for scripts and agents. Read commands only
      --team <TEAM>    The team (slug or id). Defaults to your first team
  -h, --help           Print help
  -V, --version        Print version

pyo db

Built-in databases

Built-in databases

Usage: pyo db [OPTIONS] <COMMAND>

Commands:
  import  Copy a Postgres or MySQL database, or a dump file, into an empty database, and follow it. Owners and admins
  help    Print this message or the help of the given subcommand(s)

Options:
      --url <URL>      Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --token <TOKEN>  An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json           Print the data as JSON and nothing else, for scripts and agents. Read commands only
  -h, --help           Print help
  -V, --version        Print version

pyo db import

Copy a Postgres or MySQL database, or a dump file, into an empty database, and follow it. Owners and admins

Copy a Postgres or MySQL database, or a dump file, into an empty database, and follow it. Owners and admins

Usage: pyo db import [OPTIONS] <DATABASE>

Arguments:
  <DATABASE>  The database to import into: its name or id

Options:
      --from <URL>     The database to copy, as a URL: postgres://user:password@host:5432/db or mysql://… (it must be reachable from the cluster). PYO_IMPORT_URL keeps the password out of your shell's history [env: PYO_IMPORT_URL]
      --url <URL>      Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
  -f, --file <FILE>    A dump instead: .sql, .sql.gz, or a Postgres .dump (pg_dump -Fc)
      --token <TOKEN>  An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json           Print the data as JSON and nothing else, for scripts and agents. Read commands only
      --retry          Run the last failed import again, from the same source
      --team <TEAM>    The team (slug or id), when several have a database by that name
      --detach         Start it and exit, without following it
  -h, --help           Print help
  -V, --version        Print version

pyo volume

Volumes: their backups, restoring and growing them, attaching them

Volumes: their backups, restoring and growing them, attaching them

Usage: pyo volume [OPTIONS] <COMMAND>

Commands:
  list           Your teams' volumes
  snapshots      A volume's backups, newest first
  restore        Replace a volume's data with one of its backups. Its service is stopped while it runs and started again after
  delete-backup  Delete one of a volume's backups for good. Owners and admins
  resize         Grow a volume (it never shrinks), where its storage class can
  attach         Attach a detached volume to a service on its cluster. For a service in another project, the volume moves there first
  help           Print this message or the help of the given subcommand(s)

Options:
      --url <URL>          Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --token <TOKEN>      An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json               Print the data as JSON and nothing else, for scripts and agents. Read commands only
  -s, --service <SERVICE>  The service to attach a volume to (pyo volume attach): "api", "shop/api" or an id
  -h, --help               Print help
  -V, --version            Print version

pyo volume list

Your teams' volumes

Your teams' volumes

Usage: pyo volume list [OPTIONS]

Options:
      --url <URL>          Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --token <TOKEN>      An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json               Print the data as JSON and nothing else, for scripts and agents. Read commands only
  -s, --service <SERVICE>  The service to attach a volume to (pyo volume attach): "api", "shop/api" or an id
  -h, --help               Print help
  -V, --version            Print version

pyo volume snapshots

A volume's backups, newest first

A volume's backups, newest first

Usage: pyo volume snapshots [OPTIONS] <VOLUME>

Arguments:
  <VOLUME>  The volume: an id, "name" or "project/name"

Options:
      --url <URL>          Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --token <TOKEN>      An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json               Print the data as JSON and nothing else, for scripts and agents. Read commands only
  -s, --service <SERVICE>  The service to attach a volume to (pyo volume attach): "api", "shop/api" or an id
  -h, --help               Print help
  -V, --version            Print version

pyo volume restore

Replace a volume's data with one of its backups. Its service is stopped while it runs and started again after

Replace a volume's data with one of its backups. Its service is stopped while it runs and started again after

Usage: pyo volume restore [OPTIONS] <VOLUME> [SNAPSHOT]

Arguments:
  <VOLUME>    
  [SNAPSHOT]  A snapshot id (see `pyo volume snapshots`). Without it, pick from a list

Options:
      --url <URL>          Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
  -y, --yes                Don't ask to confirm
      --detach             Start it and exit, without following it
      --token <TOKEN>      An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json               Print the data as JSON and nothing else, for scripts and agents. Read commands only
  -s, --service <SERVICE>  The service to attach a volume to (pyo volume attach): "api", "shop/api" or an id
  -h, --help               Print help
  -V, --version            Print version

pyo volume delete-backup

Delete one of a volume's backups for good. Owners and admins

Delete one of a volume's backups for good. Owners and admins

Usage: pyo volume delete-backup [OPTIONS] <VOLUME> [SNAPSHOT]

Arguments:
  <VOLUME>    
  [SNAPSHOT]  A snapshot id (see `pyo volume snapshots`). Without it, pick from a list

Options:
      --url <URL>          Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
  -y, --yes                Don't ask to confirm
      --token <TOKEN>      An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json               Print the data as JSON and nothing else, for scripts and agents. Read commands only
  -s, --service <SERVICE>  The service to attach a volume to (pyo volume attach): "api", "shop/api" or an id
  -h, --help               Print help
  -V, --version            Print version

pyo volume resize

Grow a volume (it never shrinks), where its storage class can

Grow a volume (it never shrinks), where its storage class can

Usage: pyo volume resize [OPTIONS] <VOLUME> <SIZE>

Arguments:
  <VOLUME>  
  <SIZE>    The new size in GB

Options:
      --url <URL>          Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --token <TOKEN>      An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json               Print the data as JSON and nothing else, for scripts and agents. Read commands only
  -s, --service <SERVICE>  The service to attach a volume to (pyo volume attach): "api", "shop/api" or an id
  -h, --help               Print help
  -V, --version            Print version

pyo volume attach

Attach a detached volume to a service on its cluster. For a service in another project, the volume moves there first

Attach a detached volume to a service on its cluster. For a service in another project, the volume moves there first

Usage: pyo volume attach [OPTIONS] <VOLUME>

Arguments:
  <VOLUME>  

Options:
      --path <PATH>        The folder in the service (default: where it was, or /data)
      --url <URL>          Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --detach             Start a move and exit, without following it
      --token <TOKEN>      An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json               Print the data as JSON and nothing else, for scripts and agents. Read commands only
  -s, --service <SERVICE>  The service to attach a volume to (pyo volume attach): "api", "shop/api" or an id
  -h, --help               Print help
  -V, --version            Print version

pyo domain

The service's domains

The service's domains

Usage: pyo domain [OPTIONS] <COMMAND>

Commands:
  list      The service's domains and their status
  add       Serve the service on a hostname, or on a path of one. It applies without a redeploy
  redirect  Redirect a domain, or a path of it, to another hostname or path. The query is kept. Live without a redeploy
  header    Header rules of a domain: headers to set or remove on its responses, or with --request on requests to the service. Without changes, lists them
  remove    Stop serving the service on a hostname. Deletes the DNS record Pyo made for it in Cloudflare
  tunnel    Serve a domain through the cluster's Cloudflare Tunnel, or move it back
  dns       Create a domain's DNS record in Cloudflare, or try again. Never overwrites a record
  help      Print this message or the help of the given subcommand(s)

Options:
      --url <URL>          Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --token <TOKEN>      An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json               Print the data as JSON and nothing else, for scripts and agents. Read commands only
  -s, --service <SERVICE>  The service: a name ("api", "shop/api") or id. Default: pyo.jsonc's
  -h, --help               Print help
  -V, --version            Print version

pyo domain list

The service's domains and their status

The service's domains and their status

Usage: pyo domain list [OPTIONS]

Options:
      --url <URL>          Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --token <TOKEN>      An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json               Print the data as JSON and nothing else, for scripts and agents. Read commands only
  -s, --service <SERVICE>  The service: a name ("api", "shop/api") or id. Default: pyo.jsonc's
  -h, --help               Print help
  -V, --version            Print version

pyo domain add

Serve the service on a hostname, or on a path of one. It applies without a redeploy

Serve the service on a hostname, or on a path of one. It applies without a redeploy

Usage: pyo domain add [OPTIONS] [HOSTNAME]

Arguments:
  [HOSTNAME]  e.g. app.example.com, or app.example.com/api for a path

Options:
      --path <PATH>                Only this path of the hostname, like /api. Other services of the team can serve its other paths
      --url <URL>                  Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --strip-prefix               Send /api/x to the service as /x
      --token <TOKEN>              An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --free                       A free nip.io domain instead, or a tunnel domain in tunnel mode (no DNS record needed)
      --json                       Print the data as JSON and nothing else, for scripts and agents. Read commands only
      --port <PORT>                The HTTP port to route to, by name or number (default: the first)
      --wait                       Wait until it's live
      --no-cloudflare              Don't create the DNS record in Cloudflare, even when a connected zone covers it
      --proxied                    Proxied by Cloudflare (once its certificate is issued)
      --redirect-to <HOST[/PATH]>  Only redirect it, like www.example.com to example.com. No port
  -s, --service <SERVICE>          The service: a name ("api", "shop/api") or id. Default: pyo.jsonc's
      --status <STATUS>            The redirect's status: 301 (default) or 302 [possible values: 301, 302]
  -h, --help                       Print help
  -V, --version                    Print version

pyo domain redirect

Redirect a domain, or a path of it, to another hostname or path. The query is kept. Live without a redeploy

Redirect a domain, or a path of it, to another hostname or path. The query is kept. Live without a redeploy

Usage: pyo domain redirect [OPTIONS] <FROM>

Arguments:
  <FROM>  What to redirect: www.example.com, or example.com/old

Options:
      --to <TO>            Where to: example.com, example.com/new or /new
      --url <URL>          Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --status <STATUS>    301 (default) or 302 [possible values: 301, 302]
      --token <TOKEN>      An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json               Print the data as JSON and nothing else, for scripts and agents. Read commands only
      --no-keep-path       Send every request to the target path itself, not the rest of its path
      --remove             Remove the redirect
  -s, --service <SERVICE>  The service: a name ("api", "shop/api") or id. Default: pyo.jsonc's
  -h, --help               Print help
  -V, --version            Print version

pyo domain header

Header rules of a domain: headers to set or remove on its responses, or with --request on requests to the service. Without changes, lists them

Header rules of a domain: headers to set or remove on its responses, or with --request on requests to the service. Without changes, lists them

Usage: pyo domain header [OPTIONS] <HOSTNAME>

Arguments:
  <HOSTNAME>  e.g. example.com

Options:
      --set <NAME: VALUE>  "Name: value". Repeat for more
      --url <URL>          Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --remove <NAME>      A header to remove. Repeat for more
      --token <TOKEN>      An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json               Print the data as JSON and nothing else, for scripts and agents. Read commands only
      --request            On requests to the service instead of responses
      --unset <NAME>       Stop setting or removing these headers (by name)
  -s, --service <SERVICE>  The service: a name ("api", "shop/api") or id. Default: pyo.jsonc's
  -h, --help               Print help
  -V, --version            Print version

pyo domain remove

Stop serving the service on a hostname. Deletes the DNS record Pyo made for it in Cloudflare

Stop serving the service on a hostname. Deletes the DNS record Pyo made for it in Cloudflare

Usage: pyo domain remove [OPTIONS] <HOSTNAME>

Arguments:
  <HOSTNAME>  e.g. app.example.com, or app.example.com/api for a path

Options:
      --url <URL>          Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
  -y, --yes                Don't ask to confirm
      --keep-dns-record    Keep the DNS record Pyo made in Cloudflare
      --token <TOKEN>      An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json               Print the data as JSON and nothing else, for scripts and agents. Read commands only
  -s, --service <SERVICE>  The service: a name ("api", "shop/api") or id. Default: pyo.jsonc's
  -h, --help               Print help
  -V, --version            Print version

pyo domain tunnel

Serve a domain through the cluster's Cloudflare Tunnel, or move it back

Serve a domain through the cluster's Cloudflare Tunnel, or move it back

Usage: pyo domain tunnel [OPTIONS] <HOSTNAME>

Arguments:
  <HOSTNAME>  e.g. app.example.com

Options:
      --replace            Replace the records in the way. Owners and admins
      --url <URL>          Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --back               Move it back from the tunnel. Not for a name under the tunnel's default domain
      --token <TOKEN>      An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json               Print the data as JSON and nothing else, for scripts and agents. Read commands only
      --no-restore         Moving back: don't put back the records the tunnel replaced
      --finish             Finish now: close the direct path without waiting for Cloudflare. Visitors it still sends the old way get 404. Owners and admins
  -s, --service <SERVICE>  The service: a name ("api", "shop/api") or id. Default: pyo.jsonc's
  -h, --help               Print help
  -V, --version            Print version

pyo domain dns

Create a domain's DNS record in Cloudflare, or try again. Never overwrites a record

Create a domain's DNS record in Cloudflare, or try again. Never overwrites a record

Usage: pyo domain dns [OPTIONS] <HOSTNAME>

Arguments:
  <HOSTNAME>  e.g. app.example.com

Options:
      --proxied            Proxied by Cloudflare (once its certificate is issued)
      --url <URL>          Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --replace            Replace the records in the way. Owners and admins
      --token <TOKEN>      An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json               Print the data as JSON and nothing else, for scripts and agents. Read commands only
  -s, --service <SERVICE>  The service: a name ("api", "shop/api") or id. Default: pyo.jsonc's
  -h, --help               Print help
  -V, --version            Print version

pyo cloudflare

The team's Cloudflare account: Pyo creates DNS records for domains in its zones. Owners and admins connect it

The team's Cloudflare account: Pyo creates DNS records for domains in its zones. Owners and admins connect it

Usage: pyo cloudflare [OPTIONS] <COMMAND>

Commands:
  connect  Connect Cloudflare, or replace its token. The token needs Zone:Read and DNS:Edit
  test     Check the token: the zones it covers and what it's missing
  zones    The zones Pyo can create records in
  remove   Forget the token. Records Pyo made stay in Cloudflare
  tunnel   A cluster's Cloudflare Tunnel: websites through Cloudflare, no open ports
  help     Print this message or the help of the given subcommand(s)

Options:
      --url <URL>      Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --token <TOKEN>  An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json           Print the data as JSON and nothing else, for scripts and agents. Read commands only
      --team <TEAM>    The team (slug or id). Defaults to your first team
  -h, --help           Print help
  -V, --version        Print version

pyo cloudflare connect

Connect Cloudflare, or replace its token. The token needs Zone:Read and DNS:Edit

Connect Cloudflare, or replace its token. The token needs Zone:Read and DNS:Edit

Usage: pyo cloudflare connect [OPTIONS]

Options:
      --token-file <TOKEN_FILE>  A file with the token, or - for stdin. Or set CLOUDFLARE_API_TOKEN
      --url <URL>                Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --token <TOKEN>            An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json                     Print the data as JSON and nothing else, for scripts and agents. Read commands only
      --team <TEAM>              The team (slug or id). Defaults to your first team
  -h, --help                     Print help
  -V, --version                  Print version

pyo cloudflare test

Check the token: the zones it covers and what it's missing

Check the token: the zones it covers and what it's missing

Usage: pyo cloudflare test [OPTIONS]

Options:
      --url <URL>      Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --token <TOKEN>  An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json           Print the data as JSON and nothing else, for scripts and agents. Read commands only
      --team <TEAM>    The team (slug or id). Defaults to your first team
  -h, --help           Print help
  -V, --version        Print version

pyo cloudflare zones

The zones Pyo can create records in

The zones Pyo can create records in

Usage: pyo cloudflare zones [OPTIONS]

Options:
      --url <URL>      Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --token <TOKEN>  An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json           Print the data as JSON and nothing else, for scripts and agents. Read commands only
      --team <TEAM>    The team (slug or id). Defaults to your first team
  -h, --help           Print help
  -V, --version        Print version

pyo cloudflare remove

Forget the token. Records Pyo made stay in Cloudflare

Forget the token. Records Pyo made stay in Cloudflare

Usage: pyo cloudflare remove [OPTIONS]

Options:
      --url <URL>      Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
  -y, --yes            Don't ask to confirm
      --token <TOKEN>  An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json           Print the data as JSON and nothing else, for scripts and agents. Read commands only
      --team <TEAM>    The team (slug or id). Defaults to your first team
  -h, --help           Print help
  -V, --version        Print version

pyo cloudflare tunnel

A cluster's Cloudflare Tunnel: websites through Cloudflare, no open ports

A cluster's Cloudflare Tunnel: websites through Cloudflare, no open ports

Usage: pyo cloudflare tunnel [OPTIONS] <COMMAND>

Commands:
  status  The tunnel, its connectors and its domains
  on      Take the cluster's websites through Cloudflare Tunnel. Owners and admins
  off     Take websites on public ports or Tailscale only again. The tunnel stays until removed
  remove  Remove the tunnel, its records and its connector. Owners and admins
  rotate  A new token and certificate for the tunnel. Owners and admins
  help    Print this message or the help of the given subcommand(s)

Options:
      --url <URL>      Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --token <TOKEN>  An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json           Print the data as JSON and nothing else, for scripts and agents. Read commands only
      --team <TEAM>    The team (slug or id). Defaults to your first team
  -h, --help           Print help
  -V, --version        Print version

pyo cluster

A cluster's settings: its traffic paths

A cluster's settings: its traffic paths

Usage: pyo cluster [OPTIONS] <COMMAND>

Commands:
  paths    Show or turn the cluster's traffic paths on and off: public ports 80 and 443, Cloudflare Tunnel and websites on the tailnet. Turning one off that domains use lists them first. Owners and admins
  gateway  Show or change the cluster's gateway: HTTP/3, compression, the TLS minimum and the timeout defaults for services without their own. HTTP/3 and the TLS minimum drop open connections once. Owners and admins
  help     Print this message or the help of the given subcommand(s)

Options:
      --url <URL>      Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --token <TOKEN>  An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json           Print the data as JSON and nothing else, for scripts and agents. Read commands only
      --team <TEAM>    The team (slug or id). Defaults to your first team
  -h, --help           Print help
  -V, --version        Print version

pyo cluster paths

Show or turn the cluster's traffic paths on and off: public ports 80 and 443, Cloudflare Tunnel and websites on the tailnet. Turning one off that domains use lists them first. Owners and admins

Show or turn the cluster's traffic paths on and off: public ports 80 and 443, Cloudflare Tunnel and websites on the tailnet. Turning one off that domains use lists them first. Owners and admins

Usage: pyo cluster paths [OPTIONS] <CLUSTER>

Arguments:
  <CLUSTER>  The cluster, by name or id

Options:
      --public <PUBLIC>
          Ports 80 and 443 on the servers: on or off
      --url <URL>
          Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --token <TOKEN>
          An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --tunnel <TUNNEL>
          Cloudflare Tunnel: on or off. Off removes it at Cloudflare
      --json
          Print the data as JSON and nothing else, for scripts and agents. Read commands only
      --tailnet <TAILNET>
          Websites on the tailnet: on or off. Servers stay on the tailnet
      --team <TEAM>
          The team (slug or id). Defaults to your first team
      --ports <PORTS>
          TCP and UDP ports on the servers while public ports are off: on or off
      --move-to-tunnel <MOVE_TO_TUNNEL>
          Turning public ports off: move domains in the tunnel's Cloudflare account to the tunnel first (on by default): on or off
      --restore-records <RESTORE_RECORDS>
          Turning the tunnel off: put back the records it replaced (on by default): on or off
  -y, --yes
          Go ahead when domains move or stop
  -h, --help
          Print help
  -V, --version
          Print version

pyo cluster gateway

Show or change the cluster's gateway: HTTP/3, compression, the TLS minimum and the timeout defaults for services without their own. HTTP/3 and the TLS minimum drop open connections once. Owners and admins

Show or change the cluster's gateway: HTTP/3, compression, the TLS minimum and the timeout defaults for services without their own. HTTP/3 and the TLS minimum drop open connections once. Owners and admins

Usage: pyo cluster gateway [OPTIONS] <CLUSTER>

Arguments:
  <CLUSTER>  The cluster, by name or id

Options:
      --http3 <HTTP3>
          HTTP/3 on UDP port 443: on or off. Needs public ports, and UDP 443 open in the servers' firewall
      --url <URL>
          Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --compression <COMPRESSION>
          Zstd, Brotli and Gzip on services' HTTPS domains: on or off
      --token <TOKEN>
          An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json
          Print the data as JSON and nothing else, for scripts and agents. Read commands only
      --team <TEAM>
          The team (slug or id). Defaults to your first team
      --tls-min <TLS_MIN>
          The oldest TLS version HTTPS accepts: 1.2 or 1.3
      --request-timeout <REQUEST_TIMEOUT>
          Seconds a request may take, 1 to 3600, or 0 for no limit
      --idle-timeout <IDLE_TIMEOUT>
          Seconds a WebSocket or stream may stay quiet, 60 to 86400
  -y, --yes
          Go ahead when open connections drop
  -h, --help
          Print help
  -V, --version
          Print version

pyo firewall

Who may reach the service: its firewall rules, and a CDN in front

Who may reach the service: its firewall rules, and a CDN in front

Usage: pyo firewall [OPTIONS] <COMMAND>

Commands:
  list    The rules, in the order they're checked
  add     Add a rule at the end
  remove  Remove a rule, by its number in the list or its id
  behind  Put the service's websites behind a CDN, or "off"
  help    Print this message or the help of the given subcommand(s)

Options:
      --url <URL>          Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --token <TOKEN>      An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json               Print the data as JSON and nothing else, for scripts and agents. Read commands only
  -s, --service <SERVICE>  The service: a name ("api", "shop/api") or id. Default: pyo.jsonc's
  -h, --help               Print help
  -V, --version            Print version

pyo firewall list

The rules, in the order they're checked

The rules, in the order they're checked

Usage: pyo firewall list [OPTIONS]

Options:
      --url <URL>          Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --token <TOKEN>      An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json               Print the data as JSON and nothing else, for scripts and agents. Read commands only
  -s, --service <SERVICE>  The service: a name ("api", "shop/api") or id. Default: pyo.jsonc's
  -h, --help               Print help
  -V, --version            Print version

pyo firewall add

Add a rule at the end.

Add a rule at the end.

Values: IP addresses and ranges, two-letter country codes, or presets: cloudflare, fastly, bunny, cloudfront (a CDN's current ranges), tailnet, private. None: any client.

Usage: pyo firewall add [OPTIONS] <ACTION> [VALUES]...

Arguments:
  <ACTION>
          allow, block or rate-limit

  [VALUES]...
          The values to match

Options:
      --not
          Match clients not in the values instead

      --url <URL>
          Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to)
          
          [env: PYO_URL]

      --requests <REQUESTS>
          A rate limit's requests from each client address

      --token <TOKEN>
          An API key, for CI (default: the one `pyo login` saved)
          
          [env: PYO_API_KEY]

      --json
          Print the data as JSON and nothing else, for scripts and agents. Read commands only

      --per <PER>
          A rate limit's window: second or minute
          
          [possible values: second, minute]

      --name <NAME>
          A name for it

  -s, --service <SERVICE>
          The service: a name ("api", "shop/api") or id. Default: pyo.jsonc's

  -h, --help
          Print help (see a summary with '-h')

  -V, --version
          Print version

pyo firewall remove

Remove a rule, by its number in the list or its id

Remove a rule, by its number in the list or its id

Usage: pyo firewall remove [OPTIONS] <RULE>

Arguments:
  <RULE>  

Options:
      --url <URL>          Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
  -y, --yes                Don't ask to confirm
      --token <TOKEN>      An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json               Print the data as JSON and nothing else, for scripts and agents. Read commands only
  -s, --service <SERVICE>  The service: a name ("api", "shop/api") or id. Default: pyo.jsonc's
  -h, --help               Print help
  -V, --version            Print version

pyo firewall behind

Put the service's websites behind a CDN, or "off".

Put the service's websites behind a CDN, or "off".

Behind Cloudflare, only Cloudflare reaches them, and rules, rate limits and analytics see the visitor it forwards.

Usage: pyo firewall behind [OPTIONS] <CDN>

Arguments:
  <CDN>
          [possible values: cloudflare, off]

Options:
      --url <URL>
          Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to)
          
          [env: PYO_URL]

      --token <TOKEN>
          An API key, for CI (default: the one `pyo login` saved)
          
          [env: PYO_API_KEY]

      --json
          Print the data as JSON and nothing else, for scripts and agents. Read commands only

  -s, --service <SERVICE>
          The service: a name ("api", "shop/api") or id. Default: pyo.jsonc's

  -h, --help
          Print help (see a summary with '-h')

  -V, --version
          Print version

pyo import

Bring services over from Coolify, Dokploy, Railway or Vercel: see what they become, then import them. Owners and admins

Bring services over from Coolify, Dokploy, Railway or Vercel: see what they become, then import them. Owners and admins

Usage: pyo import [OPTIONS] --source-token <SOURCE_TOKEN> <PLATFORM>

Arguments:
  <PLATFORM>  The platform: coolify, dokploy, railway or vercel [possible values: coolify, dokploy, railway, vercel]

Options:
      --from <FROM>                  Its address, e.g. https://coolify.example.com. Not for Railway or Vercel
      --url <URL>                    Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --source-token <SOURCE_TOKEN>  Its API token (Coolify's with read and read:sensitive, a Railway account, workspace or project token, a Vercel token). Used for this import only [env: PYO_IMPORT_TOKEN]
      --token <TOKEN>                An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json                         Print the data as JSON and nothing else, for scripts and agents. Read commands only
      --source-team <SOURCE_TEAM>    Vercel only: the team to read (its slug or id). The token's own scope by default
      --team <TEAM>                  The team to import into (slug or id). Defaults to your first team
      --cluster <CLUSTER>            The cluster to run it on (name or id). Defaults to the team's default cluster
      --deploy                       Deploy the services once they're made
  -y, --yes                          Import without asking
  -h, --help                         Print help
  -V, --version                      Print version

pyo backup

Backups of volumes and databases

Backups of volumes and databases

Usage: pyo backup [OPTIONS] <COMMAND>

Commands:
  now   Back up a volume or database now
  help  Print this message or the help of the given subcommand(s)

Options:
      --url <URL>          Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
  -s, --service <SERVICE>  The service: a name ("api", "shop/api") or id. Default: pyo.jsonc's
      --token <TOKEN>      An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json               Print the data as JSON and nothing else, for scripts and agents. Read commands only
  -h, --help               Print help
  -V, --version            Print version

pyo backup now

Back up a volume or database now.

Back up a volume or database now.

Without --volume or --db: the service's volume, when it has one.

Usage: pyo backup now [OPTIONS]

Options:
      --url <URL>
          Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to)
          
          [env: PYO_URL]

      --volume <VOLUME>
          The volume: an id, "name" or "project/name"

      --db <DB>
          The database: its name or id

  -s, --service <SERVICE>
          The service: a name ("api", "shop/api") or id. Default: pyo.jsonc's

      --token <TOKEN>
          An API key, for CI (default: the one `pyo login` saved)
          
          [env: PYO_API_KEY]

      --json
          Print the data as JSON and nothing else, for scripts and agents. Read commands only

      --wait
          Wait until it's done

  -h, --help
          Print help (see a summary with '-h')

  -V, --version
          Print version

pyo version

The CLI's version, like --version

The CLI's version, like --version

Usage: pyo version [OPTIONS]

Options:
      --url <URL>      Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to) [env: PYO_URL]
      --token <TOKEN>  An API key, for CI (default: the one `pyo login` saved) [env: PYO_API_KEY]
      --json           Print the data as JSON and nothing else, for scripts and agents. Read commands only
  -h, --help           Print help

pyo upgrade

Update the CLI to the latest release.

Update the CLI to the latest release.

Once a day, the CLI looks for a new release and says when one is out. PYO_NO_UPDATE_CHECK=1 turns that off.

Usage: pyo upgrade [OPTIONS]

Options:
      --url <URL>
          Your Pyo, e.g. https://pyo.example.com (default: the one you signed in to)
          
          [env: PYO_URL]

      --version <VERSION>
          A release instead of the latest, e.g. 0.3.0

      --token <TOKEN>
          An API key, for CI (default: the one `pyo login` saved)
          
          [env: PYO_API_KEY]

      --json
          Print the data as JSON and nothing else, for scripts and agents. Read commands only

  -h, --help
          Print help (see a summary with '-h')