feature:clone

Clone a remote feature repository into the local SPLENT cache.


Usage

splent feature:clone <namespace>/<repo>[@version]

Examples

Clone latest version:

splent feature:clone splent_io/notepad

Clone specific tag:

splent feature:clone splent_io/notepad@v1.2.0

Description

This command:

  • Clones a feature repository from GitHub.
  • Stores it in .splent_cache.
  • Uses the specified version (tag or branch).
  • If no version is provided, fetches the latest tag (or main).

The feature is not automatically added to any product.


Authentication modes

Repository URL is built according to environment variables:

  • SPLENT_USE_SSH=true → SSH cloning
  • GITHUB_TOKEN set → HTTPS with token
  • Otherwise → HTTPS read-only

Resulting location

<workspace>/.splent_cache/features/<namespace>/<repo>@<version>/