File Commands: file
bohr file manages objects in Bohrium personal and project shared storage.
Commands
| Command | Usage | Description |
|---|---|---|
copy | bohr file copy <source> <destination> [flags] | Copy a file or directory on disk |
delete | bohr file delete <path> [flags] | Delete a file or directory on disk |
download | bohr file download <path> [flags] | Download a file from a personal or shared disk |
list | bohr file list [path] [flags] | List files in a personal or shared disk directory |
mkdir | bohr file mkdir <path> [flags] | Create a directory on disk |
move | bohr file move <source> <destination> [flags] | Move or rename a file or directory on disk |
stat | bohr file stat <path> [flags] | Get file or directory metadata |
upload | bohr 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
| Parameter | Description |
|---|---|
--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 |
--recursive | Recursively 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.