Skip to content
Vaulthalla LogoVaulthalla

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.

vh fs exit codes
CodeMeaning
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

vh fs
CommandArgumentsAliasesEffectSummary
<vault> <path>listreadList a directory in a vault (or show one file).
<vault> <path>downloadreadDownload a file from a vault.
<vault> <local> <path>uploadwriteUpload a local file into a vault, encrypted like a web upload.
<vault> <path>writeCreate a folder in a vault.
<vault> <from> <to>move, renamewriteMove or rename a file, link or folder in a vault.
<vault> <path>remove, deletedestructiveDelete 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]
vh fs ls
OptionAliasesTypeDefaultSummary
id or nameUser ID or username of the vault owner (required if using name).

vh fs get

vh fs get <vault> <path> [--owner id|name] [--output <file>]

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 get
OptionAliasesTypeDefaultSummary
id or nameUser ID or username of the vault owner (required if using name).
-ofileWrite to this local file (written by vh, atomically, only if the whole file arrived intact); - for stdout.

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.

vh fs put
OptionAliasesTypeDefaultSummary
id or nameUser ID or username of the vault owner (required if using name).
flagReplace 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.

vh fs mkdir
OptionAliasesTypeDefaultSummary
id or nameUser 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.

vh fs mv
OptionAliasesTypeDefaultSummary
id or nameUser 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.

vh fs rm
OptionAliasesTypeDefaultSummary
id or nameUser ID or username of the vault owner (required if using name).
-rflagRemove a folder that isn't empty, with everything in it.