Skip to content

TanmayPatil105/wifi-cli

Repository files navigation

Wifi CLI simplified

Try wifi --help after installation

Installation

Install using brew

$ brew tap TanmayPatil105/tap
$ brew install wifi-cli

Install using curl

$ curl -s https://raw.githubusercontent.com/TanmayPatil105/wifi-cli/main/curl.sh | bash
$ sudo chmod +x /bin/wifi

Manual Installation

$ git clone https://github.com/TanmayPatil105/wifi-cli.git
$ cd wifi-cli
$ sudo chmod +x install.sh configure
$ ./configure
$ sudo ./install.sh

Uninstallation

$ sudo ./install.sh remove

Dependencies

Install following packages before using wifi-cli

  • xterm
$ sudo apt install xterm
$ sudo pacman -S xterm
  • nmcli
$ sudo apt install network-manager
$ sudo pacman -S networkmanager

Build on Docker

$ sudo docker build -t wifi-cli .

Usage

wifi on wifi off wifi status wifi list wifi connect '$SSID' wifi pass wifi saved

wifi hotspot wifi hotspot off wifi forget '$SSID' wifi recon wifi speed


Support

Please open an issue if you'd like to report a bug or request a feature.

Do ⭐ the repo if you find it useful


Contributing

Follow guidelines before contributing.


Uses

Uses speedtest-cli for checking network speed

Additional

Try changing the /src/wifi file using following steps if hotspot option doesn't work

- nmcli con down Hotspot > /dev/null
+ UUID=$(grep uuid /etc/NetworkManager/system-connections/Hotspot.nmconnection | cut -d= -f2)
+ nmcli con up uuid $UUID > /dev/null