update
The update command checks for new versions and can automatically upgrade the installation.
nextdns-blocker update [OPTIONS]Options
Section titled “Options”| Option | Description |
|---|---|
-y, --yes | Skip confirmation prompt |
--help | Show help message |
Examples
Section titled “Examples”Check for Updates
Section titled “Check for Updates”nextdns-blocker updateOutput (Update Available)
Section titled “Output (Update Available)”Checking for updates...
Current version: 6.2.0Latest version: 6.3.0
Release notes: - Added categories support for domain grouping - Added NextDNS native categories and services support - Docker development experience improvements
Update to 6.3.0? [y/N]: y
Updating...✓ Updated to version 6.3.0
Restart your terminal to use the new version.Output (Up to Date)
Section titled “Output (Up to Date)”Checking for updates...
Current version: 6.3.0Latest version: 6.3.0
✓ You're running the latest versionSkip Confirmation
Section titled “Skip Confirmation”nextdns-blocker update -yAutomatically installs updates without prompting.
Update Methods
Section titled “Update Methods”pip Installation
Section titled “pip Installation”If installed via pip, update uses:
pip install --upgrade nextdns-blockerHomebrew Installation
Section titled “Homebrew Installation”For Homebrew users, the command suggests:
You installed via Homebrew. Update with: brew upgrade nextdns-blockerpipx Installation
Section titled “pipx Installation”For pipx users:
You installed via pipx. Update with: pipx upgrade nextdns-blockerVersion Checking
Section titled “Version Checking”Check Current Version
Section titled “Check Current Version”nextdns-blocker --versionOutput:
nextdns-blocker, version 6.3.0Version in Status
Section titled “Version in Status”The status command also shows version:
nextdns-blocker status | head -5Automatic Update Checks
Section titled “Automatic Update Checks”NextDNS Blocker can periodically check for updates in the background. This is not enabled by default.
How It Works
Section titled “How It Works”- During sync, checks PyPI for latest version
- Compares with installed version
- If newer version exists, shows notification
- Does not auto-install
Notification Example
Section titled “Notification Example”During normal commands, you might see:
nextdns-blocker config push
Syncing domains... reddit.com: BLOCKEDSync complete
💡 Update available: 6.3.0 (current: 6.2.0) Run 'nextdns-blocker update' to upgradeRelease Channels
Section titled “Release Channels”Currently, there’s only one release channel (stable). All releases go through:
- Development and testing
- Version bump
- PyPI release
- Homebrew formula update
Changelog
Section titled “Changelog”View the full changelog:
Shell Completion
Section titled “Shell Completion”Updating Completions
Section titled “Updating Completions”After updating, regenerate shell completions:
# Basheval "$(nextdns-blocker completion bash)"
# Zsheval "$(nextdns-blocker completion zsh)"
# Fishnextdns-blocker completion fish > ~/.config/fish/completions/nextdns-blocker.fishOr reinstall from your shell config file.
Troubleshooting
Section titled “Troubleshooting”Update fails with permission error
Section titled “Update fails with permission error”# Use --user flagpip install --user --upgrade nextdns-blocker
# Or use sudo (not recommended)sudo pip install --upgrade nextdns-blockerCommand not found after update
Section titled “Command not found after update”The installation directory might have changed. Reinstall:
pip uninstall nextdns-blockerpip install nextdns-blockerHomebrew version behind
Section titled “Homebrew version behind”Homebrew formulas may lag behind PyPI. Options:
- Wait for formula update
- Install from PyPI instead:
Terminal window brew uninstall nextdns-blockerpip install nextdns-blocker
Verify installation after update
Section titled “Verify installation after update”# Check versionnextdns-blocker --version
# Test functionalitynextdns-blocker statusnextdns-blocker config push --dry-runRolling Back
Section titled “Rolling Back”If an update causes issues:
pip install nextdns-blocker==6.1.0 # Specific versionHomebrew
Section titled “Homebrew”# List available versionsbrew info nextdns-blocker
# Reinstall specific version (if available)brew install nextdns-blocker@6.1.0From Source
Section titled “From Source”git clone https://github.com/aristeoibarra/nextdns-blocker.gitcd nextdns-blockergit checkout v6.1.0pip install -e .