MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / showHelp

Function showHelp

scripts/dev-static.mjs:146–181  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

144}
145
146function showHelp() {
147 console.log(`
148Agent Canvas Static-frontend Development Stack
149
150Runs the automation stack, but serves a production build of the
151frontend via scripts/static-server.mjs. Use this when a remote or flaky network
152makes Vite's per-module requests painful (e.g. ngrok or plane wifi).
153
154USAGE:
155 npm run dev:static [-- options]
156
157OPTIONS:
158 -p, --port <port> Ingress port (default: 8000)
159 --automation-ref <ref> Git ref for automation backend (default: main)
160 --automation-repo <url> Git repo URL for automation
161 --skip-build Reuse existing build/ directory (faster restart)
162 -v, --verbose Show detailed output
163 -h, --help Show this help
164
165ENVIRONMENT VARIABLES:
166 PORT Alternative to --port
167 OH_AUTOMATION_GIT_REF Alternative to --automation-ref
168 OH_AGENT_SERVER_GIT_REF Git ref for agent-server SDK
169 OH_SECRET_KEY Secret key for sessions
170
171ACCESS POINTS:
172 Main UI: http://localhost:PORT/
173 API Docs: http://localhost:PORT/api/automation/docs
174
175NOTES:
176 • The build is produced once at startup. Edit the source and rerun this
177 command (or rebuild with \`npm run build:app\`) to pick up changes.
178 • The static server sends ETag headers, so reloads return 304s instead of
179 refetching content — much friendlier on slow links.
180`);
181}
182
183// ═══════════════════════════════════════════════════════════════════════════
184// Prerequisites & Setup

Callers 1

parseArgsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected