Skip to main content

cp

copy a file to or from a volume

Copy one file between this computer and a SphereFiles volume.

Write the volume side as <volume>:<path>, with the volume's name or id. End the volume path with / to keep the file's name. Uploads up to 100 GB; downloads up to 5 GB.

The copy shows its progress on a terminal. If it's interrupted, run the same command again to continue.

Usage​

csph files cp <source> <destination> [flags]

Options​

Command Specific​

--environment <string>
environment ID

Formatting​

For more information about formatting options, see Formatting.

-o, --output <string>

output format: [table|plain|csv|json|yaml]

Inherited​

--config <string>
config file (default is $HOME/.config/computesphere/configuration.yaml)
--debug
enable debug logging

-h, --help

show this help message

-i, --interactive

run interactively (prompts, pickers, table browser)
--log-level <string>
log level: [trace|debug|info|warn|error|fatal|panic|disabled||api]
--no-color
disable color output
--no-input
disable interactive mode

Examples​

  csph files cp ./backup.tar data:/backups/
csph files cp data:/backups/backup.tar .
csph files cp ./model.bin data:/models/model.bin --environment <id> -o json

See also​

  • csph files — copy files to and from SphereFiles volumes