CLI Usage (original) (raw)
hostctl
Your dev tool to manage /etc/hosts like a pro
Synopsis
hostctl is a CLI tool to manage your hosts file with ease.
You can have multiple profiles, enable/disable exactly what
you need each time with a simple interface.
Options
-c, --column strings Column names to show on lists. comma separated
-h, --help help for hostctl
--host-file string Hosts file path (default "/etc/hosts")
--no-color force colorless output
-o, --out string Output type (table|raw|markdown|json) (default "table")
-q, --quiet Run command without output
--raw Output without borders (same as -o raw)
SEE ALSO
- hostctl add - Add content to a profile in your hosts file.
- hostctl backup - Creates a backup copy of your hosts file
- hostctl disable - Disable a profile from your hosts file.
- hostctl enable - Enable a profile on your hosts file.
- hostctl list - Shows a detailed list of profiles on your hosts file.
- hostctl remove - Remove a profile from your hosts file.
- hostctl replace - Replace content to a profile in your hosts file.
- hostctl restore - Restore hosts file content from a backup file.
- hostctl status - Shows a list of profile names and statuses on your hosts file.
- hostctl sync - Sync some system IPs with a profile.
- hostctl toggle - Change status of a profile on your hosts file.
Auto generated by spf13/cobra