ocpidev-registry — manage an OpenCPI project registry.
The registry noun represents an OpenCPI project registry, which is a
directory that contains references to OpenCPI projects.
An OpenCPI project registry is a way to manage project interdependencies.
A project is automatically associated with a registry when it is created,
allowing it to view and depend on other projects registered there.
A project can also be registered in its associated project
registry, allowing it to be visible to other projects associated there.
Projects are not initially registered; the ocpidev register operation
for a project can be used to register them.
The OpenCPI installation provides a default project registry at
$OCPI_ROOT_DIR/project-registry. However, in some project development
environments, it can be useful to have additional separate project
registries for use as an alternative to the OpenCPI default.
The OpenCPI environment variable OCPI_PROJECT_REGISTRY_DIR can
be set to point to an alternative project registry; setting this
variable allows subsequently created projects to be associated
with this registry and not with the OpenCPI default.
For more information about project registries and how to manage them, see the section "The Project Registry: How Projects Depend on and Find Each Other" in the OpenCPI Component Development Guide.
Verbs that can operate on a project registry are:
create
delete
set
show
unset
In addition to the options common to all OpenCPI tools (see opencpi(1)), the options described below can be specified for operations on registries. In the following descriptions, a plus sign (+) after the option indicates that it can be specified more than once on the command line.
-f
--global-scope
-local-scope is not used.
--json
--local-scope
--simple
--table
--simple or --json are not used.
Create a registry ~/workspace/my-registry. Note that this registry will
not have the core project registered, so you must locate and register
the core project in my-registry after creating it.
ocpidev create registry my-registry -d ~/workspace
Display information about the projects in the current registry:
ocpidev show registry
Inside the project, associate the project with the default registry:
ocpidev set registry
Inside the project, associate the project with the registry named
my-registry located at ~/workspace/:
ocpidev -d ~/workspace set registry my-registry
Inside the project, remove the association between the project and a registry. The next time the project is built, the default project registry will be used:
ocpidev unset registry
See the main web site: https://www.opencpi.org
See the OpenCPI Component Development Guide: https://opencpi.gitlab.io/releases/latest/docs/OpenCPI_Component_Development_Guide.pdf