CLI¶
The cemi command is the package's command-line entrypoint. In the closed beta
it focuses on the local gateway, local workspace, and child-process orchestration
for tracked runs on the same machine.
Command summary¶
| Command | Purpose |
|---|---|
cemi help |
Show the main command list |
cemi config |
Display local CLI configuration |
cemi config set <key> <value> |
Persist owner or logdir in ~/.cemi/config.json |
cemi gateway |
Start the local gateway in the foreground |
cemi view |
Open the workspace without creating a run |
cemi start -- <cmd> |
Create a run context, open the workspace, and execute a command |
cemi stop |
Stop background local services started by the CLI |
cemi gateway¶
Starts the local gateway and serves the embedded workspace UI.
Choose a custom save directory:
Choose a custom port:
cemi view¶
Open the workspace without creating a run.
The CLI runs the gateway in the foreground, opens a browser tab after startup, and keeps the process attached until you stop it.
Dev UI mode¶
This starts the gateway in the background and opens the Vite development server when you are working from the source repository.
cemi start¶
cemi start is the main orchestration command. In the closed beta it prepares a
local run environment, opens the workspace, injects environment variables, and
then runs your training or benchmark command.
Local run¶
With an explicit project and save directory:
cemi start --project compression-engine --save-dir .cemi -- python -m engine.main --config benchmark.yaml
The CLI:
- ensures a compatible local gateway is available
- creates a local run id
- injects
CEMI_PROJECT_ID,CEMI_RUN_ID,CEMI_SAVE_DIR, andCEMI_LOCAL_SERVER_URL - opens the local workspace
cemi config¶
Display current configuration:
Set the default owner:
Set the default log directory:
cemi stop¶
Stops background services recorded by the CLI:
This is mostly useful after cemi start --dev-ui or cemi view --dev-ui.
Closed beta notes¶
- Cloud actions are intentionally hidden in this build.
cemi viewandcemi startopen the browser automatically.cemi gatewaykeeps serving on127.0.0.1and does not open a browser by itself.- Local CLI state such as
config.jsonand PID files lives under~/.cemi/.