Manage deployments
manage_deploymentsCreate, list, inspect, update, or delete Google Apps Script deployments—published entry points like web apps and API executables—to control versions, roll back without changing URLs, or remove integrations.
Instructions
Manages the project's deployments — the published entry points (web app, API executable, add-on) that make code callable from outside the editor. action=create deploys version_number (omit it to deploy HEAD — updates live with every save; fine for testing, risky for production) with an optional description. action=list shows all deployments including the automatic @HEAD one (paginate with page_token from nextPageToken); get needs deployment_id and returns entryPoints[] — the web app URL (webApp.url) and the API-executable config run_function depends on. action=update repoints an existing deployment at another version_number and/or changes its description (this is how you ship or roll back without changing the URL; the current config is read first and merged, so omitted fields are preserved); delete removes it permanently and breaks its URL/integrations (the @HEAD deployment cannot be deleted). WHAT a deployment exposes (web app vs API executable, who can access) comes from the appsscript manifest at the deployed version — set it via update_project_content before creating the version. Requires the script.deployments scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | What to do with the deployments. | |
| page_size | No | list: deployments per page (1..50; API default 50). | |
| script_id | Yes | The script project id — from the Apps Script editor URL (script.google.com/home/projects/<scriptId>/edit) or from create_project output. For standalone projects it doubles as the Drive file id. | |
| page_token | No | list: nextPageToken from the previous page. | |
| description | No | create/update: human-readable deployment description. | |
| deployment_id | No | get/update/delete: the deployment to target. | |
| version_number | No | create/update: the immutable version to deploy; omit on create to deploy HEAD. |