Create and manage deployments Stay organized with collections Save and categorize content based on your preferences.
Page Summary
Apps Script project deployments make script versions available for use as web apps, add-ons, or API executables.
There are two types of deployments: Head deployments, which are always synced to the current project code and used for testing, and Versioned deployments, which are connected to a specific project version and used for public consumption.
You can create, view, edit, and find the ID of versioned deployments through the Deploy > Manage deployments menu in your Apps Script project.
You can test deployments differently depending on the type of app you build, with specific instructions for Google Workspace add-ons, Editor add-ons, web apps, Google Chat apps, and API Executables.
Versioned deployments cannot be deleted but can be archived and redeployed through the Deploy > Manage deployments menu.
An Apps Script project deployment is a version of the script that is madeavailable for use as a web app, add-on, or API executable. By creating andmanaging deployments, you can iterate on your code, keep track of your changes,and control the exact code version your users have access to.
There are two types of deployments:
- Head deployments, which are always synced to the current project code.
- Versioned deployments, which are connected to a specific project version.
Head deployments
A head deployment is the current project code. When you create an Apps Scriptproject, you automatically create a head deployment for that project.
The head deployment is always in sync with most recently saved code. Forexample, if you create a versioned deployment and then modify your code, thehead deployment reflects those changes, while the versioned deployment remainsintact.
Use head deployments to test code. Don't use head deployments for public use.
Note: There is only ever one head deployment for each Apps Script project. Touse a head deployment, you must have at least read access to the script project.Versioned deployments
A versioned deployment makes a specific version of the project code available.This lets your users continue to use a functioning version while you makechanges and improvements to the code.
When your application is published for public consumption, always use aversioned deployment. You can have multiple active versioned deployments atone time.
Important: You can't transfer ownership of versioned deployments. If youtransfer ownership of a script project to someone, the owner of the existingversioned deployments within the project doesn't change. If an administratordeletes the deployment owner's account, you might experience script errors fortheir deployments.
Create a versioned deployment
To deploy a version of a Google Workspace add-on,Editor add-on, Google Chat app, or an APIexecutable, you must firstswitch your Apps Script’sGoogle Cloud project association from the default project to a standardproject.
To create a versioned deployment, follow these steps:
- Open the Apps Script project.
- At the top right, clickDeploy>New deployment.
- Next toSelect type click Enable deployment types.
- Select the deployment type that you want to deploy. For Google Workspace add-ons, Editor add-ons, and Google Chat apps, selectAdd-on.
Enter the information about your deployment and clickDeploy.
Note: Each new deployment can be shared as a library. If you share the scriptas a library, the deployment description is visible to users of the library.
View versioned deployments
To view the deployments of an Apps Script project, at the top, clickDeploy>Manage deployments.
To view the code of a specific version, refer toView a previous version.
Edit a versioned deployment
You can edit a versioned deployment to change its description or version. Toedit a deployment, follow these steps:
- Open the Apps Script project.
- ClickDeploy>Manage deployments.
- Select the active deployment you want to change and click Edit.
Make your changes and clickDeploy.
If you want to edit an archived deployment, you must redeploy it, thenfollow the preceding steps.
When you want to deploy a change to the project code, create a new version andedit the deployment to use it. The new version is automatically used by anyusers that use that deployment.
Find a deployment ID
Every deployment has an associated string ID automatically created for it. Tofind this ID, follow the steps below:
- Open the Apps Script project.
- At the top right, clickDeploy>Manage deployments.
Select an active deployment to find its ID.
Deployment IDs only appear on active deployments.
Test a deployment
How you test a deployment depends on the type of app you build.
Google Workspace add-on
To test a Google Workspace add-on deployment, see Testing Google Workspace add-ons.
Editor add-on
To test an Editor add-on deployment, seeTest an Editor add-on.
Web app
To test a web app deployment, see Test a web app deployment.
Google Chat app
To test a Chat app deployment, you must first create a versioned deployment of the script to access its deployment ID.
After you have the deployment ID, specify the ID in theChat API configuration and follow the steps totest interactive features.
API Executable
To test an API executable deployment, you must first create a versioned deployment. After you create a deployment, follow the steps below:
- At the top right of the Apps Script project, clickDeploy > Test Deployments.
- Next to ”Select type,” click Enable deployment types
> API Executable.
- Copy and use the URL to test your API Executable deployment.
Archive a versioned deployment
You can't delete versioned deployments. Instead, you can archive them.
To archive a versioned deployment:
- Open the Apps Script project.
- ClickDeploy>Manage deployments.
- Select the deployment you want to archive and click Archive deployment.
Redeploy an archived deployment
- Open the Apps Script project.
- At the top right, clickDeploy>Manage deployments.
- At the left underArchived, select the deployment you want to redeploy and click Edit>Deploy.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-11 UTC.