[![Tests][tests-badge]][tests-link] [![GitHub Release][release-badge]][release-link] [![Go Report Card][report-badge]][report-link] [![License][license-badge]][license-link] [![All Contributors][all-contributors-badge]][all-contributors-link] [![Coverage][coverage-badge]][coverage-link] [![Mentioned in Awesome Go][awesome-go-badge]][awesome-go-link] # hostctl [![Your dev tool to manage /etc/hosts like a pro!](docs/hostctl.png)](http://guumaster.github.io/hostctl/) This tool gives you more control over the use of your hosts file. You can have multiple profiles and switch them on/off as you need. ## Why? It is a tedious task to handle the `hosts` file by editing manually. With this tool you can automate some aspects to do it cleaner and quick. ## Features * Manage groups of host names by profile. * Enable/disable complete profiles. * Add/remove groups of host names. * Add profiles directly from a text file that you can add to your git repo or any VCS. * Sync a profile with Docker or Docker Compose containers. ## Documentation You can read about how to use this tool here: * [Getting started guide](http://guumaster.github.io/hostctl/docs/getting-started/) * [Usage Guides](http://guumaster.github.io/hostctl/docs/guides/) * [CLI commands, options and flags](http://guumaster.github.io/hostctl/docs/cli-usage/) Or you can start directly on the [Docs homepage](http://guumaster.github.io/hostctl/). ## Sample Usage ![sample usage](docs/hostctl.gif) ## Installation Go to [release page](https://github.com/guumaster/hostctl/releases) and download the binary you prefer. Or read about other installation methods on different systems [here](http://guumaster.github.io/hostctl/docs/installation/) ## Linux/Mac/Windows and permissions The tool recognize your system and use the right hosts file, it will use `/etc/hosts` on Linux/Mac and `C:/Windows/System32/Drivers/etc/hosts` on Windows. **SUDO/ADMIN**: You will need permissions for any action that modify hosts file, add `sudo` to the commands below when needed. If you are on windows, make sure you run it as administrator. **WARNING**: it should work on any system. It's tested on Ubuntu and Windows 10. If you can confirm it works on other system, please let me know [here](https://github.com/guumaster/hostctl/issues/new). ## Contributing Be sure to read [CONTRIBUTING](CONTRIBUTING.md) and [CODE_OF_CONDUCT](CODE_OF_CONDUCT.md). ## Contributors ✨ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
George Kontridze 💻 |
Pacodes ⚠️ 💻 |
BarbUk 💻 🤔 |
Brett Mack 💻 |
Peter Thaleikis 💻 📖 |
simohamed 🤔 💻 |
Fabian Grutschus 🤔 |
Pablo Caderno 💻 |
Josh Brown 🐛 |
Lukas M 🐛 🤔 |