Skip to main content

Examples

Examples

Recommended

Learn common ways to initialize a project using Custy.

Commandcusty init

Category

Initialization

Quick Command

custy init

examplesbest practicesinitialization

Overview​

The following examples demonstrate common ways to initialize a project.

Most users only need the default initialization, while advanced workflows can use initialization modes and overwrite options to customize the generated resources.


Common Examples

Examples

Practical command examples.

Initialize a Project

Generate the complete Custy project workspace using the default initialization mode.

CLI
custy init


Generate Configuration Only

Create only the Custy configuration file.

CLI
custy init --mode config


Generate Templates Only

Generate only the default template resources.

CLI
custy init --mode templates


Generate Example Resources

Generate only the example message templates.

CLI
custy init --mode examples


Overwrite Existing Resources

Replace existing generated resources without prompting.

CLI
custy init --force


Prompt Before Overwriting

Ask for confirmation before replacing existing resources.

CLI
custy init --ask



Typical First-Time Setup

For a new project, the recommended workflow is:

  1. Run custy init.
  2. Review the generated configuration.
  3. Customize templates if necessary.
  4. Commit the generated resources to version control.

This allows every contributor to share the same project configuration from the beginning.



What's Next?

After becoming familiar with the initialization process, continue to the Output page to understand the messages and results produced by the command.