MCPcopy Create free account
hub / github.com/MatterAIOrg/OrbCode / printHelp

Function printHelp

src/index.tsx:21–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19const PACKAGE_NAME = "@matterailab/orbcode"
20
21function printHelp(): void {
22 console.log(`${PRODUCT_NAME} v${VERSION}
23
24Usage:
25 orbcode start an interactive session
26 orbcode "<prompt>" start an interactive session with an initial prompt
27 orbcode login sign in to MatterAI
28 orbcode update install the latest version from npm
29 orbcode update --force force a global install even if this CLI doesn't look global
30 orbcode mcp add ... add an MCP server (see: orbcode mcp help)
31 orbcode mcp remove ... remove an MCP server
32 orbcode mcp list list configured MCP servers
33 orbcode mcp migrate import MCP servers from Claude Code / Claude Desktop
34 orbcode -p "<prompt>" run a single prompt non-interactively (prints only the final response)
35 orbcode -p "…" --yolo non-interactive with auto-approved edits/commands
36 orbcode --model <id> use a specific model for this run
37 orbcode --resume <id> resume a previous session by id
38 orbcode -s "<prompt>" override the default system prompt (replaces it entirely;
39 accepts -s <text>, --system-prompt <text>, and
40 --system-prompt=<text> for values that start with '-')
41 orbcode --version print version
42 orbcode --help show this help
43`)
44}
45
46async function runUpdate(force: boolean): Promise<number> {
47 const latest = await fetchLatestNpmVersion(PACKAGE_NAME)

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected