Summary
Add aviato upload and aviato download CLI commands for transferring files to/from sandboxes, wrapping the existing SDK methods sandbox.write_file() and sandbox.read_file().
Motivation
The SDK already has read_file() / write_file() methods but there's no CLI equivalent. Users currently have to use aviato exec <id> sh -c "echo ... > /path" as a workaround for file transfer, which is error-prone and limited to small payloads.
PR #60 review (NavarrePratt) suggested dedicated commands.
Proposed commands
aviato upload <sandbox-id> <local-path> <remote-path>
aviato download <sandbox-id> <remote-path> [local-path]
upload: read local file, call sandbox.write_file(remote_path, content)
download: call sandbox.read_file(remote_path), write to local path (default: stdout or basename)
Acceptance criteria
Summary
Add
aviato uploadandaviato downloadCLI commands for transferring files to/from sandboxes, wrapping the existing SDK methodssandbox.write_file()andsandbox.read_file().Motivation
The SDK already has
read_file()/write_file()methods but there's no CLI equivalent. Users currently have to useaviato exec <id> sh -c "echo ... > /path"as a workaround for file transfer, which is error-prone and limited to small payloads.PR #60 review (NavarrePratt) suggested dedicated commands.
Proposed commands
upload: read local file, callsandbox.write_file(remote_path, content)download: callsandbox.read_file(remote_path), write to local path (default: stdout or basename)Acceptance criteria
aviato uploadtransfers a local file into a sandboxaviato downloadretrieves a file from a sandbox