previewctl init
Usage
previewctl initDescription
Initializes PreviewCtl in the current directory by creating a .previewctl/ folder with a default preview.yml configuration file.
Run this once at the root of your project to get started.
What it creates
.previewctl/└── preview.yml # Default config with example servicesExample
cd my-projectpreviewctl initThe generated preview.yml includes example services (frontend, API, database, cache) to help you get started. Edit it to match your actual stack.
Next steps
- Edit
.previewctl/preview.ymlto define your services - Run
previewctl validateto check your config - Run
previewctl upto bring up your environment