Prerequisites
Before installing Crust, make sure you have:- Node.js 18 or higher
- npm, yarn, or pnpm
- Terraform or Terragrunt installed
- OpenAI API key
- AWS credentials (for cost analysis)
Installation Methods
Global Installation (Recommended)
Using npx
If you prefer not to install Crust globally, you can use npx:From Source
If you want to contribute to Crust or need the latest features:Initial Configuration
After installation, you need to initialize Crust with your OpenAI API key:- Create a configuration file at
~/.crust.json - Ask for your OpenAI API key
- Ask for your preferred Terraform plan command
- Ask for your preferred language