> ## 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.

# Publishing catalogs

> Author, validate, and host a datumctl plugin catalog so users and enterprises can discover and install your plugins.

A catalog is a single manifest file — an `index.yaml` — that lists the plugins you publish, their versions, and per-platform download URLs and checksums. Users register your catalog with [`datumctl plugin index add`](https://www.datum.net/docs/datumctl/plugins/adding-catalogs), then search, browse, and install from it like any other.

This guide covers the manifest format, validation, hosting, and versioning guidance.

> [!NOTE]
>
> If you're writing the plugin itself (not just publishing a catalog), start with [Building plugins](https://www.datum.net/docs/datumctl/plugins/building-plugins.md). This guide assumes you already have released plugin binaries to point at.

## The catalog manifest

A catalog manifest is a `PluginList` document. It has an optional catalog-level identity header followed by an `items` list of plugin entries. Here is a complete, annotated example:

```yaml theme={null}
apiVersion: datumctl.datum.net/v1alpha1
kind: PluginList

# Optional catalog identity, shown in `plugin index list` and `plugin browse`.
name: acme
description: ACME internal datumctl plugins
owner: ACME Platform Team
homepage: https://plugins.acme.example

items:
  - apiVersion: datumctl.datum.net/v1alpha1
    kind: Plugin
    metadata:
      name: deploy                       # the name users install and run
    spec:
      shortDescription: Deploy ACME workloads to Datum Cloud
      description: |
        Longer description shown when inspecting the plugin in the browser.
      homepage: https://github.com/acme-corp/datumctl-deploy
      version: v1.2.0                     # the recommended version to install
      platforms:
        - selector:
            matchLabels:
              os: linux
              arch: amd64
          uri: https://github.com/acme-corp/datumctl-deploy/releases/download/v1.2.0/datumctl-deploy_Linux_x86_64.tar.gz
          sha256: <lowercase hex sha256 of the archive>
        - selector:
            matchLabels:
              os: darwin
              arch: arm64
          uri: https://github.com/acme-corp/datumctl-deploy/releases/download/v1.2.0/datumctl-deploy_Darwin_arm64.tar.gz
          sha256: <lowercase hex sha256 of the archive>
```

### Field reference

**Catalog header (all optional):**

| Field | Purpose |
| - | - |
| `name` | Friendly catalog name shown in listings. |
| `description` | One-line description of the catalog. |
| `owner` | Who maintains the catalog. |
| `homepage` | Catalog homepage URL. |

A manifest with no header still parses — the only required content is the plugin list.

**Each entry under `items` (`spec`):**

| Field | Required | Purpose |
| - | - | - |
| `metadata.name` | Yes | The name users install and run (lowercase letters, digits, hyphens). |
| `spec.version` | Yes | The recommended version to install. |
| `spec.shortDescription` | Recommended | Shown in `search` and `browse`. |
| `spec.description` | Optional | Longer text shown when inspecting the plugin. |
| `spec.homepage` | Optional | The plugin's homepage. |
| `spec.platforms` | Yes | One entry per supported OS/arch. |
| `spec.deprecated` | Optional | Marks the plugin as deprecated and names its replacement. See [Deprecating a plugin](#deprecating-a-plugin). |

**Each entry under `spec.platforms`:**

| Field | Required | Purpose |
| - | - | - |
| `selector.matchLabels` | Yes | Matched against `{os: <GOOS>, arch: <GOARCH>}` to pick the right archive. |
| `uri` | Yes | HTTPS URL of the release archive (`.tar.gz`, `.tgz`, or `.zip`). |
| `sha256` | Yes | Lowercase hex SHA256 of the archive, verified on download. |
| `files` | Optional | `from`/`to` directives naming the binary to extract from the archive. |

> [!WARNING]
>
> Every `uri` must be HTTPS. datumctl rejects an entire catalog manifest if any download URI uses a non-HTTPS scheme.

The binary inside each archive should be named `datumctl-<name>` (or `datumctl-<name>.exe` on Windows). datumctl runs it as `datumctl <name>`.

## Validating before you publish

Lint a manifest before you ship it. The validator reports missing plugin names or versions, missing or non-HTTPS download URIs, missing checksums, invalid platform selectors, and `deprecated` blocks that have no `message` or no `replacement.catalog`:

```bash theme={null}
# Validate a local manifest
datumctl plugin index validate ./index.yaml

# Validate a published manifest
datumctl plugin index validate https://plugins.acme.example/index.yaml
```

The source may be a local path, an HTTPS URL, or a GitHub `owner/repo`. A clean manifest reports `OK: manifest is valid`.

## Hosting your catalog

datumctl fetches catalog manifests over HTTPS only. You can host `index.yaml` in either of these ways:

* **A GitHub repository.** Place `index.yaml` at the repository root. Users then add it with the `owner/repo` shorthand:

  ```bash theme={null}
  datumctl plugin index add acme acme-corp/datumctl-plugins
  ```

  datumctl fetches from the default branch (`main`, falling back to `master`).

* **Any HTTPS host.** Serve `index.yaml` from your own site and have users add the full URL:

  ```bash theme={null}
  datumctl plugin index add acme https://plugins.acme.example/index.yaml
  ```

## Publisher scoping for enterprises

Enterprises can constrain which catalogs their users may add through an allow-list, and GitHub sources are scoped by **owner** (and optionally repository). To make your catalog easy for enterprises to approve:

* Host it under a stable GitHub owner or repository so it can be allow-listed as `github.com/<owner>` or `github.com/<owner>/<repo>`, or under a stable dedicated hostname for a host-pattern allow-list entry.
* Avoid moving the catalog between owners or hosts, which would require every enterprise to update their allow-list.

See [Adding catalogs](https://www.datum.net/docs/datumctl/plugins/adding-catalogs.md#enterprise-guardrails) for how allow-list entries are matched.

## Deprecating a plugin

When a plugin moves to another catalog, removing its entry right away breaks `datumctl plugin upgrade` for everyone who installed it from your catalog. Instead, keep the entry and mark it deprecated with a message and the plugin that replaces it:

```yaml theme={null}
spec:
  # ...version, platforms, and other fields as before
  deprecated:
    message: deploy moved to the ACME Platform catalog.
    replacement:
      catalog: acme-platform/datumctl-plugins   # a catalog source, as `plugin index add` takes
      name: deploy                              # optional; defaults to this plugin's name
```

| Field | Required | Purpose |
| - | - | - |
| `deprecated.message` | Yes | Explains why the plugin is deprecated or where it went. |
| `deprecated.replacement.catalog` | Yes | The catalog source of the replacement plugin. |
| `deprecated.replacement.name` | Optional | The replacement plugin's name. Defaults to the deprecated plugin's name. |

`replacement.catalog` is a catalog source, not a catalog name, because each user picks their own name when they add a catalog. datumctl recognizes the replacement's catalog by comparing sources. For GitHub sources, it matches by owner and repository regardless of case or branch, so `acme-platform/datumctl-plugins`, `github.com/acme-platform/datumctl-plugins`, and `https://raw.githubusercontent.com/acme-platform/datumctl-plugins/main/index.yaml` all name the same catalog.

Users who install, restore, or upgrade a deprecated plugin see a warning that names the replacement and the commands to switch to it. See [Deprecated plugins](https://www.datum.net/docs/datumctl/plugins/using-plugins.md#deprecated-plugins).

A deprecated entry stays installable and upgradable until you remove it from your catalog. Keep publishing releases to it during the deprecation period. datumctl releases without deprecation support ignore the `deprecated` block and keep installing and upgrading the plugin as usual.

## Versioning guidance

`spec.version` is the version datumctl installs when a user runs `datumctl plugin install <name>` without pinning. Users can pin a specific version with `datumctl plugin install <name>@<version>`.

To make pinning reliable for your users:

* Use consistent, sortable version strings (semantic versioning, e.g. `v1.2.0`) so newer releases are recognized as updates.
* Keep `spec.version`, the archive `uri`, and its `sha256` in lockstep — bump all three together for each release.
* Publish immutable release archives at stable URLs so a pinned version keeps resolving to the same bytes.

## Next steps

* [Building plugins](https://www.datum.net/docs/datumctl/plugins/building-plugins.md) — write the plugin binaries your catalog points at
* [Adding catalogs](https://www.datum.net/docs/datumctl/plugins/adding-catalogs.md) — how users register and trust your catalog


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