appcrane_deploy
Triggers deployment of an app by pulling its most recent GitHub commit, building a Docker image, and swapping the container. Defaults to sandbox; production requires confirmation.
Instructions
Trigger a deployment — this IS how you "update an env to the latest". For github and managed apps it pulls the latest commit from the app's configured branch on GitHub (server-side, using the app's stored credentials — you do NOT need your own github token or to push/upload anything), builds a fresh Docker image, and swaps in a new container. Use it whenever the user says things like "update sandbox to the latest", "deploy the newest version", "pull my latest github changes", or "redeploy". Returns a deployment ID; use appcrane_get_logs to monitor progress. Defaults to sandbox; production requires explicit confirmation from the user.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | App slug to deploy | |
| stage | No | Target stage (legacy alias: env). | sandbox |