跳到主要内容

File Commands: file

bohr file manages objects in Bohrium personal and project shared storage.

Commands

CommandUsageDescription
copybohr file copy <source> <destination> [flags]Copy a file or directory on disk
deletebohr file delete <path> [flags]Delete a file or directory on disk
downloadbohr file download <path> [flags]Download a file from a personal or shared disk
listbohr file list [path] [flags]List files in a personal or shared disk directory
mkdirbohr file mkdir <path> [flags]Create a directory on disk
movebohr file move <source> <destination> [flags]Move or rename a file or directory on disk
statbohr file stat <path> [flags]Get file or directory metadata
uploadbohr file upload <local-file> [remote-path] [flags]Upload a local file to a personal or shared disk

For subcommands inside a command group, run bohr file <group> --help.

Common parameters

ParameterDescription
--project-id <id>Required for share/ paths; use 0 for personal/ paths
--limit <number>Maximum rows returned by list, default 50
--dest <local-path>Local destination for download
--recursiveRecursively copy, move, or delete a path prefix

Examples

bohr file list personal/notebooks --limit 100
bohr file upload ./input.csv personal/inputs/input.csv
bohr file download share/results/report.pdf --project-id 123 --dest ./report.pdf
bohr file copy personal/input.csv personal/archive/input.csv

Remote paths must start with personal/ or share/. Copy and move operations must remain in the same storage space. file delete is destructive, especially when combined with --recursive.