Every command
oas registry serve
Run a registry: serve a catalog of the swarms on a list of hosts, for members to search.
$ oas registry serve [flags]
Give the hosts with --hosts, --hosts-file or both. A hosts file is read again every 30 seconds, and a version that doesn't read keeps the previous list.
Members add it with oas registry add. oas find downloads the catalogs and every listed swarm's card and ranks matches on the member's own machine, so a registry never sees what anyone searched for.
Flags
Each takes one dash or two, and its value after a space or =. A switch is on by itself, or =false.
comma-separated host URLs to list
a host list (registry/hosts.json), read again every 30 s
listen address
Default
:8090registry name
Default
private registry
Examples
$ oas registry serve --name "Team registry" --hosts https://swarms.example --listen :8090
From a curated list, read again as it changes.
$ oas registry serve --hosts-file registry/hosts.json --listen :8090
See also
Read from the CLI: each flag's type, default and usage are its flag set's own, and a test fails when this page and the code disagree.