Command Reference¶
nsyte provides a comprehensive set of commands for managing nostr sites. Each command is documented in detail on its own page.
Core Commands¶
Project Management¶
nsyte init
— Initialize a new nsyte project with configurationnsyte validate
— Validate your nsyte configuration file
File Operations¶
nsyte deploy
— Deploy files to nostr relays and blossom serversnsyte ls
— List published filesnsyte browse
— Interactive TUI browser for managing filesnsyte download
— Download published filesnsyte purge
— Remove published files
Development¶
nsyte serve
— Serve files locally for developmentnsyte run
— Run resolver server with npub subdomainsnsyte debug
— Debug nsites by checking relays and servers
Authentication¶
nsyte bunker
— Manage NIP-46 bunker connectionsnsyte ci
— Generate CI/CD credentials (nbunksec)
Legacy¶
nsyte upload
— DEPRECATED: Usedeploy
instead
Global Options¶
These options are available for all commands:
--help
— Show help information--version
— Show version information--verbose
— Enable verbose output--quiet
— Suppress all output except errors
Authentication Options¶
Many commands support these authentication options:
-k, --privatekey <nsec>
— Private key (nsec/hex) for signing-b, --bunker <url>
— NIP-46 bunker URL for signing--nbunksec <nbunksec>
— NIP-46 bunker encoded as nbunksec
Configuration¶
nsyte uses a configuration file at .nsite/config.json
which can store:
- Default relays
- Default blossom servers
- Bunker connections
- Project metadata
Use nsyte init
to create a new configuration or nsyte validate
to check an existing one.
Environment Variables¶
NSITE_CONFIG
— Path to configuration file (default:.nsite/config.json
)NSITE_RELAYS
— Comma-separated list of relay URLsNSITE_SERVERS
— Comma-separated list of server URLsNSITE_BUNKER
— Bunker connection stringNSITE_NBUNKSEC
— nbunksec string for authentication
Exit Codes¶
0
— Success1
— General error2
— Configuration error3
— Authentication error4
— Network error5
— File system error
Getting Started¶
-
Initialize a new project:
-
Deploy your site:
-
View your published files:
Common Workflows¶
Publishing a Website¶
# Initialize project
nsyte init
# Deploy files
nsyte deploy ./dist --publish-profile --publish-relay-list
# Verify deployment
nsyte ls
Managing Files¶
# Interactive file browser
nsyte browse
# List files in terminal
nsyte ls
# Remove specific files
nsyte purge --paths "*.old" --include-blobs
CI/CD Integration¶
# Generate CI credentials
nsyte ci
# Use in CI pipeline
nsyte deploy ./dist --nbunksec $NSYTE_NBUNKSEC