OpenForm
CLICommandsregistry

registry add

Last updated on

Add or update a registry configuration

Add or update a registry configuration.

Usage

ofm registry add <namespace> <url> [options]

Arguments

ArgumentDescription
namespaceRegistry namespace (e.g., @acme)
urlRegistry base URL

Options

OptionDescription
--header <header>Add HTTP header (format: "Name: Value"). Can be used multiple times.
--globalSave to global config (~/.open-form/config.json)
--projectSave to project config (open-form.json)

Description

Adds a registry to your configuration. If neither --global nor --project is specified, you will be prompted to choose. When not in a project directory, defaults to global config.

Examples

Add a public registry:

ofm registry add @acme https://registry.acme.com

Add with authentication:

ofm registry add @private https://registry.example.com \
  --header "Authorization: Bearer ${REGISTRY_TOKEN}"

Add to global config:

ofm registry add @company https://registry.company.com --global

See also

On this page