Skip to content

CLI — init

Terminal window
aynig init

aynig init bootstraps the current git repository with the files and folders that AYNIG expects.

It is safe to re-run. Existing files are left in place and missing pieces are created.

Behavior

  • Requires the current directory to be a git repository.
  • Creates .aynig/ if it does not already exist.
  • Creates .aynig/command/ if it does not already exist.
  • Creates .aynig/COMMANDS.md only when .aynig/ is newly created.
  • Creates .aynig/CONTRACT.md when it is missing.
  • Creates .aynig/command/clean when it is missing.
  • Creates .worktrees/ when it is missing.
  • Ensures .worktrees/ and .aynig/logs/ are present in .gitignore.
  • Skips existing files instead of overwriting them.

Options

This command has no flags.

Files Created

Depending on what already exists, aynig init may create:

  • .aynig/
  • .aynig/COMMANDS.md
  • .aynig/CONTRACT.md
  • .aynig/command/
  • .aynig/command/clean
  • .worktrees/
  • .gitignore entries for .worktrees/ and .aynig/logs/

Examples

Initialize the current repository:

Terminal window
aynig init

Initialize after creating a new git repo:

Terminal window
git init && aynig init

Re-run initialization to fill in missing files without overwriting existing ones:

Terminal window
aynig init