Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stevelacey/wifi-cli-macos
📡️ Wi-Fi CLI MacOS is a command line utility for managing network connections on MacOS
https://github.com/stevelacey/wifi-cli-macos
cli macos wifi
Last synced: about 2 months ago
JSON representation
📡️ Wi-Fi CLI MacOS is a command line utility for managing network connections on MacOS
- Host: GitHub
- URL: https://github.com/stevelacey/wifi-cli-macos
- Owner: stevelacey
- License: mit
- Created: 2018-03-29T09:57:23.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-04-23T21:51:50.000Z (over 1 year ago)
- Last Synced: 2024-06-10T06:19:10.671Z (4 months ago)
- Topics: cli, macos, wifi
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/wifi-cli-macos
- Size: 19.5 KB
- Stars: 13
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Wi-Fi CLI MacOS
Wi-Fi CLI MacOS is a command line utility for managing network connections on MacOS
```
wifi connect (c) [password] Connect to a Wi-Fi network
wifi disconnect (dc) Disconnect from current Wi-Fi network
wifi info (i) Display current Wi-Fi network
wifi password (p) Display current Wi-Fi network password
wifi list (ls) List available Wi-Fi networks
wifi cloudflared on (cf on) Turn Cloudflared on and set DNS to localhost
wifi cloudflared off (cf off) Turn Cloudflared off reset DNS to network defaults
wifi cloudflared restart (cf r) Turn Cloudflared off and on again and set DNS to localhost
wifi dns [servers...] Set DNS servers
wifi on Turn Wi-Fi on
wifi off Turn Wi-Fi off
wifi restart (r) Turn Wi-Fi off and on again
```## Installation
```sh
npm install -g wifi-cli-macos
```## Basic usage
```sh
wifi ls
Network 1 ▁▂▃▄▅▆
Network 2 ▁▂▃▄▅
Network 3 ▁▂▃
Network 4 ▁▂
Network 5 ▁▂
Network 6 ▁
``````sh
wifi c "Network 1" changeme
``````sh
wifi i
Current Wi-Fi Network: Network 1
```### Configure DNS servers
```sh
wifi dns
Current DNS Servers: There aren't any DNS Servers set on Wi-Fi.
``````sh
wifi dns 1.1.1.1 8.8.8.8
Configured DNS Servers: 1.1.1.1 8.8.8.8
``````sh
wifi dns -
Configured DNS Servers: There aren't any DNS Servers set on Wi-Fi.
```### Turn Wi-Fi off and on again
```sh
wifi r
```## Advanced usage
WiFi CLI MacOS also supplies commands for enabling and disabling [Argo Tunnel (cloudflared)](https://developers.cloudflare.com/argo-tunnel/)
Argo Tunnel is a Cloudflare tool which (amongst other things) can be used to proxy DNS over SSL:
```sh
brew install cloudflare/cloudflare/cloudflared
```WiFi CLI MacOS makes enabling/disabling Argo Tunnel a little easier, the
`wifi cf on/off/r` commands start/stop/restart
[the homebrew service](https://github.com/cloudflare/homebrew-cloudflare/pull/3)
and toggle your DNS servers between localhost and network defaults