Skip to main content

luna links

Select regular files from configured local or Git sources without creating a pack manifest.

Syntax​

luna links add <name> [options]
luna links list
luna links show <name>
luna links remove <name>
OptionBehavior
--source, -sConfigured local or Git source name.
--include, -iRepeatable file, directory, or glob selector.
--exclude, -eRepeatable exclusion glob.
--pathSource-relative selector base.
--target, -tWorkspace-relative output directory.
--refGit ref override.
--strip-prefixRemove a source path prefix from targets.
--flattenPlace selected files directly under the target.
--installInstall the link after saving its definition.
--forceReplace an existing link definition.

At least one include is required. Link names use exact case-sensitive alphanumeric/hyphen syntax.

State behavior​

Link intent remains in lunapack.yml. Selected paths, source identity, resolved Git commit, effective targets, and SHA-256 digests remain in lunapack-lock.yml.

Removing an installed link requires uninstall or --force according to lock ownership. Use luna audit --strict to verify installed link targets.

Example​

luna links add agents --source engineering --include ".github/agents/*.agent.md" --target ".github/agents" --install