# Your stuff — safe
127.0.0.1 localhost #### hostfile >>>>>
192.168.1.100 web.local api.local
#### hostfile <<<<<
# Your stuff — safe
127.0.0.1 localhost #### hostfile >>>>>
192.168.1.100 web.local api.local
#### hostfile <<<<<
# Your stuff — safe
127.0.0.1 localhost #### hostfile >>>>>
192.168.1.100 web.local api.local
#### hostfile <<<<<
# Export
hostfile show --json
# {"192.168.1.100": ["web.local", "api.local"]} # Import via pipeline
echo '{"10.0.0.1":["db.local"]}' | hostfile merge - # Sync between machines
hostfile show --json | ssh prod hostfile apply -
# Export
hostfile show --json
# {"192.168.1.100": ["web.local", "api.local"]} # Import via pipeline
echo '{"10.0.0.1":["db.local"]}' | hostfile merge - # Sync between machines
hostfile show --json | ssh prod hostfile apply -
# Export
hostfile show --json
# {"192.168.1.100": ["web.local", "api.local"]} # Import via pipeline
echo '{"10.0.0.1":["db.local"]}' | hostfile merge - # Sync between machines
hostfile show --json | ssh prod hostfile apply -
# Install (macOS/Linux)
-weight: 500;">curl -fsSL https://raw.githubusercontent.com/vulcanshen/hostfile/main/-weight: 500;">install.sh | sh # Add entries
hostfile add 192.168.1.100 web.local api.local # Save a snapshot before making changes
hostfile save before-migration # Roll back if needed
hostfile load before-migration # Done with this setup
hostfile clean
# Install (macOS/Linux)
-weight: 500;">curl -fsSL https://raw.githubusercontent.com/vulcanshen/hostfile/main/-weight: 500;">install.sh | sh # Add entries
hostfile add 192.168.1.100 web.local api.local # Save a snapshot before making changes
hostfile save before-migration # Roll back if needed
hostfile load before-migration # Done with this setup
hostfile clean
# Install (macOS/Linux)
-weight: 500;">curl -fsSL https://raw.githubusercontent.com/vulcanshen/hostfile/main/-weight: 500;">install.sh | sh # Add entries
hostfile add 192.168.1.100 web.local api.local # Save a snapshot before making changes
hostfile save before-migration # Roll back if needed
hostfile load before-migration # Done with this setup
hostfile clean
# macOS / Linux
-weight: 500;">brew -weight: 500;">install vulcanshen/tap/hostfile # Windows
irm https://raw.githubusercontent.com/vulcanshen/hostfile/main/-weight: 500;">install.ps1 | iex
# macOS / Linux
-weight: 500;">brew -weight: 500;">install vulcanshen/tap/hostfile # Windows
irm https://raw.githubusercontent.com/vulcanshen/hostfile/main/-weight: 500;">install.ps1 | iex
# macOS / Linux
-weight: 500;">brew -weight: 500;">install vulcanshen/tap/hostfile # Windows
irm https://raw.githubusercontent.com/vulcanshen/hostfile/main/-weight: 500;">install.ps1 | iex