Skip to content
SHC Docs

shc repo

manage app repositories

Reference for the repo CLI group. Source: modules/repo/commands/.

SubcommandDescription
addadd a repository
lslist repositories
rmremove a repository
syncsync repository apps
updateupdate a repository

add a repository

FlagTypeRequiredHelp
--tokenstrnoauthentication token for private repositories
--prioritystrnorepository priority
--tenant / -tstrnotenant scope for repository
--environment / -estrnoenvironment scope for repository
--sync-intervalstrnosync interval

Source: modules/repo/commands/

The daemon fetches and clones a repository from its own network position, so the host a URL names is judged before the row is written, again at every sync, at every redirect the fetch follows, and at install for the archive URL. A host that fails the check is refused with X400967REPSSR.

A loopback, link-local (169.254.0.0/16 with the cloud metadata endpoint, fe80::/10), multicast or unspecified address is refused for every scope, and so is a hostname that resolves to one. A private-network host (RFC1918, unique-local fc00::/7, which includes the cluster’s own mesh 10.64.48.0/20 and fabric 10.64.128.0/17 on the default block) is allowed only for a repository in the operator’s scope: the system scope, which repo add without --tenant writes, or the master tenant. A cluster whose nodes have only private addresses registers the catalogue it serves itself, or one on another machine of its network, by naming a node’s own address there. A repository in any other tenant’s scope is refused a private-network host at add, at sync, at the redirect hop and at the archive fetch.

list repositories

FlagTypeRequiredHelp
--tenant / -tstrnofilter by tenant_name scope
-v / --verboseboolnoshow detailed information

Source: modules/repo/commands/

remove a repository

FlagTypeRequiredHelp
-y / --yesboolnoskip confirmation prompt

Source: modules/repo/commands/

sync repository apps

FlagTypeRequiredHelp
--force / -fboolnoforce re-sync

Source: modules/repo/commands/

update a repository

FlagTypeRequiredHelp
--prioritystrnorepository priority
--sync-intervalstrnosync interval
--tokenstrnoauthentication token for private repositories, empty removes it

Source: modules/repo/commands/