Agentic Data Plane

rpk ai sandbox read-file

Read a file at an absolute sandbox path and write its raw bytes to stdout or a local file. Pass --output - for stdout. Requires Sandbox.read_file on the sandbox.

Usage

rpk ai sandbox read-file SANDBOX PATH [flags]

Examples

This section provides examples of how to use rpk ai sandbox read-file.

rpk ai sandbox read-file dev /workspace/report.bin --output report.bin

Flags

Value Type Description

--output

string

Write the file to this local path instead of stdout.

Global flags

Value Type Description

--config

string

Redpanda or rpk config file; default search paths are ~/.config/rpk/rpk.yaml, $PWD/redpanda.yaml, and /etc/redpanda/redpanda.yaml.

-X, --config-opt

stringArray

Override rpk configuration settings; -X help for detail or -X list for terser detail.

--ignore-profile

bool

Ignore rpk.yaml and redpanda.yaml; use default settings.

--profile

string

rpk profile to use.

-v, --verbose

bool

Enable verbose logging.