locdev 🛠️

Crates.io GitHub Actions GitHub Releases

locdev is a handy CLI tool that simplifies the process of adding, removing, and listing entries in the hosts file. You no longer need to deal with manual and error-prone editing. Now, it's as simple as running a command.

Features

Installation

Download Compiled Binaries

You can download the compiled binaries for locdev from the GitHub Releases page. Choose the binary that corresponds to your operating system and architecture, and place it in a directory included in your system's PATH environment variable.

Install with Cargo

To install locdev using Cargo, you'll need to have Rust installed on your system. Once Rust is installed, you can install locdev with Cargo:

bash cargo install locdev

Usage

bash locdev [COMMAND]

Commands

Examples

Add an entry to the hosts file:

bash sudo locdev add 127.0.0.1 dev.local

Remove an entry from the hosts file:

bash sudo locdev remove 127.0.0.1 dev.local

Print the current entries in the hosts file:

bash locdev list

Note

You need to use sudo to execute the add and remove commands, as the hosts file requires administrator privileges to modify its contents.

License

This project is available under the MIT License.