Installing features


Table of contents

  1. Introduction
  2. Where the index comes from
  3. Where a feature is installed from
  4. Installing a private feature

Introduction

You use the marketplace from the terminal too. Search the index, read a feature’s contract, and install it into the selected product.

splent feature:search --requires notes
splent feature:info reports
splent feature:install splent-io/splent_feature_reports
Command What it does
feature:search Searches by text, category, archetype, tag, or what a feature provides or requires
feature:info Shows a feature’s contract card and the install command, without cloning it
feature:install Clones, registers, configures and starts the feature, with its dependencies

Every feature in the index says where its code lives. A feature on SPLENT’s own forge installs as org/repo, and one on any other host keeps the host in front, the way the marketplace shows it.

splent feature:install github.com/acme/splent_feature_notes

Where the index comes from

The CLI reads the workspace copy first, .splent_cache/marketplace/index.json. Without it, or with --refresh, it fetches SPLENT_INDEX_URL.

SPLENT_INDEX_URL=https://git.splent.io/splent-io/splent_index/raw/branch/main/index.json

Failing both, it asks the forge live. feature:info then reads the feature’s pyproject.toml at its latest tag, and feature:search lists the organisation’s repositories without filters.

Build your own copy whenever you like. --local indexes the editable features and models of your workspace, offline.

splent marketplace:index
splent marketplace:index --local

See marketplace:index.


Where a feature is installed from

Environment Installs from
Development Git tags on the forge, cached under .splent_cache/, or an editable clone at the workspace root
Production PyPI, with the git tag as fallback. product:build fails only when a feature has no version, or a pinned version is on neither

Installing a private feature

Set the token of the host the feature lives on in the workspace .env, SPLENT_FORGE_TOKEN for SPLENT’s own forge and SPLENT_TOKEN_github_com or GITHUB_TOKEN for GitHub, and feature:install and the live search authenticate. See Tokens setup. A private feature is not in the public index, so install it by its reference, or build an index that covers your organisation too.

splent marketplace:index --org splent-io --org my-company

Name splent-io as well. An explicit --org replaces the default, and the result overwrites the workspace index. To keep the workspace index, write elsewhere with --output.


Back to top

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