Forrest logo
tool overview
On this page you find all important commands for the CLI tool networksetup. If the command you are looking for is missing please ask our AI.

networksetup

networksetup is a command line tool available on macOS used for managing network configurations. It allows users to configure various network settings, such as Wi-Fi, Ethernet, VPN, and DNS. This tool supports both wired and wireless network interfaces. With networksetup, users can enable or disable network services, change network locations, and set proxy servers. It also provides options to join wireless networks, display current network configurations, and retrieve network information such as IP addresses and network statistics. Additionally, networksetup allows users to manage network devices, including creating, deleting, and modifying network service configurations. Networksetup is a powerful tool for network administrators and advanced users who prefer managing network settings through the command line interface.

List of commands for networksetup:

  • networksetup:tldr:9c0a3 networksetup: Connect to a particular Wi-Fi network.
    $ networksetup -setairportnetwork ${en0} ${Airport Network SSID} ${password}
    try on your machine
    explain this command
  • networksetup:tldr:a7eb2 networksetup: Get currently connected Wi-Fi network name (Wi-Fi device usually en0 or en1).
    $ networksetup -getairportnetwork ${en0}
    try on your machine
    explain this command
  • networksetup:tldr:b50e6 networksetup: List available network service providers (Ethernet, Wi-Fi, Bluetooth, etc).
    $ networksetup -listallnetworkservices
    try on your machine
    explain this command
  • networksetup:tldr:fff15 networksetup: Show network settings for a particular networking device.
    $ networksetup -getinfo "${Wi-Fi}"
    try on your machine
    explain this command
tool overview