{"id":26973943,"url":"https://github.com/ppech/dotnet-hostsctl","last_synced_at":"2026-02-12T04:57:02.424Z","repository":{"id":241917551,"uuid":"805194178","full_name":"ppech/dotnet-hostsctl","owner":"ppech","description":"Easily manage the hosts file using the .net command-line tool","archived":false,"fork":false,"pushed_at":"2025-01-01T09:59:08.000Z","size":56,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-02T15:16:14.250Z","etag":null,"topics":["cli","dotnet","hosts","hosts-file","hostsfile","tool"],"latest_commit_sha":null,"homepage":"","language":"C#","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/ppech.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":"2024-05-24T04:32:47.000Z","updated_at":"2025-01-01T09:57:18.000Z","dependencies_parsed_at":"2025-01-01T10:41:22.698Z","dependency_job_id":"5300f4e7-214e-4389-b4b5-bd3b75f6a103","html_url":"https://github.com/ppech/dotnet-hostsctl","commit_stats":null,"previous_names":["ppech/dotnet-hostsctl"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppech%2Fdotnet-hostsctl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppech%2Fdotnet-hostsctl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppech%2Fdotnet-hostsctl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppech%2Fdotnet-hostsctl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ppech","download_url":"https://codeload.github.com/ppech/dotnet-hostsctl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246981165,"owners_count":20863828,"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","dotnet","hosts","hosts-file","hostsfile","tool"],"created_at":"2025-04-03T10:19:41.940Z","updated_at":"2026-02-12T04:56:57.402Z","avatar_url":"https://github.com/ppech.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `hostsctl`\n    \n[![NuGet](https://img.shields.io/nuget/v/ppech.dotnet.hostsctl)](https://www.nuget.org/packages/ppech.dotnet.hostsctl/)\n[![License](https://img.shields.io/github/license/ppech/dotnet-hostsctl)](LICENSE)\n\n`hostsctl` is a command-line tool for managing your system's hosts file. It provides commands for:\n- list entries\n- exists of entry\n- add, remove, enable, and disable entries\n- backup and restore hosts file\n\nWith the ability to use a template file to save entries within your project.\n\nWith options you can specify:\n- specify a custom input/output file\n- use JSON output format\n\n## Table of Contents\n\n- [Features](#features)\n- [Commands](#commands)\n- [Options](#options)\n- [Installation](#installation)\n- [Build with](#build-with)\n- [License](#license)\n\n## Commands\n\n* `list` list the entries in the hosts file\n* `backup` backups the hosts file\n* `restore` restores the hosts file from a backup\n* `add \u003chostname\u003e` adds entry to the hosts file\n* `remove \u003chostname\u003e` removes entry from hosts file\n* `enable \u003chostname\u003e` enables entry in hosts file\n* `disable \u003chostname\u003e` disables entry in hosts file\n* `exists \u003chostname\u003e` checks if entry exists in hosts file\n* `open` opens hosts file (using shell execute) - Windows only\n* `template`\n  * `new` creates a new template file\n  * `list` list the entries in the template file\n  * `add \u003chostname\u003e` adds entry to the template file\n  * `remove \u003chostname\u003e` removes entry from template file\n  * `apply` applies the template file to the hosts file\n\n## Options\n\n* `-i|--input \u003cfile\u003e`: path of input file, default value depends on operating system\n* `-o|--output \u003cfile\u003e`: path of output file, default value is same as input file\n* `-t|--template \u003ctemplate\u003e`: path of template file, default value is hosts.ht in working directory\n* `-j|--json`: output as JSON\n* `\u003chostname\u003e`: host name, ex. app.mydomain.local\n* `[ip]`: ip address, default is 127.0.0.1\n\n## Installation\n\nYou can install it using the `dotnet tool install ppech.dotnet.hostsctl --global` command.\n\nTo update `dotnet.hostsctl` to the latest version, use the `dotnet tool update` command.\n\n## Build with\n\n* https://github.com/spectreconsole/spectre.console\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppech%2Fdotnet-hostsctl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fppech%2Fdotnet-hostsctl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppech%2Fdotnet-hostsctl/lists"}