chainsaw repo
Manage upstream proxies and registries
Manage upstream proxies and registries
| Subcommand | What it does |
|---|---|
chainsaw repo create | Create a new upstream proxy |
chainsaw repo disable | Take a repository out of service (reversible) |
chainsaw repo enable | Put a disabled repository back into service |
chainsaw repo list | List configured upstream proxies |
chainsaw repo status | Show status and configuration of a repository |
chainsaw repo [command]
chainsaw repo create
Create a new upstream proxy
chainsaw repo create [flags]
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--ecosystem | string | — | Package ecosystem: npm|pypi|maven|cargo|gem|nuget|go|docker (required) |
--json | bool | — | Output created repository as JSON |
--name | string | — | Repository name (required) |
--type | string | proxy | Repository type: proxy|hosted|group |
--upstream | string | — | Upstream registry URL (required for proxy type) |
The global flags apply here too.
chainsaw repo disable
Take a repository out of service (reversible)
chainsaw repo disable <name> [flags]
Stop serving a repository without destroying it. Clients resolving through it start failing; its index, metadata and permissions are left untouched, and chainsaw repo enable puts it back.
This is the supported way to retire a repository — including one created with the wrong name. There is no repo delete: recreating a deleted name would inherit the previous repository’s index entries, cached verdicts and package permissions.
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--json | bool | — | Output as JSON |
--yes | bool | — | Skip confirmation prompt |
The global flags apply here too.
chainsaw repo enable
Put a disabled repository back into service
chainsaw repo enable <name> [flags]
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--json | bool | — | Output as JSON |
The global flags apply here too.
chainsaw repo list
List configured upstream proxies
chainsaw repo list [flags]
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--json | bool | — | Output as JSON |
The global flags apply here too.
chainsaw repo status
Show status and configuration of a repository
chainsaw repo status <name> [flags]
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--json | bool | — | Output as JSON |
The global flags apply here too.