cadaver(1)

πŸ“¦
version 0.28 Β· 6 versions
, in alpine 3.24, arch rolling, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable

πŸ’… cadaver(1) β€” command-line WebDAV client, bestie edition ✨

πŸŽ€ NAME πŸŽ€

cadaver β€” A command-line WebDAV client for Unix. literally the group chat’s favorite way to talk WebDAV from a terminal. πŸ’»

✨ SYNOPSIS ✨

cadaver [-trp[-r file][-p host[:port]]][-V][-h] URL

🌸 DESCRIPTION 🌸

okay so cadaver supports file upload, download, on-screen display, namespace operations (move and copy), collection creation and deletion, and locking operations. yes bestie, all of that πŸ’…

Its operation is similar to the standard BSD ftp(1) client and the Samba Project’s smbclient(1). If you’re familiar with those tools, you should be quite comfortable here β€” same energy, WebDAV edition. 🫢

cadaver supports automatically logging in to servers requiring authentication via a .netrc file (similar to ftp(1) β€” see section "THE .netrc FILE" below). auto-login slay ✨

πŸ‘‘ OPTIONS πŸ‘‘

The URL passed must be an absolute URI using the http: or https URL scheme. No relative vibes allowed. 🚫

  • -t, --tolerant β€” Allow cd/open into non-WebDAV enabled collection; use if the server or proxy server has WebDAV compliance problems. be tolerant, bestie πŸ™ˆ
  • -r, --rcfile=file β€” Use this rcfile rather than the default of ~/.cadaverrc. customize ur setup πŸŽ€
  • -p, --proxy=host[:port] β€” Connect using the proxy host "host" and optional proxy port "port". proxy era 🌈
  • -V, --version β€” Display version information and exit. quick peep πŸ‘€
  • -h, --help β€” Display this help message and exit. help has entered the chat 🫢

πŸ› οΈ COMMAND REFERENCE πŸ› οΈ

  • ls [path] β€” List contents of current [or other] collection. window shopping ur files πŸ›οΈ
  • cd path β€” Change to specified collection. moving thru the folder-verse πŸ¦‹
  • pwd β€” Display name of current collection. where r we?? πŸ“
  • put local [remote] β€” Upload local file. send it up ⬆️
  • get remote [local] β€” Download remote resource. bring it down ⬇️
  • mget remote... β€” Download many remote resources. download haul πŸ›’
  • mput local... β€” Upload many local files. upload haul πŸ“¦
  • edit resource β€” Edit given resource. write ur little heart out ✍️
  • less remote... β€” Display remote resource through pager. pager moment πŸ“–
  • mkcol remote... β€” Create remote collection(s). make the folder, bestie πŸ“
  • cat remote... β€” Display remote resource(s). cat but make it remote 🐈
  • delete remote... β€” Delete non-collection resource(s). bye non-folder things πŸ’€
  • rmcol remote... β€” Delete remote collections and ALL contents. ALL contents, no cap β€” this is the spicy one 🌢️
  • copy source... dest β€” Copy resource(s) from source to dest. copy-paste energy πŸ“‹
  • move source... dest β€” Move resource(s) from source to dest. relocation station 🚚
  • lock resource β€” Lock given resource. claimed, do not touch πŸ”’
  • unlock resource β€” Unlock given resource. release the lock πŸ”“
  • discover resource β€” Display lock information for resource. lock lore πŸ”
  • steal resource β€” Steal lock token for resource. steal the token, iconic behavior 😈
  • showlocks β€” Display list of owned locks. lock inventory 🧾
  • propnames res β€” Names of properties defined on resource. property names, collected 🏷️
  • chexec [+|-] remote β€” Change isexecutable property of resource. executable era βš™οΈ
  • propget res [propname] β€” Retrieve properties of resource. get those props 🎁
  • propset res propname value β€” Set property on resource. set the prop, set the vibe πŸ’…
  • set [option] [value] β€” Set an option, or display options. tune ur settings πŸŽ›οΈ
  • open URL β€” Open connection to given URL. open the connection portal 🌐
  • close β€” Close current connection. hang up πŸ“΄
  • quit β€” Exit program. peace out πŸ‘‹
  • unset [option] [value] β€” Unsets or clears value from option. clear the setting 🧽
  • lcd [directory] β€” Change local working directory. local folder hop πŸ‡
  • lls [options] β€” Display local directory listing. local listing, local vibes πŸ“‚
  • lpwd β€” Print local working directory. local location check πŸ“
  • logout β€” Logout of authentication session. log out, log off, bye auth πŸšͺ
  • help [command] β€” Display help message. help has entered the chat, again 🫢

πŸ“ THE .netrc FILE πŸ“

The file ~/.netrc may be used to automatically login to a server requiring authentication. The following tokens (separated by spaces, tabs or newlines) may be used:

  • machine host β€” Identify a remote machine host which is compared with the hostname given on the command line or as an argument to the open command. Any subsequent tokens up to the end of file or the next machine or default token are associated with this entry. machine match moment 🏠
  • default β€” This is equivalent to the machine token but matches any hostname. Only one default token may be used and it must be after all machine tokens. default is the catch-all, but only one, and it goes last ⚠️
  • login username β€” Specifies the username to use when logging in to the remote machine. ur login πŸ‘€
  • password string, passwd string β€” Specifies the password to use when logging in to the remote machine. password/passwd, both slay πŸ”‘
  • Any other tokens (as described in ftp(1)) are ignored. not invited to the party πŸ™…

🌈 EXAMPLES 🌈

  • cadaver http://myserver.example.com/ β€” Connects to the server myserver.example.com, opening the root collection. root collection realness 🏑
  • cadaver http://zope.example.com:8022/Users/fred/ β€” Connects to the server zope.example.com using port 8022, opening the collection "/Users/fred/". port 8022 + specific collection, very demure πŸŽ€
  • cadaver https://secure.example.com/ β€” Connects to a server called secure.example.com using SSL. SSL secure era πŸ”

πŸ“ FILES πŸ“

  • ~/.cadaverrc β€” Individual user settings that can override cadaver defaults and to script cadaver. Can be changed by the "--rcfile" option. ur personal config, ur rules πŸŽ€
  • ~/.netrc β€” Login and initialization information used by the auto-login process. See section "THE .netrc FILE" for details. auto-login details live above πŸ”‘

πŸ‘‘ AUTHOR πŸ‘‘

Joe Orton <https://github.com/notroj/cadaver> β€” author icon ✨

πŸ’œ SEE ALSO πŸ’œ

ftp(1), smbclient(1) β€” the cousins 🫢


πŸ’– From the Unix User Manuals, October 2022, cadaver(1) β€” that’s the tea, bestie. Go forth and WebDAV! 🫢✨