| Command | Description |
|---|---|
opencore init [name] |
Initialize a new project |
opencore build |
Build all resources |
opencore dev |
Development mode with hot-reload |
opencore create <type> |
Create scaffolding |
opencore clone <template> |
Clone official template |
opencore doctor |
Validate configuration |
opencore update |
Update the CLI |
opencore --version |
Display CLI version |
Initialize a new OpenCore project with interactive wizard.
opencore init my-serverBuild all resources for production.
opencore buildOptions:
- Uses configuration from
opencore.config.ts - Outputs to
destinationpath - Runs parallel if
build.parallel: true --output auto|tui|plaincontrols output mode (default:auto)
CI usage:
opencore build --output=plainStart development mode with file watching and hot-reload.
opencore devFeatures:
- Watches for file changes
- Incremental compilation
- Hot-reload via framework HTTP server
- Optional txAdmin integration for core reload
Generate scaffolding for project components.
# Create feature in core
opencore create feature banking
# Create feature in specific resource
opencore create feature chat -r myresource# Create satellite resource
opencore create resource admin --with-client --with-nui# Create standalone resource
opencore create standalone utils --with-clientDownload official templates from the repository.
# List available templates
opencore clone --list
# List templates from a development branch
opencore clone --list --branch develop
# Clone a template
opencore clone chat
# Clone from a development branch
opencore clone chat --branch develop
# Force GitHub API (skip git sparse-checkout)
opencore clone admin --apiValidate project configuration and check for issues.
opencore doctorChecks:
- Configuration file exists and is valid
- Required paths exist
- Dependencies are compatible
Update the CLI from the selected release channel.
opencore update
opencore update --channel betaOptions:
--channel stable|betaselects which release stream to checkOPENCORE_UPDATE_CHANNEL=betachanges the default channel for update checks