hostctl
command-line manager for /etc/hosts profiles and entries
hostctl is a command-line tool for editing the hosts file on a computer. It lets developers add, remove and switch between sets of host entries without opening the system file by hand, which is useful when testing sites or services against local addresses.
The tool is written in Go and released under the MIT license, with the source code published on GitHub. The maker also has a project website. The facts provided do not list supported operating systems or a pricing model, so those details are not covered here.
Alternatives to hostctl
Products that do a similar job in Developer Tools.
bore
Command line tool for TCP tunnels to localhost
SwitchHosts
Manage and switch between hosts file profiles on macOS
Windows Terminal
Command-line terminal app and console host for Windows
fzf
Command-line fuzzy finder for lists of files, history and any text
lazygit
Terminal UI for running git commands with keyboard shortcuts
ripgrep
command-line search tool that finds regex matches across directory trees
Alacritty
GPU-accelerated terminal emulator for Linux, macOS, Windows and BSD
bat
command-line file viewer with syntax highlighting and git integration