Skip to main content

luna doctor

Diagnose LunaPack project state, Git availability, credentials, and local profile/cache directories.

Syntax​

luna doctor [options]

Options​

OptionBehavior
--networkCheck configured Git and OCI sources with bounded, noninteractive probes.
--workspace <directory>, -wSelect a project directory.
--log-level <level>, -llSet output verbosity.
--suppress-next-stepsSuppress contextual next-step guidance.

Behavior​

The default run is offline. It does not create missing project or profile directories. --network enables source checks but does not change project configuration or lock state.

Each result has a pass, warning, or failure status and includes remediation when available. Source or credential warnings do not imply that local project state was mutated.

Exit behavior​

  • 0: all required checks pass.
  • 1: one or more checks fail.

Example​

luna doctor
luna doctor --network