Socotra
CLI · command group

socotra template

Five subcommands for managing project templates.


template add <source>

Fetch a template and add it to your project.

Arguments

ArgumentRequiredDescription
sourceYesTemplate source: name, github:org/repo/path, or ./local/path

Options

OptionTypeDefaultDescription
--globalboolfalseSave to the user-wide registry instead of project-local

Examples

socotra template add github:myorg/templates/module
socotra template add ./my-templates/custom-api
socotra template add github:myorg/templates/module --global

template list

Display a table of Name, Source, Files, Fetched, Version, and Scope.

socotra template list

template update <name>

Re-fetch a template from its original source and update it in your project.

OptionTypeDefaultDescription
--globalboolfalseUpdate in the user-wide registry
socotra template update base-entity

template remove <name>

Remove a template from your project.

OptionTypeDefaultDescription
--forceboolfalseSkip confirmation prompt
--globalboolfalseRemove from the user-wide registry
socotra template remove base-entity
socotra template remove old-template --force

template export <name>

Copy a built-in template to your project for customization. Exported templates take priority over the built-in version.

OptionTypeDefaultDescription
--globalboolfalseExport to the user-wide registry
socotra template export base-entity
socotra template export result-pattern --global
Schema 1.1 · CLI 1.0