ls¶
List files available on the nostr network for a given public key. This command shows which files
have been published to nostr relays and indicates which files would be ignored based on local
.nsite-ignore rules.
Usage¶
Options¶
-r, --relays <relays>— The nostr relays to use (comma separated). If not specified, uses relays from project config or default discovery relays-k, --privatekey <nsec>— The private key (nsec/hex) to use for authentication-p, --pubkey <npub>— The public key to list files for (if not using private key)
Examples¶
List files using project config:
List files for a specific public key:
List files using a private key:
Authentication¶
The ls command supports multiple authentication methods:
- Explicit pubkey - Use
--pubkeyto list files for any public key - Private key - Use
--privatekeyto authenticate with your private key - Project bunker - Uses the bunker configured in
.nsite/config.json - Interactive mode - If no key is provided, you'll be prompted to:
- Generate a new private key
- Enter an existing private key
- Use an existing NSEC bunker
- Connect to a new NSEC bunker (redirects to
nsyte bunker connect)
Ignore Rules¶
Files marked in red in the output would be ignored during upload based on:
- Default ignore patterns (
.git/**,node_modules/**, etc.) - Custom patterns in
.nsite-ignorefile - Implicit dotfile ignoring (except
.well-known/)
This helps you understand which remote files would not be re-deployed in a subsequent nsyte deploy
command.