Deployments
Weik.io 2026.2Deploy integrations to an environment and change or remove their deployments. Video
Watch: Your first integration, 3:15
The video creates sandbox/hello with weikio init and publishes it with weikio apply. Then it deploys the integration to devtest and follows its log lines.
This part of the video couldn't be loaded.
On this page
After you publish an integration, the commands on this page run one of its versions in one environment and change or remove that deployment. Each agent that serves the environment runs a copy of the deployment, if the agent may run the project and has the capabilities the integration requires.
Before deploy and promote change anything, they check that the deployment can run:
- An online agent matches the deployment.
- Every secret the version uses has a value in the environment.
- The matching agents run a new enough release.
When a check fails, run the command at the end of the error to fix it.
Commands on this page#
| Command | What it does |
|---|---|
weikio deploy |
Deploy a version of one or more integrations to an environment. |
weikio get deployments |
List the deployments of an environment. |
weikio get fleet |
List the deployments you may read and what their agents run. |
weikio describe deployment |
Show one deployment with its overrides and the agents that run it. |
weikio promote |
Promote a deployment’s version from one environment to another. |
weikio rollback |
Roll a deployment back to its previous version. |
weikio stop |
Stop a deployment without removing it. |
weikio start |
Start a stopped deployment. |
weikio restart |
Restart a deployment with its current configuration. |
weikio undeploy |
Remove deployments from an environment. |
The flags every command accepts, such as --env, --project, -o and --context, are on the CLI reference page and are left out of the tables below.
weikio deploy#
Deploy a version of one or more integrations to an environment. Without --version, or with --version latest, the deployment runs the newest published version and moves to each new one you publish. In a production environment, a deployment can follow latest only when the environment’s protection allows it.
An override set with --set applies to this deployment only and replaces every other value of that name.
An agent starts the deployment at its next sync. When weikio deploy doesn’t wait, its output shows a warning if no agent runs the deployment yet. To follow each copy, run the weikio status <project>/<name> --env <env> --watch command that the output lists.
weikio deploy [<p>/<n> ...] [-f <path> ...] [--env E] [--version X|latest] [--stopped|--no-start] [--set k=v ...] [--unset k ...] [--force] [--no-wait] [--dry-run] [-y]| Argument or flag | What it does |
|---|---|
<integrations> |
Identifies the integrations, each as project/name. |
-f, --file <file> |
Uses this file or directory, or standard input with -. Repeat it as needed. |
-- |
Sets the version to run, or latest. |
-- |
Creates the deployment without starting it. |
--set <set> |
Adds an override as k=v each time you give it. |
-- |
Removes the override with this name each time you give it. |
-- |
Deploys even when no online agent matches yet, or when a matching agent runs an older release than the version needs. |
-- |
Returns once the deployment is saved, without waiting for it to run. Without a terminal, the command never waits. |
-- |
Prints what would happen and changes nothing. |
-y, --yes |
Skips the confirmation. |
-- |
Stores a reason for the change with the audit record. |
Who can run it: a grant whose role has deploy in the environment.
API:
GET /api/v1/environments/{environment}/projects/{project}/deployments/{name}GET /api/v1/versionPATCH /api/v1/environments/{environment}/projects/{project}/deployments/{name}[?force=true]
$ weikio deploy finance/erp-invoice-exportTarget: https://hub.example, project finance (argument), environment devtest (context)
Deploying finance/erp-invoice-export 1.1.0 (latest) to devtest...
deployment devtest/finance/erp-invoice-export updated (version 1.0.0 -> 1.1.0)
Agents: 1 of 1 running after 3.4 s$ weikio deploy finance/erp-invoice-export # with production as the context's environmenterror: --env is required to write to production environment 'production'.
To go ahead, run:
weikio deploy finance/erp-invoice-export --env productionweikio get deployments#
List the deployments of an environment.
weikio get deployments [--env E] [--project P] [--state S]| Argument or flag | What it does |
|---|---|
-- |
Shows only deployments in this state. |
Who can run it: a grant whose role has read in the environment.
API:
GET /api/v1/environments/{environment}/deploymentsGET /api/v1/environments/{environment}/projects/{project}/deploymentsGET /api/v1/deployments?environment=&project=
$ weikio get deployments --env productionPROJECT INTEGRATION VERSION DESIRED ACTUAL AGENTS SINCE
finance erp-invoice-export 1.0.0 started failed 2/3 running, 1 failed 2026-09-16 14:40 UTC
finance invoice-archive 1.4.2 started running 3/3 running 2026-09-15 09:12 UTC
finance ledger-sync 0.8.0 started pending 0/1 running, 1 offline 2026-09-12 11:30 UTC
finance nightly-payroll 2.3.1 stopped stopped 0/2 running, 2 stopped 2026-09-10 02:05 UTCweikio get fleet#
List the deployments you may read and what their agents run.
weikio get fleet [--env E] [--project P] [--state S]| Argument or flag | What it does |
|---|---|
-- |
Shows only deployments with this health, one of running, degraded, stopped, pending, failed, crashed, blocked, no- or version-. |
Who can run it: a grant whose role has read in the environment.
API: GET /api/v1/deployments?environment=&project=&health=.
weikio describe deployment#
Show one deployment with its overrides and the agents that run it. The AGENTS table shows the process each copy runs in and how many times it restarted. It also shows each copy’s last exit and how long the copy may take to stop.
weikio describe deployment <p>/<n> [--env E]| Argument or flag | What it does |
|---|---|
<integration> |
Identifies the integration as project/name. |
Who can run it: a grant whose role has read in the environment.
API: GET /api/v1/environments/{environment}/projects/{project}/deployments/{name}, GET /api/v1/projects/{project}/integrations/{name}/status, GET /api/v1/users/_emails?ids=, GET /api/v1/agents/{id}.
weikio promote#
Promote a deployment’s version from one environment to another. The command copies the version that runs in the source and doesn’t build it again. When the source follows latest, the destination gets the version latest points at, as a fixed version.
The destination keeps its overrides and Java options. When the destination is production, you confirm the promotion first.
weikio promote <p>/<n> --from A [--to B] [--stopped] [--dry-run] [-y]| Argument or flag | What it does |
|---|---|
<integration> |
Identifies the integration as project/name. |
--from <from> |
Sets the environment to copy from. |
--to <to> |
Sets the environment to copy into. |
-- |
Creates the deployment without starting it. |
-- |
Prints what would happen and changes nothing. |
-y, --yes |
Skips the confirmation. |
-- |
Stores a reason for the change with the audit record. |
Who can run it: a grant with read in the source environment and deploy in the destination environment.
API: GET /api/v1/environments/{A}/projects/{project}/deployments/{name}, GET /api/v1/version, PATCH /api/v1/environments/{B}/projects/{project}/deployments/{name}?dryRun=true, PATCH /api/v1/environments/{B}/projects/{project}/deployments/{name}.
$ weikio promote finance/erp-invoice-export --from devtest --to productionTarget: https://hub.example, project finance (argument), environment production (--to)
error: Can't deploy finance/erp-invoice-export 1.1.0 to production: secret 'erp-api-key' has no value.
To set 'erp-api-key', run:
weikio secret set finance/erp-api-key --env production
To set it for this integration only, run:
weikio secret set finance/erp-api-key --integration erp-invoice-export --env production$ printf '%s' "$ERP_PROD_KEY" | weikio secret set finance/erp-api-key --env productionTarget: https://hub.example, project finance (argument), environment production (--env)
secret finance/erp-api-key set for production (revision 4183)$ weikio promote finance/erp-invoice-export --from devtest --to productionTarget: https://hub.example, project finance (argument), environment production (--to)
This will promote 'finance/erp-invoice-export' 1.1.0 to production environment 'production'.
Continue? [y/N] y
Promoting finance/erp-invoice-export 1.1.0 (latest) to production...
deployment production/finance/erp-invoice-export updated (version 1.0.0 -> 1.1.0, previous 1.0.0)
Agents: 1 of 1 running after 4.0 sweikio rollback#
Roll a deployment back to its previous version. The version you rolled back from becomes the previous one, so a second rollback returns to it.
weikio rollback <p>/<n> [--env E] [--dry-run]| Argument or flag | What it does |
|---|---|
<integration> |
Identifies the integration as project/name. |
-- |
Prints what would happen and changes nothing. |
-y, --yes |
Skips the confirmation. |
-- |
Stores a reason for the change with the audit record. |
Who can run it: a grant whose role has deploy in the environment.
API: GET /api/v1/version, GET /api/v1/environments/{environment}/projects/{project}/deployments/{name}, PATCH /api/v1/environments/{environment}/projects/{project}/deployments/{name}?dryRun=true, PATCH /api/v1/environments/{environment}/projects/{project}/deployments/{name}.
$ weikio rollback finance/erp-invoice-export --env productionTarget: https://hub.example, project finance (argument), environment production (--env)
This will roll 'finance/erp-invoice-export' back to 1.0.0 in production environment 'production'.
Continue? [y/N] y
deployment production/finance/erp-invoice-export updated (version 1.1.0 -> 1.0.0, previous 1.1.0)
Agents: 1 of 1 running after 3.7 sweikio stop#
Stop a deployment without removing it. weikio start starts the same version again.
weikio stop <p>/<n> [--env E]| Argument or flag | What it does |
|---|---|
<integration> |
Identifies the integration as project/name. |
-y, --yes |
Skips the confirmation. |
-- |
Stores a reason for the change with the audit record. |
Who can run it: a grant whose role has operate in the environment.
weikio start#
Start a stopped deployment.
weikio start <p>/<n> [--env E]| Argument or flag | What it does |
|---|---|
<integration> |
Identifies the integration as project/name. |
-y, --yes |
Skips the confirmation. |
-- |
Stores a reason for the change with the audit record. |
Who can run it: a grant whose role has operate in the environment.
weikio restart#
Restart a deployment with its current configuration. The agents stop the integration and start it again. You can’t restart a deployment while a secret the version uses has no value in the environment.
weikio restart <p>/<n> [--env E]| Argument or flag | What it does |
|---|---|
<integration> |
Identifies the integration as project/name. |
-y, --yes |
Skips the confirmation. |
-- |
Stores a reason for the change with the audit record. |
Who can run it: a grant whose role has operate in the environment.
weikio undeploy#
Remove deployments from an environment. Weik.io stops a running deployment before it removes it, and keeps the deployment’s last log lines and figures. The integration’s versions stay published.
weikio undeploy [<p>/<n> ...] [-f <path> ...] [--all [--project P]] [--env E] [-y]| Argument or flag | What it does |
|---|---|
<integrations> |
Identifies the integrations, each as project/name. |
-f, --file <file> |
Uses this file or directory, or standard input with -. Repeat it as needed. |
--all |
Removes every deployment in the environment that you have deploy access to. |
-y, --yes |
Skips the confirmation. |
-- |
Stores a reason for the change with the audit record. |
Who can run it: a grant whose role has deploy in the environment.
API: DELETE /api/v1/environments/{environment}/projects/{project}/deployments/{name}.
weikio remove does the same.
$ weikio undeploy --env devtest --all --project sandboxTarget: https://hub.example, project sandbox (--project), environment devtest (--env)
3 deployments will be removed from environment 'devtest': sandbox/hello, sandbox/csv-import, sandbox/erp-ping.
Continue? [y/N] y
deployment devtest/sandbox/hello deleted
deployment devtest/sandbox/csv-import deleted
deployment devtest/sandbox/erp-ping deletedExit codes#
The codes match the exit code table in the CLI reference.
| Code | Meaning |
|---|---|
| 0 | The command succeeded. |
| 1 | The command stopped without making the change. |
| 2 | The command has a usage error. |
| 3 | Your key is missing, expired or revoked, or its access doesn’t cover the command. |
| 4 | What you named doesn’t exist. |
| 5 | The change conflicts with another change. |
| 6 | Weik.io couldn’t be reached or wasn’t ready, or it was rate limiting your calls or out of storage. Run the command again later. |
| 8 | A document isn’t valid. |