Skip to main content

Mass Resource-Type Publish

mass resource-type publish​

Publish a resource type to Massdriver

Synopsis​

Publish Resource Type

Publishes a resource type to your organization's catalog as an OCI artifact.

The resource type is authored as a massdriver.yaml file, which must include a version field. Publishing is immutable: a version that already exists cannot be republished.

Usage​

shell
mass resource-type publish [path]

path is a directory containing a massdriver.yaml, or the massdriver.yaml itself (defaults to the current directory). Only massdriver.yaml, readme, changelog, icon files, and the instruction/export template files referenced by the massdriver.yaml are included in the published artifact.

Examples​

shell
# Publish the resource type in the current directory
mass resource-type publish

# Publish a resource type from a specific directory
mass resource-type publish ./my-resource-type

# Or point directly at the massdriver.yaml
mass resource-type publish ./my-resource-type/massdriver.yaml

# Publish a development release
mass resource-type publish --development

Development releases​

--development publishes <version>-dev.<timestamp> (e.g. 1.2.0-dev.20060102T150405Z) instead of version. Stable ranges such as ~1 and latest skip development releases; a bundle picks one up by naming the exact version or a +dev range (~1+dev, latest+dev) in its dependencies or resources.

A development release cannot be published for a version that already exists.

Publishing a raw JSON schema (deprecated)​

path may also point at a raw JSON (or YAML) schema file, the format that predates massdriver.yaml:

shell
mass resource-type publish ./my-resource-type.json

This is deprecated and will be removed in a future release. A raw schema has no version of its own, so it is published as the resource type's unversioned 0.0.0 document and cannot participate in resource type versioning.

Migrate with mass resource-type convert, which writes an equivalent massdriver.yaml alongside the schema:

shell
mass resource-type convert ./my-resource-type.json
mass resource-type publish [path] [flags]

Options​

  -d, --development   Publish the resource type as a development release.
-h, --help help for publish

Options inherited from parent commands​

      --profile string   Configuration profile to use (overrides MASSDRIVER_PROFILE and the active profile)

SEE ALSO​