MacOS Wifi CLI client
Project description
MacOS Wifi CLI:
This is a command line client for interacting with wifi on MacOS.
Installation:
sudo pip3 install macos-wifi-cli
Usage:
$ wifi --help
usage: wifi [-h] [-d DEVICE] {on,off,scan,connect,info,pass} ...
MacOS CLI tool for managing wifi connections
positional arguments:
{on,off,scan,connect,info,pass}
commands
on Turn on wifi
off Turn off wifi
scan Scan for wifi networks
connect Connect to wifi network
info Fetch current wifi info
pass Retrieve stored wifi passphrase
optional arguments:
-h, --help show this help message and exit
-d DEVICE, --device DEVICE Device
Turn wifi off and on:
wifi on
wifi off
Scan for networks:
wifi scan
Connect to a network:
wifi connect --network "mynetwork" --password "mypassword"
Help:
$ wifi connect --help
usage: wifi connect [-h] -n NETWORK -p PASSWORD
optional arguments:
-h, --help show this help message and exit
-n NETWORK, --network NETWORK
SSID name
-p PASSWORD, --password PASSWORD
Wifi passphrase
Tip:
Use command substitution to retrieve the password securely so it's not saved in plaintext in your shell history.
For example, using pass:
wifi connect -n "mynetwork" -p $(pass wifi/home)
Get current wifi info:
wifi info
Get password for previously connect wifi network:
wifi pass --network 'mynetwork'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
macos-wifi-cli-0.1.0.tar.gz
(3.1 kB
view details)
File details
Details for the file macos-wifi-cli-0.1.0.tar.gz
.
File metadata
- Download URL: macos-wifi-cli-0.1.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ce9524abe256c947bad9a8a258853e56a935b9f04d67b662bbc6467e819e158 |
|
MD5 | 7303be62db1128101eea29ed73ad84e3 |
|
BLAKE2b-256 | 88603d59f0665430a1faa8188552e49b8add90ac8a12357f4a5bfaf5f19b8c39 |