GhostFS
Reference

CLI Commands

Complete GhostFS command reference

CLI Commands

server

Start the RPC server.

ghostfs server [options]
OptionDescriptionDefault
--root, -rRoot directory to serve~/.ghostfs/root
--bind, -bAddress to bind127.0.0.1
--port, -pPort to listen on3444
--key, -kTLS private key file
--cert, -TTLS certificate file
--acmeEnable Let's Encrypt auto TLSfalse
--acme-domainDomain name for certificate
--acme-emailEmail for Let's Encrypt
--webAlso start HTTP web serverfalse
--http-portHTTP port for web UI8080
--http-staticStatic files directory

web

Start a standalone HTTP web server for browser-based file management.

ghostfs web [options]
OptionDescriptionDefault
--root, -rRoot directory to serve~/.ghostfs/root
--bind, -bAddress to bind127.0.0.1
--http-portHTTP port8080
--http-staticStatic files directory
--key, -kTLS private key file
--cert, -TTLS certificate file
--acmeEnable Let's Encrypt auto TLSfalse
--acme-domainDomain name for certificate
--acme-emailEmail for Let's Encrypt

mount

Mount a remote filesystem.

ghostfs mount <mountpoint> [options]
OptionDescriptionDefault
--host, -HServer hostname127.0.0.1
--port, -pServer port3444
--user, -uUsername
--token, -tAuthentication token
--encrypt, -eEnable encryptionfalse
--encryption-keyPath to encryption key
--write-back, -wWrite cache size64
--read-ahead, -CRead-ahead blocks8
--key, -kTLS private key
--cert, -TTLS certificate

auth

Manage authentication tokens.

ghostfs auth <subcommand> [options]

auth add

ghostfs auth add --user <username> [--token <token>]

auth list

ghostfs auth list

auth revoke

ghostfs auth revoke --token <token>

share

Manage file sharing.

ghostfs share <subcommand> [options]

share create

ghostfs share create --path <path> --name <name>

share list

ghostfs share list [--owned] [--received]

share add-recipient

ghostfs share add-recipient --id <share-id> --user <username>

share mount

ghostfs share mount --id <share-id> --mount-path <path>

share revoke

ghostfs share revoke --id <share-id>

admin

Administrative commands.

ghostfs admin <subcommand> [options]

admin generate-key

ghostfs admin generate-key <output-path>

cp

Copy files between local and remote.

ghostfs cp <source> <destination> [options]
OptionDescription
--host, -HServer hostname
--user, -uUsername
--token, -tToken

On this page