vh fs
Reference for vh fs - list, download, upload, create, move and delete vault files over the control socket, without a mount.
vh fs reads and writes vault files without a mount, through the control socket. It is the command-line file path for
hosts without a mount, which includes every Mac: the macOS server never mounts vaults, and Finder access belongs to
Vaulthalla Desktop. It moves single files; for bulk transfers and sync clients use the S3 gateway.
1vh fs ls <vault> <path> [--owner <user>]2vh fs get <vault> <path> [-o <file>|-] [--owner <user>]3vh fs put <vault> <local-file|-> <path> [--overwrite] [--owner <user>]4vh fs mkdir <vault> <path> [--owner <user>]5vh fs mv <vault> <from> <to> [--owner <user>]6vh fs rm <vault> <path> [--recursive] [--owner <user>]
vh itself reads the local file (or standard input) for put and writes the local file for get; the daemon only
ever sees the vault path. Permissions are the web console's: ls needs List, get needs Read, put needs Write on
the new path (missing folders are created) and --overwrite needs Overwrite on the existing file. A path you can't
read reports "permission denied" whether or not it exists. Removing someone's access stops their running transfer.
vh fs get and vh fs put are never available to agents.
| Code | Meaning |
|---|---|
| Done. | |
rm: a folder that isn't empty, without --recursive. | |
| Invalid arguments. | |
| A damaged or incomplete transfer. | |
| No such file (local or, where you can read, in the vault). | |
| The vault is read-only here (a copy of another server's vault). | |
The vault path exists (no --overwrite; for mkdir and mv, the path or destination), or the local output can't be written. | |
| Reading or writing a local file failed. | |
| Too many transfers in progress. | |
| Permission denied. |
Commands
| Command | Arguments | Aliases | Effect | Summary |
|---|---|---|---|---|
<vault> <path> | list | read | List a directory in a vault (or show one file). | |
<vault> <path> | download | read | Download a file from a vault. | |
<vault> <local> <path> | upload | write | Upload a local file into a vault, encrypted like a web upload. | |
<vault> <path> | write | Create a folder in a vault. | ||
<vault> <from> <to> | move, rename | write | Move or rename a file, link or folder in a vault. | |
<vault> <path> | remove, delete | destructive | Delete a file, link or folder in a vault, as the web console does: files go to the vault's trash (restorable from there), folders and links are removed. |
vh fs ls
vh fs ls <vault> <path> [--owner id|name]| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
id or name | User ID or username of the vault owner (required if using name). |
vh fs get
get -o <file> writes to a temporary file next to <file> and replaces <file> only when every byte arrived and the
stored file passed its integrity check; anything else leaves <file> as it was. Without -o, the bytes go to standard
output, and vh refuses to write them to a terminal unless you pass -o -.
vh fs put
vh fs put <vault> <local> <path> [--owner id|name] [--overwrite]A put stores nothing unless the whole file arrives, and a replacement fails if the file changed while uploading.
| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
id or name | User ID or username of the vault owner (required if using name). | |||
flag | Replace the file if it exists (needs the Overwrite permission on it). |
vh fs mkdir
vh fs mkdir <vault> <path> [--owner id|name]mkdir, mv and rm do what the web console's folder, move, rename and delete actions do, with the same permissions
(Touch for a new folder; Rename within a folder, Move into another; Delete) and the same audit events. mkdir creates
one folder in an existing one.
| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
id or name | User ID or username of the vault owner (required if using name). |
vh fs mv
vh fs mv <vault> <from> <to> [--owner id|name]mv never replaces an entry at its destination.
| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
id or name | User ID or username of the vault owner (required if using name). |
vh fs rm
vh fs rm <vault> <path> [--owner id|name] [--recursive]rm moves a file to the vault's trash, from where it can be restored; a folder is removed with its files going to the
trash, and one that isn't empty needs --recursive.
| Option | Aliases | Type | Default | Summary |
|---|---|---|---|---|
id or name | User ID or username of the vault owner (required if using name). | |||
-r | flag | Remove a folder that isn't empty, with everything in it. |
