The anvil init command bootstraps your Anvil CLI environment. This is the first command you should run after installing Anvil.
anvil init [flags]--discover: Automatically discover installed apps and add them to a "discovered-apps" group--skip-tools: Skip tool validation and installation
- Tool Validation: Validates and installs required system tools (Git, cURL, Homebrew)
- Directory Creation: Creates
~/.anvil/directory withsettings.yamlandtemp/folder - Configuration Generation: Generates default
settings.yamlwith tool preferences and groups - Environment Detection: Detects OS, existing tools, Git configuration, and Homebrew status
- App Discovery (with
--discover): Scans for installed Homebrew packages and macOS apps, adding untracked apps to adiscovered-appsgroup - Recommendations: Provides personalized setup recommendations based on system state
After running anvil init:
anvil install dev # Install development tools
anvil install essentials # Install essential applications
anvil config show # View your configuration