---
title: "App commands"
description: "Executor CLI 2.0.0-beta.79 usage, arguments, flags and examples for app commands."
---

These commands come from Executor CLI `2.0.0-beta.79` and cover `executor apps` through `executor apps deploy`. See [global flags and command groups](/docs/reference/cli#global-flags).

Next: [App commands starting at executor apps copy](/docs/reference/cli/apps-2)

## `executor apps`

Create, edit, deploy, share, and install apps. Output is JSON on stdout. A failure exits 1 and prints the error's message, code, HTTP status and recovery on stderr; when stdout is not a terminal it also prints them as {"error": {"code", "status", "message", "recovery", "details", "update"}} on stdout; "update" says when a newer CLI release exists. Commands use --host, then EXECUTOR_HOST, then the host you signed in to last, then the local background Executor; --organization defaults to the one you signed in to

```text
executor apps <subcommand> [flags]
```

```sh
# Sign in to hosted Executor once
executor apps login

# List apps on the host you signed in to
executor apps list

# Read how to write and deploy an app
executor skills --app executor --name app-authoring --file deploy.md
```

## `executor apps login`

Sign in to a hosted Executor for app commands with a code approved in any browser. Later commands use this host by default

```text
executor apps login [flags]
```

| Option | Description |
| --- | --- |
| `--host string` | Executor origin to sign in to. Defaults to EXECUTOR_HOST, then hosted Executor, https://api.executor.sh |

```sh
# Print a link and a code, and wait until it is approved in a browser
executor apps login
```

## `executor apps list`

List apps

```text
executor apps list [flags]
```

| Option | Description |
| --- | --- |
| `--host string` | Executor origin, such as https://api.executor.sh. Defaults to EXECUTOR_HOST, then the host you signed in to last, then the local background Executor, which starts if needed |
| `--organization string` | Hosted organization. Required with EXECUTOR_ACCESS_TOKEN; after executor apps login it defaults to the signed-in organization |

## `executor apps create`

Create an app from source files: a root index.ts and a package.json whose dependencies.apps is the version executor apps framework prints. Saving source does not run the app. Prints the app, including its id

```text
executor apps create [flags]
```

| Option | Description |
| --- | --- |
| `--host string` | Executor origin, such as https://api.executor.sh. Defaults to EXECUTOR_HOST, then the host you signed in to last, then the local background Executor, which starts if needed |
| `--organization string` | Hosted organization. Required with EXECUTOR_ACCESS_TOKEN; after executor apps login it defaults to the signed-in organization |
| `--name string` | Name for the new app |
| `--files path` | Complete app source: a directory read recursively (skipping .git, node_modules, .DS_Store), or a JSON file containing [{"path": "index.ts", "content": "..."}]. It must include a root index.ts. Code outside ui/public/ is UTF-8 text, at most 4,096 files and 16 MiB; files under ui/public/ may be binary: at most 10,000 files, each at most 32,000,000 bytes. A source larger than 16 MiB in total is pushed with Git. The CLI checks these limits before uploading. The host's build also refuses any of the app's own JavaScript or TypeScript files over 2,000,000 bytes; that limit is checked by the host, not before uploading, and does not cover files inside imported packages |

```sh
# Create an app from the directory ./hello
executor apps create --name "Hello" --files ./hello

# Create an app from a JSON array of {"path", "content"} files
executor apps create --name "Hello" --files ./files.json
```

## `executor apps framework`

Print the exact apps framework version this host runs. Declare it as dependencies.apps in each app's package.json

```text
executor apps framework [flags]
```

| Option | Description |
| --- | --- |
| `--host string` | Executor origin, such as https://api.executor.sh. Defaults to EXECUTOR_HOST, then the host you signed in to last, then the local background Executor, which starts if needed |
| `--organization string` | Hosted organization. Required with EXECUTOR_ACCESS_TOKEN; after executor apps login it defaults to the signed-in organization |

## `executor apps source`

Print an app's working source files and current commit. A ui/public/ file that is not text, or does not fit, is listed as {path, object, size}; pass --out to write every file

```text
executor apps source [flags]
```

| Option | Description |
| --- | --- |
| `--host string` | Executor origin, such as https://api.executor.sh. Defaults to EXECUTOR_HOST, then the host you signed in to last, then the local background Executor, which starts if needed |
| `--organization string` | Hosted organization. Required with EXECUTOR_ACCESS_TOKEN; after executor apps login it defaults to the signed-in organization |
| `--app string` | App ID, such as app_…; executor apps list prints each app's id |
| `--out directory` | Write the working source into this directory instead of printing it, binary ui/public/ files included. The directory must be empty or absent |

## `executor apps history`

List recent commits in an app's private Git history

```text
executor apps history [flags]
```

| Option | Description |
| --- | --- |
| `--host string` | Executor origin, such as https://api.executor.sh. Defaults to EXECUTOR_HOST, then the host you signed in to last, then the local background Executor, which starts if needed |
| `--organization string` | Hosted organization. Required with EXECUTOR_ACCESS_TOKEN; after executor apps login it defaults to the signed-in organization |
| `--app string` | App ID, such as app_…; executor apps list prints each app's id |

## `executor apps git`

Print the app's Git remote URL. Configure executor apps credential as the Git credential helper

```text
executor apps git [flags]
```

| Option | Description |
| --- | --- |
| `--host string` | Executor origin, such as https://api.executor.sh. Defaults to EXECUTOR_HOST, then the host you signed in to last, then the local background Executor, which starts if needed |
| `--organization string` | Hosted organization. Required with EXECUTOR_ACCESS_TOKEN; after executor apps login it defaults to the signed-in organization |
| `--app string` | App ID, such as app_…; executor apps list prints each app's id |

```sh
# Clone the app's source; pushes save source but do not deploy it
git clone -c credential.helper= -c credential.helper='!executor apps credential' -c credential.useHttpPath=true "$(executor apps git --app <app-id>)"
```

## `executor apps commit`

Save a complete new source snapshot as a commit without deploying it. Files missing from it are deleted. Prints the new revision, the count of removed files and at most 100 of their paths; deploy its commit with executor apps deploy

```text
executor apps commit [flags]
```

| Option | Description |
| --- | --- |
| `--host string` | Executor origin, such as https://api.executor.sh. Defaults to EXECUTOR_HOST, then the host you signed in to last, then the local background Executor, which starts if needed |
| `--organization string` | Hosted organization. Required with EXECUTOR_ACCESS_TOKEN; after executor apps login it defaults to the signed-in organization |
| `--app string` | App ID, such as app_…; executor apps list prints each app's id |
| `--files path` | Complete app source: a directory read recursively (skipping .git, node_modules, .DS_Store), or a JSON file containing [{"path": "index.ts", "content": "..."}]. It must include a root index.ts. Code outside ui/public/ is UTF-8 text, at most 4,096 files and 16 MiB; files under ui/public/ may be binary: at most 10,000 files, each at most 32,000,000 bytes. A source larger than 16 MiB in total is pushed with Git. The CLI checks these limits before uploading. The host's build also refuses any of the app's own JavaScript or TypeScript files over 2,000,000 bytes; that limit is checked by the host, not before uploading, and does not cover files inside imported packages |
| `--expected string` | Commit the edit is based on, from executor apps source; a newer commit rejects the save |
| `--message string` | Commit message |

```sh
# Save ./hello as the next commit after <last-commit>
executor apps commit --app <app-id> --files ./hello --expected <last-commit> --message "Add search"
```

## `executor apps deploy`

Build a saved commit, or save a source directory and build it, and make it the app's active version. A failed build leaves the active version unchanged and reports the failing stage, file and line

```text
executor apps deploy [flags]
```

| Option | Description |
| --- | --- |
| `--host string` | Executor origin, such as https://api.executor.sh. Defaults to EXECUTOR_HOST, then the host you signed in to last, then the local background Executor, which starts if needed |
| `--organization string` | Hosted organization. Required with EXECUTOR_ACCESS_TOKEN; after executor apps login it defaults to the signed-in organization |
| `--app string` | App ID, such as app_…; executor apps list prints each app's id |
| `--commit string` | Full 40-character Git commit to build and activate |
| `--files path` | A source directory to save on top of the working source and deploy, instead of --commit. Large and binary ui/public/ files are pushed with Git |
| `--message string` | Commit message when deploying --files |

```sh
# Deploy the commit executor apps commit printed
executor apps deploy --app <app-id> --commit <commit>

# Save ./hello as the next commit and deploy it
executor apps deploy --app <app-id> --files ./hello
```
