Skip to main content

luna sources

Configure and inspect the local, Git, and OCI pack sources available to a project.

Syntax​

luna sources add local <name> <path>
luna sources add git <name> <repository-url> [--ref <ref>] [--path <path>] [--timeout-seconds <seconds>]
luna sources add github <name> <organization/repository> [--ref <ref>] [--path <path>]
luna sources add oci <name> <registry-url> [--path <repository-prefix>] [--username <name>]
luna sources list
luna sources remove <name>
luna sources rename <current-name> <new-name>
luna sources ignore <repository-packs>
luna sources unignore <repository-packs>

Source types​

TypeRequired coordinatesOptional coordinates
localName and project-relative pathNone
gitName and repository URL or absolute local repository pathRef, repository-relative path, timeout
githubName and organization/repositoryRef and repository-relative path
ociName and normalized HTTPS registry URLRepository prefix and username metadata

Source names are exact, case-sensitive names. Local paths must remain within the project. Git URLs and OCI URLs cannot contain credentials, queries, or fragments. HTTP and Git protocols require the git.allow-insecure-transport opt-in.

Common options​

OptionApplies toBehavior
--ref, -rGit and GitHubSelect a branch or commit.
--path, -pGit, GitHub, and OCISelect a repository or registry prefix.
--usernameOCIStore non-secret username metadata only.
--timeout-secondsGitOverride the source probe timeout.
--workspace, -wEvery subcommandSelect another project.

Removal and rename​

luna sources remove refuses to remove a source that still owns installed pack or link state. Uninstall consumers before removal. luna sources rename updates the project source name and lock ownership only when the rename leaves source identity and consumer state valid.

Ignore state​

luna sources ignore and unignore persist user-local, project-scoped source state in the .lunapack user profile. Ignored sources remain in project configuration and lock state. The sidecar leaves older strict config.yml readers compatible.

Examples​

luna sources add local engineering ./packs
luna sources add git upstream https://github.com/example/packs.git --ref main --path standards
luna sources add oci registry https://registry.example.com --path engineering/packs --username reader
luna sources list