Skip to content

previewctl init

Usage

Terminal window
previewctl init

Description

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 services

Example

Terminal window
cd my-project
previewctl init

The generated preview.yml includes example services (frontend, API, database, cache) to help you get started. Edit it to match your actual stack.

Next steps