CLI — install
aynig install <repo> [ref] [subfolder]aynig install clones another repository into a temporary directory and copies
its workflow files into the current repository.
By default it copies the source repository’s .dwp/ directory into your local
.dwp/ directory.
Behavior
- Requires a source repository argument.
- Accepts a GitHub shorthand such as
owner/nameand expands it tohttps://github.com/owner/name.git. - Clones with
--depth 1. - Uses the provided ref as the clone branch when
[ref]is given. - Copies from
.dwp/by default, or from[subfolder]when provided. - Refuses to run when
.dwp/has uncommitted changes in the current repository. - Skips source
README.mdfiles while copying. - Reports installed files and overwritten files.
- When
.dwp/COMMANDS.mdchanges, attempts an automatic merge withopencodeorclaudewhen either tool is available.
Arguments
<repo>
Required. The source repository to clone.
Examples:
aynig install hacknlove/all-you-need-is-gitaynig install https://github.com/hacknlove/all-you-need-is-git.git[ref]
Optional. The branch, tag, or ref to clone.
Example:
aynig install hacknlove/all-you-need-is-git main[subfolder]
Optional. Copies files from a specific subfolder in the source repository
instead of the default .dwp/ directory.
Example:
aynig install hacknlove/all-you-need-is-git main workflow-packs/reviewerOptions
This command has no flags.
Examples
Install the default .dwp/ directory from a GitHub repository:
aynig install hacknlove/all-you-need-is-gitInstall from a specific branch:
aynig install hacknlove/all-you-need-is-git ops-workflow-packInstall from a specific subfolder:
aynig install hacknlove/all-you-need-is-git main workflow-packs/reviewerInstall from a full git URL:
aynig install https://github.com/hacknlove/all-you-need-is-git.git