Skip to main content

luna init

Create the project configuration and lock file for the selected workspace.

Syntax​

luna init [options]

Options​

OptionBehavior
--workspace <directory>, -wSelect a project directory.
--log-level <level>, -llSet verbose, debug, info, warning, or error output.
--suppress-next-stepsSuppress contextual next-step guidance.

Behavior​

luna init creates lunapack.yml and lunapack-lock.yml when project state does not already exist. Existing project state remains unchanged. Generated Git metadata lives in the user profile, so initialization does not create or modify .gitignore.

The command does not install packs or add sources. The next common step is luna sources add local|git|oci.

Exit behavior​

  • 0: project state initialized or already initialized.
  • 1: project state could not be initialized or validated.

Example​

luna init
luna sources add local engineering ./packs