Remote sources: registry and connect
okfctl treats remote bundles the way git treats remotes: a named source is a
plain git URL. This is git remote for OKF bundles — not a hosted service,
account system, or schema registry. Named sources live in the one okfctl config
store (keyed registry.<name>); there is no second config file.
Register a source
Section titled “Register a source”okfctl registry add knowledge https://github.com/cwest/knowledge-base.gitokfctl registry list # name -> url, sorted by nameokfctl registry show knowledge # print one source's URLokfctl registry remove knowledge # (alias: rm) unregisterMaterialize a source locally
Section titled “Materialize a source locally”okfctl connect knowledge # a registered name resolves to its URLokfctl connect https://github.com/cwest/knowledge-base.git # or an ad-hoc git URLokfctl connect knowledge ./kb # explicit destination directoryconnect behavior:
- A fresh destination is
git cloned. - An existing checkout of the same source is fast-forwarded (
git pull --ff-only, never a history-rewriting merge). - A non-empty directory that is not that checkout is left untouched.
okfctl shells out to git (no new dependency) and does no authentication of its
own — reaching a private URL is git’s concern (ssh agent, credential helper). The
default dir is a directory named after the source (trailing .git stripped),
matching git clone.