---
title: "CLI"
description: "The tractorbeam command builds and operates Tractorbeam Projects."
sidebar:
  label: "Overview"
  order: 0
---

```sh
tractorbeam <subcommand> [flags]
```

## Commands

| Command | Description |
| --- | --- |
| [`init`](/docs/cli/init) | Create a Tractorbeam Project. |
| [`login`](/docs/cli/login) | Sign in to Tractorbeam. |
| [`logout`](/docs/cli/logout) | Sign out of Tractorbeam on this machine. |
| [`whoami`](/docs/cli/whoami) | Show who this machine signs in to Tractorbeam as. |
| [`auth`](/docs/cli/auth) | Inspect sign-in and create API keys. |
| [`auth token`](/docs/cli/auth#auth-token) | Print an access token for Tractorbeam's API. |
| [`auth create-key`](/docs/cli/auth#auth-create-key) | Create an API key acting as you. |
| [`configure`](/docs/cli/configure) | Save the Workspace a Project targets. |
| [`build`](/docs/cli/build) | Build a Project and its Apps. |
| [`plan`](/docs/cli/plan) | Show what applying a Project would change. |
| [`apply`](/docs/cli/apply) | Build and apply a Project to the control plane. |
| [`deploy`](/docs/cli/deploy) | Build an App and deploy it to a Branch. |
| [`branch`](/docs/cli/branch) | Manage a Workspace's Branches. |
| [`branch list`](/docs/cli/branch#branch-list) | List the Workspace's Branches. |
| [`branch create`](/docs/cli/branch#branch-create) | Fork a Branch. |
| [`branch switch`](/docs/cli/branch#branch-switch) | Make a Branch current. |
| [`branch merge`](/docs/cli/branch#branch-merge) | Merge a Branch into another. |
| [`branch delete`](/docs/cli/branch#branch-delete) | Delete a Branch. |
| [`branch get`](/docs/cli/branch#branch-get) | Retrieve a Branch. |
| [`secret`](/docs/cli/secret) | Manage encrypted Secret values. |
| [`secret set`](/docs/cli/secret#secret-set) | Set a Secret's value. |
| [`secret list`](/docs/cli/secret#secret-list) | List all Secrets. |
| [`secret delete-value`](/docs/cli/secret#secret-delete-value) | Delete a Secret's value. |
| [`secret list-versions`](/docs/cli/secret#secret-list-versions) | List a Secret's versions. |
| [`secret set-branch-version`](/docs/cli/secret#secret-set-branch-version) | Set the version a Branch uses. |
| [`secret clear-branch-version`](/docs/cli/secret#secret-clear-branch-version) | Clear the version a Branch uses. |
| [`connect`](/docs/cli/connect) | Connect a Connector to its provider. |
| [`connector`](/docs/cli/connector) | Inspect and disconnect Connectors. |
| [`connector list`](/docs/cli/connector#connector-list) | List all Connectors. |
| [`connector get`](/docs/cli/connector#connector-get) | Retrieve a Connector. |
| [`connector list-connections`](/docs/cli/connector#connector-list-connections) | List all connections. |
| [`connector get-connection`](/docs/cli/connector#connector-get-connection) | Retrieve a connection. |
| [`connector delete-connection`](/docs/cli/connector#connector-delete-connection) | Delete a connection. |
| [`provider`](/docs/cli/provider) | Read and set the OAuth 2.0 app each provider's sign-in uses. |
| [`provider set-oauth-app`](/docs/cli/provider#provider-set-oauth-app) | Set the OAuth 2.0 app a provider's sign-in uses. |
| [`provider get`](/docs/cli/provider#provider-get) | Retrieve a provider. |
| [`provider get-oauth-app`](/docs/cli/provider#provider-get-oauth-app) | Retrieve an OAuth 2.0 app. |
| [`blobs`](/docs/cli/blobs) | Upload the files Blob fields reference. |
| [`blobs upload`](/docs/cli/blobs#blobs-upload) | Upload a file as a Blob. |
| [`blobs create-url`](/docs/cli/blobs#blobs-create-url) | Create a Blob URL. |
| [`export`](/docs/cli/export) | Export the Workspace. |
| [`import`](/docs/cli/import) | Import an export into the Workspace. |
| [`storage`](/docs/cli/storage) | Read and upgrade the Workspace's storage. |
| [`storage get`](/docs/cli/storage#storage-get) | Read the Workspace's storage. |
| [`storage upgrade`](/docs/cli/storage#storage-upgrade) | Upgrade the Workspace's storage. |
| [`dev`](/docs/cli/dev) | Develop a Project on your personal Branch. |
| [`mcp`](/docs/cli/mcp) | Connect agents to the Project's MCP Servers. |
| [`mcp add`](/docs/cli/mcp#mcp-add) | Add the Project's MCP Servers to agent harnesses. |
| [`account`](/docs/cli/account) | The Tractorbeam API's account operations. |
| [`account get`](/docs/cli/account#account-get) | Retrieve the Workspace's Account. |
| [`account invite-manager`](/docs/cli/account#account-invite-manager) | Invite an Account manager. |
| [`workspace`](/docs/cli/workspace) | The Tractorbeam API's workspace operations. |
| [`workspace list`](/docs/cli/workspace#workspace-list) | List your Workspaces. |
| [`workspace create`](/docs/cli/workspace#workspace-create) | Create a Workspace. |
| [`workspace get`](/docs/cli/workspace#workspace-get) | Retrieve the Workspace. |
| [`workspace archive`](/docs/cli/workspace#workspace-archive) | Archive the Workspace. |
| [`workspace get-limits`](/docs/cli/workspace#workspace-get-limits) | Retrieve the Workspace's limits. |
| [`change-request`](/docs/cli/change-request) | The Tractorbeam API's change request operations. |
| [`change-request list`](/docs/cli/change-request#change-request-list) | List all change requests. |
| [`change-request create`](/docs/cli/change-request#change-request-create) | Open a change request. |
| [`change-request get`](/docs/cli/change-request#change-request-get) | Retrieve a change request. |
| [`change-request close`](/docs/cli/change-request#change-request-close) | Close a change request. |
| [`change-request merge`](/docs/cli/change-request#change-request-merge) | Merge a change request. |
| [`resource`](/docs/cli/resource) | The Tractorbeam API's resource operations. |
| [`resource get`](/docs/cli/resource#resource-get) | List all Resources. |
| [`object-type`](/docs/cli/object-type) | The Tractorbeam API's object type operations. |
| [`object-type list`](/docs/cli/object-type#object-type-list) | List all Object types. |
| [`object-type get`](/docs/cli/object-type#object-type-get) | Retrieve an Object type. |
| [`action`](/docs/cli/action) | The Tractorbeam API's action operations. |
| [`action list`](/docs/cli/action#action-list) | List all Actions. |
| [`action get`](/docs/cli/action#action-get) | Retrieve an Action. |
| [`action invoke`](/docs/cli/action#action-invoke) | Invoke an Action. |
| [`action list-invocations`](/docs/cli/action#action-list-invocations) | List all Action Invocations. |
| [`action get-invocation`](/docs/cli/action#action-get-invocation) | Retrieve an Action Invocation. |
| [`action cancel-invocation`](/docs/cli/action#action-cancel-invocation) | Cancel an Action Invocation. |
| [`app`](/docs/cli/app) | The Tractorbeam API's app operations. |
| [`app list`](/docs/cli/app#app-list) | List all Apps. |
| [`app get`](/docs/cli/app#app-get) | Retrieve an App. |
| [`query`](/docs/cli/query) | The Tractorbeam API's query operations. |
| [`query list`](/docs/cli/query#query-list) | List all Queries. |
| [`query get`](/docs/cli/query#query-get) | Retrieve a Query. |
| [`query invoke`](/docs/cli/query#query-invoke) | Invoke a Query. |
| [`mutation`](/docs/cli/mutation) | The Tractorbeam API's mutation operations. |
| [`mutation list`](/docs/cli/mutation#mutation-list) | List all Mutations. |
| [`mutation get`](/docs/cli/mutation#mutation-get) | Retrieve a Mutation. |
| [`mutation invoke`](/docs/cli/mutation#mutation-invoke) | Invoke a Mutation. |
| [`table`](/docs/cli/table) | The Tractorbeam API's table operations. |
| [`table list`](/docs/cli/table#table-list) | List all Tables. |
| [`table get`](/docs/cli/table#table-get) | Retrieve a Table. |
| [`dataset`](/docs/cli/dataset) | The Tractorbeam API's dataset operations. |
| [`dataset list-rows`](/docs/cli/dataset#dataset-list-rows) | List a Dataset's rows. |
| [`commit`](/docs/cli/commit) | The Tractorbeam API's commit operations. |
| [`commit list`](/docs/cli/commit#commit-list) | List all Commits. |
| [`commit get`](/docs/cli/commit#commit-get) | Retrieve a Commit. |
| [`context`](/docs/cli/context) | The Tractorbeam API's context operations. |
| [`context get-data`](/docs/cli/context#context-get-data) | Retrieve the data context. |
| [`function`](/docs/cli/function) | The Tractorbeam API's function operations. |
| [`function invoke`](/docs/cli/function#function-invoke) | Invoke a Function. |

## Global flags

Every command takes these flags.

| Flag | Description |
| --- | --- |
| `--help, -h` | Show help information. |
| `--version, -v` | Show version information. |
| `--wizard` | Start wizard mode for a command. |
| `--completions <bash\|zsh\|fish\|powershell\|sh\|pwsh>` | Print shell completion script. |
| `--log-level <all\|trace\|debug\|info\|warn\|warning\|error\|fatal\|none>` | Sets the minimum log level. |
| `--cwd <directory>` | Run as if started in this directory. |
| `--format <text\|json>` | Print `text` for a person, or a command's result as JSON. Default: `text`. |

## Environment variables

A flag left out falls back to its environment variable.

| Variable | Flags |
| --- | --- |
| `TRACTORBEAM_BRANCH` | `--branch` |
| `TRACTORBEAM_ORIGIN` | `--origin` |
| `TRACTORBEAM_TOKEN` | `--token` |
| `TRACTORBEAM_WORKSPACE` | `--workspace` |
