my source add <git-url> [flags]
Clones a git repository containing a mycli.yaml manifest, validates the manifest and command specs, and registers it as a source. Commands from all libraries in the source become available immediately.
Argument Description git-urlGit URL of the source repository (required)
Flag Description --refGit branch or tag to checkout --nameAlias for the source (defaults to repo name)
# Add a source from a git URL
my source add https://github.com/user/my-library.git
# Add with a specific branch
my source add https://github.com/user/my-library.git --ref v1.0
my source add https://github.com/user/my-library.git --name tools
Clones the repository to ~/.my/sources/repos/
Reads the source manifest (mycli.yaml, mycli.yml, or mycli.json)
Validates all command specs in each library directory
Registers the source in ~/.my/sources/sources.json
Commands become available as my <library> <slug>