Agentic Data Plane

rpk ai sandbox write-file

Write a file at an absolute sandbox path from a local file or stdin.

The file is replaced as a whole, and missing parent directories are created. The content must be 3 MiB or smaller. To upload a larger file, pipe it to sandbox shell.

Requires Sandbox.write_file on the sandbox.

Usage

rpk ai sandbox write-file SANDBOX PATH [flags]

Examples

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

rpk ai sandbox write-file dev /workspace/config.yaml --input config.yaml
echo hello | rpk ai sandbox write-file dev /workspace/hello.txt

Flags

Value Type Description

--input

string

Read the content from this local file instead of stdin.

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.