Sites and Functions
Deploy a Site or a Function to the Cloud project from a folder.These commands follow the output contract: JSON when stdout is not a terminal, failures as JSON on stderr, and exit codes 0 to 6.
deploy packs the folder with its packer and deploys it to the Cloud project. It goes live unless you
pass --no-promote. sites delete needs --yes.
Generated from dexto 2.0.0-beta.0.
dexto cloud sites deploy
Pack the Site in dir (default: here) with its packer and deploy it to the Cloud project; it goes live unless --no-promote.
dexto cloud sites deploy [dir] | Option | What it does |
|---|---|
--no-promote | Deploy a preview to promote later, instead of making it live. |
--provider <provider> | Where its Function runs: cloudflare-workers or aws-lambda. Omit for the default. |
JSON when stdout is not a terminal, failures as JSON on stderr, exit codes 0 to 6. Also takes the shared options below.
dexto cloud sites list
List the Cloud project's Sites.
dexto cloud sites list JSON when stdout is not a terminal, failures as JSON on stderr, exit codes 0 to 6. Also takes the shared options below.
dexto cloud sites delete
Delete a Site of the Cloud project, by id or slug, with its deployments and data; its slug is free again. Asks first.
dexto cloud sites delete <site> | Option | What it does |
|---|---|
--yes | Go ahead without being asked. Pass it only once your person has agreed. |
JSON when stdout is not a terminal, failures as JSON on stderr, exit codes 0 to 6. Also takes the shared options below.
dexto cloud functions deploy
Pack the Function in dir (default: here) with its packer and deploy it to the Cloud project; it goes live unless --no-promote.
dexto cloud functions deploy [dir] | Option | What it does |
|---|---|
--no-promote | Deploy a preview to promote later, instead of making it live. |
--provider <provider> | Where its Function runs: cloudflare-workers or aws-lambda. Omit for the default. |
--public | Let anyone on the internet reach it. Functions are private by default. |
JSON when stdout is not a terminal, failures as JSON on stderr, exit codes 0 to 6. Also takes the shared options below.
dexto cloud functions list
List the Cloud project's Functions.
dexto cloud functions list JSON when stdout is not a terminal, failures as JSON on stderr, exit codes 0 to 6. Also takes the shared options below.
Shared options
Commands on this page that follow the JSON contract take these.
| Option | What it does |
|---|---|
--api-base-url <api-base-url> | The API origin (default https://api.dexto.ai, or DEXTO_API_BASE_URL). |
--api-key <api-key> | Use this key instead of DEXTO_API_KEY or the saved sign-in. |
--profile <profile> | The saved sign-in to use for this run (or DEXTO_PROFILE); see dexto accounts list. |
--project <project> | The Cloud project to act in when you're signed in (or DEXTO_CLOUD_PROJECT). |
--json | Print JSON, failures included (on stderr). The default when stdout isn't a terminal. |
--table | Print tables for people even when stdout isn't a terminal. |