| 257 | } |
| 258 | |
| 259 | function printHelp(): void { |
| 260 | console.log( |
| 261 | [ |
| 262 | "DevSpace", |
| 263 | "", |
| 264 | "Usage:", |
| 265 | " devspace Run first-time setup if needed, then start the server", |
| 266 | " devspace serve Start the server", |
| 267 | " devspace init Create or update ~/.devspace/config.json and auth.json", |
| 268 | " devspace doctor Show config, runtime, and native dependency status", |
| 269 | " devspace config get Print persisted config", |
| 270 | " devspace config set publicBaseUrl <url|null>", |
| 271 | " devspace -v, --version Print the installed version", |
| 272 | "", |
| 273 | "For temporary tunnels:", |
| 274 | " DEVSPACE_PUBLIC_BASE_URL=https://example.trycloudflare.com devspace serve", |
| 275 | ].join("\n"), |
| 276 | ); |
| 277 | } |
| 278 | |
| 279 | function printVersion(): void { |
| 280 | const packageJson = require("../package.json") as { version?: unknown }; |