Cohera CLI Reference
You can use the Cohera CLI to initialize, manage, build, run and deploy your cohera porject.
Installation
Section titled “Installation”Open Windows PowerShell as an administrator and then run the following command:
winget install -e --id Astronomer.AstroRun the following command to install the latest version of the Astro CLI directly to PATH:
curl -sSL install.cohera.org | sudo bash -sTo install the latest version of the Astro CLI, run the following command:
brew install coheraCommands
Section titled “Commands”cohera init
Section titled “cohera init”Initialize a project in a folder. You can choose from templates: blank, basic, showcase
Usage:
npm create coheraFlags:
--template- Specify a template (blank, basic, showcase)
Examples:
# Initialize with interactive template selectionnpm create cohera my-project
# Initialize with a specific templatenpm create cohera my-project -- --template=basic
# Initialize in current directorynpm create cohera .cohera module add
Section titled “cohera module add”Add a module to the project.
Usage:
cohera module add <module-name>Flags:
--dev- Add module as development dependency--force- Force installation even if conflicts exist
Examples:
# Add a specific modulecohera module add chat
# Add multiple modulescohera module add user-profiles calendar postscohera module remove
Section titled “cohera module remove”Remove a module from the project.
Usage:
cohera module remove <module-name>Flags:
--keep-data- Remove module but preserve data files--force- Force removal without confirmation
Examples:
# Add a specific modulecohera module remove chat
# Add multiple modulescohera module remove user-profiles calendar postscohera module eject
Section titled “cohera module eject”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:
cohera module eject <module-name>Flags:
--no-confirm- Skip confirmation prompt
Examples:
# Eject the auth module for customizationcohera module eject chat
# Eject multiple modulescohera module eject user-profiles calendar posts