Marketplace

The commands in this section build and search the feature index, and log you in to publish SPL models. The web catalog, the UVL configurator and third-party publishing are in the Marketplace section.

Command What it does
marketplace:index Builds index.json from the forge, a registry file or your workspace
marketplace:search Searches the index, or lists a forge organisation live
login Logs in to a marketplace and stores the token
whoami Shows who you are and which token is in use
logout Revokes the token and removes it
feature:info Shows a feature’s contract without cloning it
check:contracts Checks that contracts and UVL constraints agree on dependencies

login, whoami and logout carry no namespace, like docker login.


The model

  • Releasing a feature publishes it. feature:release tags the repository, uploads to the forge and PyPI and, when you are signed in, lists the feature in the marketplace.
  • An SPL model is published through the marketplace. spl:publish sends the .uvl to the marketplace, which passes it on to UVLHub with its own key and returns the DOI. You never hold a UVLHub key.
  • The index is derived. It comes from each feature’s contract at its latest tag and from the SPL lines the marketplace publishes. When it is stale or lost, rebuild it.
  • Third parties list themselves by releasing. The marketplace keeps where each listed repository is, and the index reads its contract from there.
  • The CLI and the web share the index. marketplace:search and feature:info read .splent_cache/marketplace/index.json when it exists. They fetch SPLENT_INDEX_URL only when that copy is missing or with --refresh, and keep the download. The published build is at https://git.splent.io/splent-io/splent_index/raw/branch/main/index.json.

Choosing the marketplace

Variable Effect
SPLENT_MARKETPLACE_URL The marketplace to talk to, https://marketplace.splent.io by default. login, whoami and logout also take --registry URL
SPLENT_MARKETPLACE_TOKEN A token that wins over the stored one, handy in CI
SPLENT_CREDENTIALS The path of the credential store, see where the token is stored

Tokens are kept per marketplace, so a local one and the real one live side by side. A local marketplace answers at http://splent_marketplace_app_web:5000 from inside splent_cli_container and at http://localhost:5818 from the host.

The --registry of marketplace:index is something else, the path of a registry.toml.


Table of contents


Back to top

splent. Distributed by an LGPL license v3. Contact us: drorganvidez@us.es