Skip to main content

Runtime CLI Reference

Every elastos command has one explicit runtime expectation. Commands are organized into five runtime classes.

Runtime Classes

ClassContract
Managed dashboardAuto-starts loopback runtime, renders PC2
Managed userAuto-starts local runtime after setup
No runtimeRuns directly, no persistent runtime session
OperatorRequires explicit elastos serve running
Starts own serviceStarts its own daemon process

Managed Dashboard

These commands automatically start a loopback runtime and render the PC2 home surface.

CommandDescription
elastosOpen the PC2 home surface (default command)
elastos pc2Explicit PC2 home surface

Managed User

These commands automatically start a local runtime after setup.

CommandDescription
elastos chat --nick <name>Start a P2P chat session with the given nickname

No Runtime (Direct Commands)

These commands execute their task and exit. They do not require a persistent runtime session.

CommandDescription
elastos share <file>Share a file via IPFS, produce elastos://<cid> link
elastos open elastos://<cid>Open shared content by CID
elastos attestAttest content provenance
elastos updatePull latest signed release and update components
elastos setupInitialize local environment (first run)
elastos setup --with <component>Add optional component (kubo, ipfs-provider, md-viewer)
elastos site stage <dir>Stage a local directory as a site
elastos site publishPublish a staged site
elastos site activateActivate a published site version
elastos site rollbackRoll back to a previous site version

Operator

These commands require an explicit runtime to be running via elastos serve.

CommandDescription
elastos agentLaunch an AI agent capsule
elastos capsuleManage capsule lifecycle
elastos runRun a capsule directly (requires explicit runtime and working directory)

Starts Own Service

These commands start their own daemon process.

CommandDescription
elastos serveStart the runtime server (required for operator commands)
elastos gatewayStart a gateway server
elastos site serve --mode <mode>Serve a staged site (local or ephemeral mode)

General

CommandDescription
elastos --helpShow all available commands
elastos --versionShow runtime version