Skip to content

hosts add

vpd hosts add

Add a host entry to a profile

Synopsis

Add a host entry to a profile. Creates the profile if it doesn't exist.

Examples: vpd hosts add myproject 127.0.0.1 myapp.local vpd hosts add myproject 127.0.0.1 myapp.local api.local cdn.local

vpd hosts add <profile> <ip> <hostname> [aliases...] [flags]

Options

  -f, --file string   Path to hosts file (default "/etc/hosts")
  -h, --help          help for add

SEE ALSO

  • vpd hosts - Manage /etc/hosts file profiles
Auto generated by spf13/cobra on 26-Mar-2026