CLICommandsregistry
registry addLast updated on
Last updated on
Add or update a registry configuration
Add or update a registry configuration.
Usage
ofm registry add <namespace> <url> [options]Arguments
| Argument | Description |
|---|---|
namespace | Registry namespace (e.g., @acme) |
url | Registry base URL |
Options
| Option | Description |
|---|---|
--header <header> | Add HTTP header (format: "Name: Value"). Can be used multiple times. |
--global | Save to global config (~/.open-form/config.json) |
--project | Save 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.comAdd 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 --globalSee also
- registry remove - Remove a registry
- registry list - List configured registries