> ## Documentation Index
> Fetch the complete documentation index at: https://www.datum.net/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Agent home for Datum, with what it is, pricing, and how to act: https://agents.datum.net
> If you can only fetch URLs: read https://www.datum.net/docs/llms.txt in full and open the most specific page for the task. Commands, limits, and field paths are on task, operations, and limits pages, not on section overviews. Pages described as "Documentation is coming soon" are placeholders.
> If you have a shell or can save files: download https://www.datum.net/docs/llms-full.txt (every page, about 740 KB) once and search it with grep, instead of fetching pages one at a time.
> datumctl describes itself: `datumctl api-resources` lists resource types and `datumctl explain <resource>` shows a schema. To act on live resources, use Datum MCP or datumctl. To search the docs, use the Docs MCP server at https://www.datum.net/docs/mcp.

# Compute commands

> Deploy and manage containerized workloads on Datum Cloud with the datumctl compute plugin.

> [!NOTE]
>
> Compute is in preview. It turns on for a project the first time you run a `datumctl compute` command there. For product guides, see [Compute](https://www.datum.net/docs/compute/overview.md). To deploy your first app, see [Deploy an app](https://www.datum.net/docs/getting-started/first-workload.md).

`datumctl compute` deploys a container image as a *workload* that runs in one or more Datum Cloud locations, and provides the day-to-day commands to scale, restart, and delete it. It's a first-party plugin instead of a built-in command. After you install it, its commands behave like the rest of the CLI.

```bash theme={null}
datumctl plugin install compute
datumctl compute --help
```

> [!NOTE]
>
> New to plugins? [Using plugins](https://www.datum.net/docs/datumctl/plugins/using-plugins.md) covers installation, upgrades, and how a plugin inherits your active context and credentials. Not installed `datumctl` itself yet? Start with [Install](https://www.datum.net/docs/datumctl/install.md).

## Core concepts

A handful of terms recur across every `compute` command:

| Term | Meaning |
| - | - |
| **Workload** | The thing you deploy — a container image plus its runtime configuration (ports, env, instance type) and one or more [placements](https://www.datum.net/docs/compute/placement-and-scaling.md). |
| **Placement** | A named group of locations and a scale policy (minimum replica count) in a workload. A flag-based `deploy` creates a single placement named `default`. |
| **Location** | A Datum Cloud region a workload can run in, for example `us-central-1`. The `--city` flag selects every location in a city by its code, such as `DFW`. |
| **Instance** | One running copy of a workload's container in one location. A placement with `--min=2` across two locations produces four Instances. |

`compute` is project-scoped: every command reads `--project` (or your active context's project, injected automatically — see [Contexts & scoping](https://www.datum.net/docs/datumctl/contexts-and-scoping.md)). There is no organization-level view and no `--namespace` flag; all compute resources live in the project's `default` namespace.

## Enabling Compute

Compute is a self-service service: you don't request access, and no one at Datum reviews it. The first time you run a command that needs Compute, such as `deploy`, `workloads`, `instances`, or `build`, `datumctl` checks whether Compute is enabled for the project. If it isn't, `datumctl` enables it, waits a few seconds for it to become active, and then runs your command:

```bash theme={null}
datumctl compute deploy api --image=ghcr.io/acme/api:1.4.2 --location=us-central-1 --min=1
```

`datumctl` doesn't prompt before it enables Compute, so the first command works the same way on a terminal, in CI, and in a script. Enabling Compute also gives the project its default compute quota.

### Checking access explicitly

To see whether Compute is enabled, or to enable it without running another command, use `datumctl compute access`:

```bash theme={null}
# Show the current state
datumctl compute access

# Enable Compute for the project now
datumctl compute access request
```

`datumctl compute access` prints the service, the project, and an `Access` line with one of the following states:

| State | Meaning |
| - | - |
| `Not requested` | Compute isn't enabled yet. The next `compute` command enables it. |
| `Processing` | Datum is enabling Compute. This normally takes a few seconds. |
| `Active` | Compute is enabled, and every `compute` command runs normally. |
| `Unavailable` | Compute isn't available to your project. |

Add `-o json` or `-o yaml` to script against the state instead of parsing prose.

## Checking quota

Once active, `datumctl compute quota` shows how much of your project's compute allotment is used:

```bash theme={null}
datumctl compute quota
```

```text theme={null}
Quota for project acme-prod

RESOURCE    UNIT        LIMIT   USED   AVAILABLE   USAGE
Workloads   workloads   10      3      7           [######--------------]  30%
Instances   instances   50      12     38           [#####---------------]  24%
vCPUs       vCPUs       32      8      24           [#####---------------]  25%
Memory      MiB         65536   16384  49152        [#####---------------]  25%
```

Pass `--constrained` to show only the resource types that are currently at their limit — the fastest way to check whether a stalled rollout is a quota problem:

```bash theme={null}
datumctl compute quota --constrained
```

## Find your way around

> [card] [Building images](https://www.datum.net/docs/datumctl/compute/building-images.md)
>
> Turn a Dockerfile into an image Compute can run, and check compatibility before you deploy.

> [card] [Deploying workloads](https://www.datum.net/docs/datumctl/compute/deploying-workloads.md)
>
> Deploy a workload from flags or a manifest, and read back its health across locations.

> [card] [Operations](https://www.datum.net/docs/datumctl/compute/scaling-and-operations.md)
>
> Roll restarts, watch a rollout, and debug individual Instances.

> [card] [Viewing logs](https://www.datum.net/docs/datumctl/compute/viewing-logs.md)
>
> Read Instance output or ALB access logs from the terminal.

> [card] [Destroying workloads](https://www.datum.net/docs/datumctl/compute/destroying-workloads.md)
>
> Tear down a workload and every Instance it created.

## Related

* `datumctl compute --help` and `datumctl compute <command> --help` for the full flag reference.
* [Compute](https://www.datum.net/docs/compute/overview.md) — product guides for runtime classes, configuration, placement, and publishing workloads.
* [Open a shell with datumctl](https://www.datum.net/docs/compute/instance-shell.md#datumctl) — `datumctl compute exec` opens an interactive shell or runs a single command in a running Instance.
* [Using plugins](https://www.datum.net/docs/datumctl/plugins/using-plugins.md) — how the `compute` plugin is installed, upgraded, and trusted.
* [Contexts & scoping](https://www.datum.net/docs/datumctl/contexts-and-scoping.md) — how the project a `compute` command runs against is resolved.
* [Output formats & scripting](https://www.datum.net/docs/datumctl/output-and-scripting.md) — `-o json`/`-o yaml` patterns that apply across `compute` subcommands.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.