Skip to main content

Cosmo Link

Cosmo link enables you to interact with the link definitions in the lattice. You may query all the link, add new ones or delete existing ones in the lattice. Following are the subcommands available under cosmo link:

  • query
  • put
  • del

query

This subcommand will retrieve all the known links in the lattice. It will give you information about them such as the link name, the associated actor and provider ID and its contract ID.

Usage

cosmo link query

put

This subcommand enables you to add new links into the lattice. The user will have to provide the actor ID, provider ID and capability contract to establish this link. An optional link name can be provided and is set to "default" by default. You may also pass optional environment variables that will be stored on this link.

Usage

cosmo link put <your-actor-id> <your-provider-id> <capability-contract-id>

Options

--link-name (Alias -l) Link name, defaults to "default"

del

This subcommand will delete a link definition. It accepts the actor ID and capability contract as arguments. You may also provide the link name if needed.

Usage

cosmo link del <your-actor-id> <your-provider-id>

Options

--link-name (Alias -l) Link name, defaults to "default"