init

Overview and basic usage

init

Initializes a new Stacktape project in a specified directory.


stacktape init

API reference

Options
initializeProjectTo (--ipt)

Initialize Project To

Type: string

The directory where the starter project should be initialized. If the directory is not empty, its contents will be deleted. If not specified, you will be prompted to provide a path.

logFormat (--lf)

Log Format

Type: string

Possible values: basicfancyjsonnormal

The format of logs printed to the console.

  • fancy: Colorized and dynamically re-rendered logs.
  • normal: Colorized but not dynamically re-rendered logs.
  • basic: Simple text only.
  • json: Logs printed as JSON objects.
logLevel (--ll)

Log Level

Type: string

Possible values: debugerrorinfo

The level of logs to print to the console.

  • info: Basic information about the operation.
  • error: Only errors.
  • debug: Detailed information for debugging.
projectDirectory (--pd)

Project Directory

Type: string

The root directory where the project configuration should be generated.

starterId (--sid)

Starter ID

Type: string

The identifier of the starter project to initialize.

templateId (--ti)

Template ID

Type: string

The ID of the template to download. You can find a list of available templates on the Config Builder page.