registry catalog

Last updated on

Manage registry catalog items

Manage the artifact source files that registry.config.json lists.

Usage

paradoc registry catalog <command> [options]

Subcommands

CommandDescription
addAdd an artifact source file to the registry catalog
removeRemove an artifact, or one source file of it, from the registry catalog

catalog add

Add an artifact source file to the registry catalog.

paradoc registry catalog add <artifact> [options]

Arguments

ArgumentDescription
artifactPath to artifact file (JSON/YAML): one release of one artifact

Options

OptionDescription
-c, --config <path>Path to registry.config.json (default: ./registry.config.json)

Description

Reads and validates the artifact file, then adds its path to sources in registry.config.json. Each file is one release: one version of one edition, or one version of an artifact that has no editions. Files with the same name are the editions and versions of one artifact.

The file must be in the folder of registry.config.json or below it. The command refuses a file that conflicts with the catalog, for example a second file for the same edition and version, and says why. A file that is already listed changes nothing. A version with build metadata (1.0.0+build.5) is refused.

Search tags and default editions and versions are not set here. Edit tags and defaults in registry.config.json. See Registry config.

Examples

paradoc registry catalog add forms/w4/2024-1.1.0.json
paradoc registry catalog add forms/lease.yaml -c ./my-registry/registry.config.json

Output

✓ Added w4 2024 v1.1.0 (form)
Catalog now has 4 source file(s)

catalog remove

Remove an artifact, or one source file of it, from the registry catalog.

paradoc registry catalog remove <target> [options]
paradoc registry catalog rm <target> [options]

Arguments

ArgumentDescription
targetArtifact name, which removes every edition and version of it, or the path of one source file

Options

OptionDescription
-c, --config <path>Path to registry.config.json (default: ./registry.config.json)
-y, --yesSkip confirmation prompts

Description

Removes source files from sources in registry.config.json. It does not delete the files. The next registry compile writes a manifest without those releases, which is how you withdraw a version.

Examples

paradoc registry catalog remove w9
paradoc registry catalog rm forms/w4/2025-1.0.0.json -y

Output

✓ Removed forms/w4/2025-1.0.0.json from the catalog
Catalog now has 4 source file(s)

See also

On this page