Deploy from CI
Use the CLI in a pipeline with an API key.
In CIContinuous integration: a service like GitHub Actions that runs your tests and deploys on each push. there's no browser to sign in with, so use an API key. Create one with deploy access and an expiry you'll remember to renew. Then give the CLI your Pyo's URL and the key:
export PYO_URL=https://your-pyo
export PYO_TOKEN=<api-key>
pyo deployYou can pass --url and --token instead. Both work on every command.
If the folder has no pyo.toml, say which service to deploy:
pyo deploy --service shop/apiWithout the CLI
A deploy hook is simpler when all you need is to trigger a deploy.