init command creates and configures the Panguard environment on your machine. It generates the default configuration file, sets up data directories, and detects your operating system and installed services for optimal defaults.
Usage
Options
Path to a custom configuration file. If provided,
init will merge your custom settings with
detected defaults instead of creating a new file from scratch.Set the default language for CLI output and notifications.
Examples
What init Does
- Detects the OS and environment — identifies Linux distro, macOS version, or WSL setup
- Creates configuration directory —
~/.panguard/with defaultconfig.yaml - Sets up data directories — separate directories for Guard, Trap, and Scan data
- Detects running services — identifies web servers, databases, and other services to tailor scan and guard defaults
- Configures Threat Cloud — prompts to enable collective defense (anonymous threat sharing)
Related
Quick Start
Full onboarding walkthrough including init.
panguard config
View and edit configuration after initialization.
Environment Variables
Override configuration with environment variables.