editor/apps/cli/reference/screenshot.md
konstantin-paulus d083cd76ed Add screenshot command to CLI and implement screenshot functionality
Introduced a new `screenshot` command in the CLI to capture the entire application window as a PNG. Updated the documentation to include this command and its options. Implemented the screenshot functionality in both the CLI and desktop applications, allowing users to save the screenshot to a specified directory. Enhanced the type definitions to support the new screenshot feature, improving overall usability and functionality.
2026-07-20 10:25:35 +02:00

892 B

dapi screenshot

Captures the entire application window as a PNG: the full UI as the user sees it (panels, timeline, asset library, canvas viewport), at the window's current size. Use it to check what the app itself looks like; to render a node or scene cleanly for composition checks use node capture instead.

The shot is taken from the app's own window buffer, so it works even when the window is hidden (launched with open --background) or covered by other windows, and never includes anything outside the app.

Options

  • -o, --output <dir>: directory to write the PNG into (default: the system temp directory)

Output

One JSON object: the absolute path to a freshly written PNG with a uuid filename, plus the image's pixel dimensions.

{ path: string, width: number, height: number }

Errors

Exits non-zero if the app is not running.