Skip to content

Commands Overview

NextDNS Blocker provides a comprehensive set of commands organized into logical groups.

nextdns-blocker [OPTIONS] COMMAND [ARGS]
OptionDescription
--versionShow version and exit
--no-colorDisable colored output
--helpShow help message
CommandDescription
initInitialize configuration with interactive wizard
config validateValidate configuration files before deployment
completionGenerate shell completion script
CommandDescription
config pushSynchronize domain states based on schedules
statusShow current blocking status
unblockRequest manual domain unblock
updateCheck for and install updates
CommandDescription
healthRun system health checks
fixAuto-repair common issues
statsShow usage statistics
test-notificationsTest Discord integration
uninstallCompletely remove NextDNS Blocker

Manage configuration files.

SubcommandDescription
config showDisplay current configuration
config editOpen config in editor
config validateValidate configuration syntax
config setSet configuration values
config pushSynchronize domain states based on schedules
config diffShow differences between local and remote
config pullFetch domains from NextDNS to local config

Manage automatic synchronization.

SubcommandDescription
watchdog statusCheck scheduler status
watchdog installCreate scheduled sync jobs
watchdog uninstallRemove scheduled jobs
watchdog enableRe-enable after disable
watchdog disableTemporarily disable

Emergency lockdown mode.

SubcommandDescription
panic MINUTESActivate panic mode
panic statusCheck panic mode status
panic extendExtend panic duration

Manage pending unblock actions.

SubcommandDescription
pending listList pending actions
pending showShow action details
pending cancelCancel pending action

Manage domain categories.

SubcommandDescription
category listList all categories
category showShow category details
category createCreate new category
category addAdd domain to category
category removeRemove domain from category
category deleteDelete category

Manage NextDNS Parental Control.

SubcommandDescription
nextdns listList configured items
nextdns statusShow Parental Control status
nextdns add-categoryActivate category
nextdns remove-categoryDeactivate category
nextdns add-serviceActivate service
nextdns remove-serviceDeactivate service
nextdns categoriesShow valid category IDs
nextdns servicesShow valid service IDs

Manage NextDNS denylist (blocked domains).

SubcommandDescription
denylist listList all denylist domains
denylist addAdd domains to denylist
denylist removeRemove domains from denylist
denylist exportExport to JSON or CSV
denylist importImport from file

Manage NextDNS allowlist (whitelisted domains).

SubcommandDescription
allowlist listList all allowlist domains
allowlist addAdd domains to allowlist
allowlist removeRemove domains from allowlist
allowlist exportExport to JSON or CSV
allowlist importImport from file
CommandDescription
allowAdd domain to allowlist
disallowRemove domain from allowlist

Manage addiction protection features.

SubcommandDescription
protection statusShow protection status and locked items
protection unlock-requestRequest to unlock a protected item
protection cancelCancel a pending unlock request
protection listList pending unlock requests
protection pin setSet or change PIN
protection pin statusShow PIN status
protection pin verifyVerify PIN and start session
protection pin removeRemove PIN (with 24h delay)

View usage statistics and patterns.

SubcommandDescription
statsShow summary statistics
stats domainsShow top blocked domains
stats hoursShow hourly activity patterns
stats actionsShow action breakdown
stats exportExport to CSV
Terminal window
# Initialize configuration
nextdns-blocker init
# Install scheduler
nextdns-blocker watchdog install
# Verify setup
nextdns-blocker status
Terminal window
# Check what's blocked
nextdns-blocker status
# Emergency mode
nextdns-blocker panic 60
Terminal window
# Edit domains
nextdns-blocker config edit
# Force sync now
nextdns-blocker config push
# Check watchdog
nextdns-blocker watchdog status
Terminal window
# Validate config
nextdns-blocker config validate
# Preview changes
nextdns-blocker config push --dry-run
# Verbose output
nextdns-blocker config push -v
# Run health checks
nextdns-blocker health
# Auto-fix common issues
nextdns-blocker fix
# View usage statistics
nextdns-blocker stats
# Test Discord notifications
nextdns-blocker test-notifications
Terminal window
# Bash
eval "$(nextdns-blocker completion bash)"
# Zsh
eval "$(nextdns-blocker completion zsh)"
# Fish
nextdns-blocker completion fish > ~/.config/fish/completions/nextdns-blocker.fish
CodeMeaning
0Success
1General error
2Configuration error
3API error
4Validation error

See Exit Codes Reference for complete details.