1. Setup Preflight
If you already have a.env file, Preflight can automatically infer a schema for you.
.preflight.yaml file in your root directory.
2. Configure a Probe
Open the generated.preflight.yaml and add a probe to your critical variables:
3. Run the Check
Run thecheck command to verify your environment:
Example Success Output
Example Failure Output
4. Integrate into CI/CD
To use Preflight in your CI/CD pipeline, use the--ci flag. This will exit with code 1 if any validation or probe fails.