files — high-level file management
A convenience wrapper over Blossom that auto-resolves user server lists and
handles sha256-in-URL detection transparently. See the
files usecase. For lower-level control, use the
blossom command.
ndk files <sub-command> [args]
Options
Examples
# upload to your default blossom servers (requires login for signing)
ndk accounts login nsec nsec1...
ndk files upload ~/photos/cat.jpg
# download a blossom URL to disk
ndk files download "https://cdn.example.com/<sha256>.jpg" ~/out.jpg
# delete by sha256
ndk files delete 0123...abcdef
# check that a URL resolves to an alive server
ndk files check "https://cdn.example.com/<sha256>.jpg" --pubkey npub1...