--- title: "Command reference" description: "Every darkgrade command with its arguments and flags, from darkgrade camera take-photo to darkgrade camera set-iso, grouped like the Functionality pages." url: https://darkgrade.com/docs/cli/commands last_updated: 2026-12-04 docs_index: https://darkgrade.com/docs/llms.txt --- # Command reference > Every darkgrade command with its arguments and flags, from darkgrade camera take-photo to darkgrade camera set-iso, grouped like the Functionality pages. > ## Documentation Index > Fetch the complete documentation index at: https://darkgrade.com/docs/llms.txt > Use this file to discover all available pages before exploring further. Run a camera command as `npx darkgrade camera `: it opens the camera, does one thing and closes it. Run the commands from [This computer](#this-computer) on as `npx darkgrade `. Required inputs come in order; the rest are flags. Every camera command also takes `--camera VID:PID`, to choose between several cameras, and `--json`, written after the command, plus the [global flags](https://darkgrade.com/docs/cli.md#global-flags). `--duration` takes `10s`, `2m` or `1h`, from 1 second to 24 hours; a bare number is seconds. A value that starts with `-`, such as an exposure compensation of `-1.0`, is read as a flag and cannot be passed today. [Output and scripting](https://darkgrade.com/docs/cli/output.md) covers `--json`, `--output` and the commands that hold. On a Mac, if a command fails with an access or busy error, see [If a ready camera will not open](https://darkgrade.com/docs/cli/install.md#if-a-ready-camera-will-not-open). ## Connection | Command | Does | | - | - | | `connect` | [Connect](https://darkgrade.com/docs/functionality/connection.md#connect). Open the camera. Flags: `--[no-]observe-only` | | `get-info` | [Camera info](https://darkgrade.com/docs/functionality/connection.md#camera-info). Make, model, firmware and connection. | | `get-capabilities` | [What the camera can do](https://darkgrade.com/docs/functionality/connection.md#what-the-camera-can-do). Every setting, its choices, and what works right now. | | `set-control` `` `` | [Set any setting](https://darkgrade.com/docs/functionality/connection.md#set-any-setting). Change a setting by its id. Flags: `--frames-per-second ` | | `recover` | [Recover a stuck camera](https://darkgrade.com/docs/functionality/connection.md#recover-a-stuck-camera). Bring back a camera that stopped answering. Flags: `--step-timeout-milliseconds `, `--wait-for-device-milliseconds `, `--[no-]allow-port-reset` | | `disconnect` | [Disconnect](https://darkgrade.com/docs/functionality/connection.md#disconnect). Close the camera and put it back as it was. | `connect` and `disconnect` exist to match Slate: every other command connects and disconnects by itself. To list cameras without opening one, use [`cameras`](#this-computer). `recover` exits 0 whether or not the camera came back: read `recovered` in its result. ## Exposure | Command | Does | | - | - | | `get-exposure-mode` `set-exposure-mode` `` | Read or set [Exposure mode](https://darkgrade.com/docs/functionality/exposure.md#exposure-mode). | | `get-shutter-speed` `set-shutter-speed` `` | Read or set [Shutter speed](https://darkgrade.com/docs/functionality/exposure.md#shutter-speed). | | `get-aperture` `set-aperture` `` | Read or set [Aperture](https://darkgrade.com/docs/functionality/exposure.md#aperture). | | `get-iso` `set-iso` `` | Read or set [ISO](https://darkgrade.com/docs/functionality/exposure.md#iso). | | `get-exposure-compensation` `set-exposure-compensation` `` | Read or set [Exposure compensation](https://darkgrade.com/docs/functionality/exposure.md#exposure-compensation). | | `get-metering-mode` `set-metering-mode` `` | Read or set [Metering](https://darkgrade.com/docs/functionality/exposure.md#metering). | ## Focus | Command | Does | | - | - | | `autofocus` | [Autofocus](https://darkgrade.com/docs/functionality/focus.md#autofocus). Focus once and say whether it locked. | | `set-focus-point` `` `` | [Focus on a point](https://darkgrade.com/docs/functionality/focus.md#focus-on-a-point). Focus on a spot in the frame. Flags: `--[no-]autofocus` | | `reset-focus-point` | [Reset the focus point](https://darkgrade.com/docs/functionality/focus.md#reset-the-focus-point). Put the focus point back in the centre. | | `nudge-focus` `` `` | [Nudge manual focus](https://darkgrade.com/docs/functionality/focus.md#nudge-manual-focus). Step focus nearer or farther. | | `get-focus-mode` `set-focus-mode` `` | Read or set [Focus mode](https://darkgrade.com/docs/functionality/focus.md#focus-mode). | | `get-focus-area` `set-focus-area` `` | Read or set [Focus area](https://darkgrade.com/docs/functionality/focus.md#focus-area). | | `get-subject-detection` `set-subject-detection` `` | Read or set [Subject detection](https://darkgrade.com/docs/functionality/focus.md#subject-detection). | | `get-detection-subject` `set-detection-subject` `` | Read or set [Detection subject](https://darkgrade.com/docs/functionality/focus.md#detection-subject). | | `get-eye-selection` `set-eye-selection` `` | Read or set [Eye selection](https://darkgrade.com/docs/functionality/focus.md#eye-selection). | | `get-continuous-autofocus` `set-continuous-autofocus` `` | Read or set [Continuous AF](https://darkgrade.com/docs/functionality/focus.md#continuous-af). | ## Zoom and stabilisation | Command | Does | | - | - | | `zoom-to` `` | [Zoom to a focal length](https://darkgrade.com/docs/functionality/zoom.md#zoom-to-a-focal-length). Go to 35 mm, for example. | | `start-zoom` `` `` | [Start zooming](https://darkgrade.com/docs/functionality/zoom.md#start-zooming). Zoom in or out until stopped. Flags: `--duration ` | | `stop-zoom` | [Stop zooming](https://darkgrade.com/docs/functionality/zoom.md#stop-zooming). Stop the zoom. | | `get-digital-zoom` `set-digital-zoom` `` | Read or set [Digital zoom](https://darkgrade.com/docs/functionality/zoom.md#digital-zoom). | | `get-image-stabilization` `set-image-stabilization` `` | Read or set [Image stabilisation](https://darkgrade.com/docs/functionality/zoom.md#image-stabilisation). | ## Photos | Command | Does | | - | - | | `take-photo` | [Take a photo](https://darkgrade.com/docs/functionality/photos.md#take-a-photo). Take one photo and get its file name. Flags: `--[no-]autofocus`, `--destination` (`card`, `computer`, `computerOnly`), `--[no-]download`, `--raw-compression` (`Compressed`, `Lossless`, `High efficiency★`, `High efficiency`), `--[no-]include-info`, `--output ` | | `get-drive-mode` `set-drive-mode` `` | Read or set [Drive mode](https://darkgrade.com/docs/functionality/photos.md#drive-mode). | | `get-shutter-type` `set-shutter-type` `` | Read or set [Shutter type](https://darkgrade.com/docs/functionality/photos.md#shutter-type). | | `get-flash-mode` `set-flash-mode` `` | Read or set [Flash](https://darkgrade.com/docs/functionality/photos.md#flash). | | `get-photo-format` `set-photo-format` `` | Read or set [Photo format](https://darkgrade.com/docs/functionality/photos.md#photo-format). | | `get-photo-size` `set-photo-size` `` | Read or set [Photo size](https://darkgrade.com/docs/functionality/photos.md#photo-size). | | `get-aspect-ratio` `set-aspect-ratio` `` | Read or set [Aspect ratio](https://darkgrade.com/docs/functionality/photos.md#aspect-ratio). | | `get-jpeg-quality` `set-jpeg-quality` `` | Read or set [JPEG quality](https://darkgrade.com/docs/functionality/photos.md#jpeg-quality). | | `get-raw-compression` `set-raw-compression` `` | Read or set [RAW compression](https://darkgrade.com/docs/functionality/photos.md#raw-compression). | ## Live view | Command | Does | | - | - | | `get-live-view-frame` | [Read a live-view frame](https://darkgrade.com/docs/functionality/live-view.md#read-a-live-view-frame). The current picture, as a JPEG. Flags: `--[no-]overlay`, `--output ` | | `get-live-view-quality` `set-live-view-quality` `` | Read or set [Live-view quality](https://darkgrade.com/docs/functionality/live-view.md#live-view-quality). | ## Video | Command | Does | | - | - | | `start-recording` | [Start recording](https://darkgrade.com/docs/functionality/video.md#start-recording). Start a video recording. Flags: `--duration ` | | `stop-recording` | [Stop recording](https://darkgrade.com/docs/functionality/video.md#stop-recording). Stop and get the finished clip. | | `get-recording-state` | [Recording state](https://darkgrade.com/docs/functionality/video.md#recording-state). Whether the camera is recording. | | `get-photo-video-mode` `set-photo-video-mode` `` | Read or set [Photo / video](https://darkgrade.com/docs/functionality/video.md#photo--video). | | `get-video-format` `set-video-format` `` | Read or set [Video format](https://darkgrade.com/docs/functionality/video.md#video-format). | | `get-video-quality` `set-video-quality` `` | Read or set [Video quality](https://darkgrade.com/docs/functionality/video.md#video-quality). | | `get-frame-rate` `set-frame-rate` `` | Read or set [Frame rate](https://darkgrade.com/docs/functionality/video.md#frame-rate). | | `get-audio-recording` `set-audio-recording` `` | Read or set [Audio recording](https://darkgrade.com/docs/functionality/video.md#audio-recording). | | `get-audio-level` `set-audio-level` `` | Read or set [Audio level](https://darkgrade.com/docs/functionality/video.md#audio-level). | ## Colour and look | Command | Does | | - | - | | `get-white-balance` `set-white-balance` `` | Read or set [White balance](https://darkgrade.com/docs/functionality/color.md#white-balance). | | `get-color-temperature` `set-color-temperature` `` | Read or set [Colour temperature](https://darkgrade.com/docs/functionality/color.md#colour-temperature). | | `get-picture-style` `set-picture-style` `` | Read or set [Look](https://darkgrade.com/docs/functionality/color.md#look). | | `get-picture-profile` `set-picture-profile` `` | Read or set [Picture profile](https://darkgrade.com/docs/functionality/color.md#picture-profile). | ## Card and files | Command | Does | | - | - | | `get-card-status` | [Card space](https://darkgrade.com/docs/functionality/media.md#card-space). Free space, photos and recording time left. | | `list-media` | [List photos and clips](https://darkgrade.com/docs/functionality/media.md#list-photos-and-clips). The photos and clips on the card, newest first. | | `get-media-preview` `` | [Preview a file](https://darkgrade.com/docs/functionality/media.md#preview-a-file). A small JPEG of a photo or clip. Flags: `--size` (`thumbnail`, `preview`), `--output ` | | `download-media` `` | [Download a file](https://darkgrade.com/docs/functionality/media.md#download-a-file). Copy a photo or clip off the card. Flags: `--output ` | ## Battery and clock | Command | Does | | - | - | | `get-battery` | [Battery](https://darkgrade.com/docs/functionality/power.md#battery). Charge, minutes left and power source. | | `set-clock` | [Set the clock](https://darkgrade.com/docs/functionality/power.md#set-the-clock). Set the camera's date and time. Flags: `--moment ` | ## Events `watch` is a camera command too: run it as `npx darkgrade camera watch`. [Events](https://darkgrade.com/docs/functionality/connection.md#events) shows the same on every product. | Command | Does | | - | - | | `watch` | Print a line each time a setting changes on the camera or a new photo or clip lands, until Ctrl-C or `--duration`. With `--json`, each line is `{"event": …, "at": …}`. [Watch for events](https://darkgrade.com/docs/cli/output.md#watch-for-events) Flags: `--duration ` | ## AI apps | Command | Does | | - | - | | `mcp` | Serve the camera tools to an AI app over MCP. [Serve your camera to an AI app](https://darkgrade.com/docs/cli/mcp.md) Flags: `--camera `, `--output ` | ## This computer | Command | Does | | - | - | | `cameras` | List the cameras attached over USB. [List cameras](https://darkgrade.com/docs/cli/install.md#list-cameras) Flags: `--json` | | `doctor` | Check this computer and any attached camera. [Check your setup](https://darkgrade.com/docs/cli/install.md#check-your-setup) Flags: `--json` | ## Diagnostics sharing [Benchmark and sharing](https://darkgrade.com/docs/cli/telemetry.md) explains each of these. | Command | Does | | - | - | | `telemetry benchmark` | Run every check on the attached camera. [Benchmark your camera](https://darkgrade.com/docs/cli/telemetry.md#benchmark-your-camera) Flags: `--camera `, `--no-photo`, `--no-live-view`, `--json` | | `telemetry status` | Show the sharing preference. [See the sharing preference](https://darkgrade.com/docs/cli/telemetry.md#see-the-sharing-preference) Flags: `--email`, `--json` | | `telemetry opt-in` | Share diagnostics. [Turn sharing off or on](https://darkgrade.com/docs/cli/telemetry.md#turn-sharing-off-or-on) | | `telemetry opt-out` | Stop sharing diagnostics. [Turn sharing off or on](https://darkgrade.com/docs/cli/telemetry.md#turn-sharing-off-or-on) | | `telemetry delete` | Turn sharing off and delete what was shared. [Delete what was shared](https://darkgrade.com/docs/cli/telemetry.md#delete-what-was-shared) Flags: `-y`, `--yes` | | `telemetry whoami` | Print your diagnostic ID. [Your diagnostic ID](https://darkgrade.com/docs/cli/telemetry.md#your-diagnostic-id) | | `telemetry login` `` | Link an email to your contributions. [Link an email](https://darkgrade.com/docs/cli/telemetry.md#link-an-email) | | `telemetry logout` | Remove the linked email. [Link an email](https://darkgrade.com/docs/cli/telemetry.md#link-an-email) | ## Shell | Command | Does | | - | - | | `completions` `` | Print a shell completion script. [Tab completion](https://darkgrade.com/docs/cli/install.md#tab-completion) | | `man` | Open the manual page. [The manual page](https://darkgrade.com/docs/cli/install.md#the-manual-page) | | `help` `[command]` | Show help for a command. [Get help in the terminal](https://darkgrade.com/docs/cli/install.md#get-help-in-the-terminal) | | `version` | Print the version. [Run or install](https://darkgrade.com/docs/cli/install.md#run-or-install) Flags: `--json` |