{"id":22908908,"url":"https://github.com/nrempel/locdev","last_synced_at":"2025-05-08T23:08:51.909Z","repository":{"id":169459121,"uuid":"645445996","full_name":"nrempel/locdev","owner":"nrempel","description":"locdev is a handy CLI tool that simplifies the process of adding, removing, and listing entries in the hosts file. ","archived":false,"fork":false,"pushed_at":"2024-06-03T17:08:30.000Z","size":47,"stargazers_count":26,"open_issues_count":5,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-08T23:08:44.823Z","etag":null,"topics":["cli","command-line","command-line-tool","hosts","hosts-file","localhost"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nrempel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-25T17:08:19.000Z","updated_at":"2025-02-04T21:18:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"3031d210-ce5b-4d87-9b10-010c6f02b2ca","html_url":"https://github.com/nrempel/locdev","commit_stats":null,"previous_names":["nrempel/locdev"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nrempel%2Flocdev","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nrempel%2Flocdev/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nrempel%2Flocdev/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nrempel%2Flocdev/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nrempel","download_url":"https://codeload.github.com/nrempel/locdev/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253160777,"owners_count":21863629,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","command-line","command-line-tool","hosts","hosts-file","localhost"],"created_at":"2024-12-14T03:33:13.351Z","updated_at":"2025-05-08T23:08:51.893Z","avatar_url":"https://github.com/nrempel.png","language":"Rust","readme":"# locdev 🛠️\n\n[![Crates.io](https://img.shields.io/crates/v/locdev.svg)](https://crates.io/crates/locdev)\n[![GitHub Actions](https://github.com/nrempel/locdev/actions/workflows/rust.yml/badge.svg)](https://github.com/nrempel/locdev/actions)\n[![GitHub Releases](https://img.shields.io/github/release/nrempel/locdev.svg)](https://github.com/nrempel/locdev/releases)\n\nlocdev is a handy CLI tool that simplifies the process of adding, removing, and\nlisting entries in the hosts file. You no longer need to deal with manual and\nerror-prone editing. Now, it's as simple as running a command.\n\n## Features\n\n- Add entries to the hosts file\n- Remove entries from the hosts file\n- Print the current entries in the hosts file\n\n## Installation\n\n### Download Compiled Binaries\n\nYou can download the compiled binaries for locdev from the\n[GitHub Releases](https://github.com/nrempel/locdev/releases) page. Choose the\nbinary that corresponds to your operating system and architecture, and place it\nin a directory included in your system's `PATH` environment variable.\n\n### Install with Cargo\n\nTo install locdev using Cargo, you'll need to have\n[Rust](https://www.rust-lang.org/tools/install) installed on your system. Once\nRust is installed, you can install locdev with Cargo:\n\n```bash\ncargo install locdev\n```\n\n## Usage\n\n```bash\nlocdev [COMMAND]\n```\n\n### Commands\n\n- `add \u003cip\u003e \u003chostname\u003e`: Add an entry to the hosts file with the specified IP\n  and hostname\n- `remove \u003cip\u003e \u003chostname\u003e`: Remove the entry with the specified IP and hostname\n  from the hosts file\n- `list`: Print the current entries in the hosts file\n\n## Examples\n\nAdd an entry to the hosts file:\n\n```bash\nsudo locdev add 127.0.0.1 dev.local\n```\n\nRemove an entry from the hosts file:\n\n```bash\nsudo locdev remove 127.0.0.1 dev.local\n```\n\nPrint the current entries in the hosts file:\n\n```bash\nlocdev list\n```\n\n## Note\n\nYou need to use `sudo` to execute the `add` and `remove` commands, as the hosts\nfile requires administrator privileges to modify its contents.\n\n## License\n\nThis project is available under the MIT License.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnrempel%2Flocdev","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnrempel%2Flocdev","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnrempel%2Flocdev/lists"}