ocm CLI manages Orange Cat projects. It handles project scaffolding and running the project entry point.
Commands
ocm initialize
Alias: ocm init
Scaffold a new Orange Cat project interactively. The command walks you through a series of prompts and then creates the project directory structure and configuration file.
Prompts
Directory
Enter the directory where the project will be created. Defaults to the project name you entered in the previous step.
Project ID
Enter a unique identifier for your project. Defaults to a dash-cased version of the project name (e.g.
myProject → my-project).Generated project structure
After answering all prompts,ocm initialize creates the following layout inside the chosen directory:
- App
- Lib
src/main.ocat:.ocat/config.json:Example session
ocm run
Run the project’s main entry point. Must be executed from the project’s root directory (where .ocat/config.json exists).
ocm run reads .ocat/config.json, sets up the project context, and then delegates to ocat run with the main field value as the target file.
Set project context
Sets the global project context (
isProject, projectConfig, services) so that project-aware features such as logging are enabled.Execute main file
Runs the file referenced by
config.json’s main field through the full compiler pipeline.Example
.ocat/logs.txt is created or overwritten with the run’s log output.
ocm run always passes force: false to the underlying ocat run call, so the main file must have a .ocat extension.