Skip to content
Documentation
On this page

Versions and deploying

Deploy an app from the Source tab or CLI, inspect retained builds on the Versions tab, switch back to a previous version, and read commit history.

Every time you deploy an app, Executor builds its source into an immutable version and makes that version active once the build succeeds. Saving source edits or pushing Git commits never deploys automatically—you deploy explicitly from the Source tab (Deploy latest) or with executor apps deploy, inspect retained builds on the Versions tab, and view commit history on Source (History) or via executor apps history.

  • Available on: Local, Self-host, and Cloud.
  • Required permissions: On Self-host and Cloud, only the app creator and organization admins (owner or admin) can view Source and Versions, deploy, or activate a previous version. On Local, you can view and deploy any editable app.
  • Main CLI command:
executor apps deploy --app <app-id> --files ./my-app

You’ll know it worked when the Source tab shows Live · up to date (or executor apps deploy returns the app and new version metadata) and the new version carries the Active badge on Versions.

Deploying a new version

A failed build leaves the current active version running and reports the failing stage, file, and line. When a build succeeds, new calls immediately use the new version while keeping the app’s identity, stored SQL data, and compatible account links.

From the dashboard (Local, Self-host, and Cloud)

  1. Open the app and click the Source tab.
  2. Check the live status in the header: Not deployed, Live · up to date, or Live <sha> · N newer commits not deployed.
  3. Click Deploy latest to build and activate the current commit on main. (When the latest saved commit is already live, the button is disabled with "Your latest saved changes are already live.".)

You’ll know it worked when the status banner reads "Deployed. New calls use this version." and the Versions tab lists the new build as Active.

From the CLI (executor apps deploy)

Local

Run executor apps deploy directly—no sign-in is required on Local:

# Save a local directory as the next commit and deploy it
executor apps deploy --app <app-id> --files ./my-app --message "Add search filter"

# Or deploy a commit SHA already saved in the app's Git history
executor apps deploy --app <app-id> --commit <commit-sha>

Cloud and Self-host

  1. Sign in for app commands (in 2.0.0-beta.79, executor apps uses its own sign-in separate from executor login):
executor apps login --host https://app.executor.sh
  1. Deploy either a saved commit or a local directory (pass --organization <org> if needed, and --host <your origin> for Self-host):
executor apps deploy --host https://app.executor.sh --app <app-id> --files ./my-app --message "Release v2"

You’ll know it worked when the command exits 0 and prints JSON containing app (with activeVersion set to the new version ID) and version metadata.

Viewing versions and switching back

Open the Versions tab to see every retained version listed newest first (Version N, Version N-1, …) with its timestamp and an Active badge on the running build. Selecting any version shows its Deployed timestamp, Source commit short SHA (or Files when deployed directly without a commit), and a read-only file browser.

Switching back on Cloud and Self-host

  1. Open the Versions tab and select a previous version in the sidebar.
  2. Click Activate version in the header.
  3. In the Activate this version? dialog, review the warning ("New calls will use this code. App data and changes made in other services will not be rolled back.") and click Activate version to confirm.

Executor checks that the current active version has not changed while the dialog was open (expectedVersion) so concurrent deploys are never silently overwritten.

You’ll know it worked when the Active badge moves to the selected version and subsequent tool calls run its code.

Switching back on Local

On Local, the Versions tab is read-only and does not render an Activate version button. To roll back on Local:

  1. Find the commit SHA you want from the Versions tab (Source field) or by running executor apps history --app <app-id>.
  2. Deploy that commit as a new active version:
executor apps deploy --app <app-id> --commit <commit-sha>

You’ll know it worked when executor apps deploy returns a new active version built from that commit SHA.

Viewing commit history (executor apps history)

To inspect recent commits in an app’s private Git history:

  • In the dashboard (Local, Self-host, Cloud): On the Source tab, click the N recent commits (or History) link in the header to view commit messages, authors, and SHAs; click Back to files to return.
  • In the CLI: Run:
executor apps history --app <app-id>

Each entry prints commit, author, message, and timestamp. Pass any commit SHA straight to executor apps deploy --app <app-id> --commit <sha>.

Example

Inspect recent commits for an app and redeploy an earlier commit (from packages/app-management/src/cli.ts):

# 1. List your apps to find the app ID
executor apps list

# 2. Inspect saved commits
executor apps history --app <app-id>

# 3. Deploy a specific commit SHA
executor apps deploy --app <app-id> --commit <commit-sha>

Limits

  • Exactly one source flag: executor apps deploy requires either --commit or --files, never both or neither.
  • Source size limits: Code and inline public files are bounded to at most 4,096 files and 16 MiB total (sourceLimits). Any single compiled JavaScript or TypeScript file in the app may be at most 2 MB (2,000,000 bytes); JSON files and files under ui/public/ are excluded from the 2 MB per-file compiler cap.
  • Public asset limits (ui/public/): Up to 10,000 files, 32 MB (32,000,000 bytes) per file, and 1 GB (1,000,000,000 bytes) total.
  • No automatic data rollback: Activating an earlier version changes only the running code—stored SQL data and external changes made in third-party services are not rewound.
  • Rediscover tools after deploy: Agents do not cache tool schemas across deploys; run search again after deploying a new version.

Was this page helpful?