TheDocumentation Index
Fetch the complete documentation index at: https://crsdk.app/llms.txt
Use this file to discover all available pages before exploring further.
camera-server CLI ships with the @alpha-sdk/api npm package. It wraps the native server binary so you can run the REST API without writing any application code — useful for local testing, debugging, and language-agnostic integrations.
Install
darwin-arm64, linux-arm64, linux-x64, win32-x64).
Commands
camera-server start
Starts the server in the foreground on port 8080.
| Flag | Description | Default |
|---|---|---|
--port <n> | Port to bind | 8080 |
--host <addr> | Host to bind | 127.0.0.1 |
--detach | Run in the background (PID file + log file) | off |
camera-server stop
Stops a server started with --detach.
camera-server status
Reports whether a detached server is running, its PID, and its HTTP health.
0 if running and healthy, 1 otherwise — suitable for shell scripts and health probes.
Use cases
- Local development — run the REST API without spinning up the TypeScript client.
- Language-agnostic workflows — control the camera from Python, Go, Rust, or a shell script by calling the REST endpoints directly.
- Remote server setups — run
camera-server start --host 0.0.0.0on a host connected to the camera (e.g. a Raspberry Pi) and point other machines at it.
Programmatic equivalent
The TypeScript SDK’sServerManager provides the same lifecycle control programmatically. Use the CLI for scripts and one-off tasks; use ServerManager when the server’s lifecycle is tied to your application’s.
