Skip to content

update

The update command checks for new versions and can automatically upgrade the installation.

Terminal window
nextdns-blocker update [OPTIONS]
OptionDescription
-y, --yesSkip confirmation prompt
--helpShow help message
Terminal window
nextdns-blocker update
Checking for updates...
Current version: 6.2.0
Latest 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.
Checking for updates...
Current version: 6.3.0
Latest version: 6.3.0
✓ You're running the latest version
Terminal window
nextdns-blocker update -y

Automatically installs updates without prompting.

If installed via pip, update uses:

Terminal window
pip install --upgrade nextdns-blocker

For Homebrew users, the command suggests:

You installed via Homebrew. Update with:
brew upgrade nextdns-blocker

For pipx users:

You installed via pipx. Update with:
pipx upgrade nextdns-blocker
Terminal window
nextdns-blocker --version

Output:

nextdns-blocker, version 6.3.0

The status command also shows version:

Terminal window
nextdns-blocker status | head -5

NextDNS Blocker can periodically check for updates in the background. This is not enabled by default.

  1. During sync, checks PyPI for latest version
  2. Compares with installed version
  3. If newer version exists, shows notification
  4. Does not auto-install

During normal commands, you might see:

nextdns-blocker config push
Syncing domains...
reddit.com: BLOCKED
Sync complete
💡 Update available: 6.3.0 (current: 6.2.0)
Run 'nextdns-blocker update' to upgrade

Currently, there’s only one release channel (stable). All releases go through:

  1. Development and testing
  2. Version bump
  3. PyPI release
  4. Homebrew formula update

View the full changelog:

After updating, regenerate shell completions:

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

Or reinstall from your shell config file.

Terminal window
# Use --user flag
pip install --user --upgrade nextdns-blocker
# Or use sudo (not recommended)
sudo pip install --upgrade nextdns-blocker

The installation directory might have changed. Reinstall:

Terminal window
pip uninstall nextdns-blocker
pip install nextdns-blocker

Homebrew formulas may lag behind PyPI. Options:

  1. Wait for formula update
  2. Install from PyPI instead:
    Terminal window
    brew uninstall nextdns-blocker
    pip install nextdns-blocker
Terminal window
# Check version
nextdns-blocker --version
# Test functionality
nextdns-blocker status
nextdns-blocker config push --dry-run

If an update causes issues:

Terminal window
pip install nextdns-blocker==6.1.0 # Specific version
Terminal window
# List available versions
brew info nextdns-blocker
# Reinstall specific version (if available)
brew install nextdns-blocker@6.1.0
Terminal window
git clone https://github.com/aristeoibarra/nextdns-blocker.git
cd nextdns-blocker
git checkout v6.1.0
pip install -e .