Skip to content

Cohera CLI Reference

You can use the Cohera CLI to initialize, manage, build, run and deploy your cohera porject.

Open Windows PowerShell as an administrator and then run the following command:

Terminal window
winget install -e --id Astronomer.Astro

Initialize a project in a folder. You can choose from templates: blank, basic, showcase

Usage:

Terminal window
npm create cohera

Flags:

  • --template - Specify a template (blank, basic, showcase)

Examples:

Terminal window
# Initialize with interactive template selection
npm create cohera my-project
# Initialize with a specific template
npm create cohera my-project -- --template=basic
# Initialize in current directory
npm create cohera .

Add a module to the project.

Usage:

Terminal window
cohera module add <module-name>

Flags:

  • --dev - Add module as development dependency
  • --force - Force installation even if conflicts exist

Examples:

Terminal window
# Add a specific module
cohera module add chat
# Add multiple modules
cohera module add user-profiles calendar posts

Remove a module from the project.

Usage:

Terminal window
cohera module remove <module-name>

Flags:

  • --keep-data - Remove module but preserve data files
  • --force - Force removal without confirmation

Examples:

Terminal window
# Add a specific module
cohera module remove chat
# Add multiple modules
cohera module remove user-profiles calendar posts

Eject a module to customize its source code. After this you own the source code and are responsible that the module keeps working in combination with other modules that rely on it.

Usage:

Terminal window
cohera module eject <module-name>

Flags:

  • --no-confirm - Skip confirmation prompt

Examples:

Terminal window
# Eject the auth module for customization
cohera module eject chat
# Eject multiple modules
cohera module eject user-profiles calendar posts