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.
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
Global flags
| Value | Type | Description |
|---|---|---|
|
string |
Redpanda or |
|
stringArray |
Override |
|
bool |
Ignore |
|
string |
|
|
bool |
Enable verbose logging. |