Skip to Content
PyoDocs

Deploy from CI

Use the CLI in a pipeline with an API key.

In CI 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 deploy

You 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/api

Without the CLI

A deploy hook is simpler when all you need is to trigger a deploy.

On this page

Edit page