Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tanmaypatil105/wifi-cli

📶 Wifi through command line
https://github.com/tanmaypatil105/wifi-cli

automation bash cli cli-app shell

Last synced: 2 days ago
JSON representation

📶 Wifi through command line

Awesome Lists containing this project

README

        

# Wifi CLI simplified

``` Try wifi --help after installation```

## Installation

### Install using brew

```
$ brew tap TanmayPatil105/tap
```

```
$ brew install wifi-cli
```

### Install using curl

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

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

### Uninstallation

```console
$ sudo ./install.sh remove
```


### Dependencies

Install following packages before using wifi-cli

- **xterm**

```console
$ sudo apt install xterm
```
```console
$ sudo pacman -S xterm
```
- **nmcli**

```console
$ sudo apt install network-manager
```
```console
$ sudo pacman -S networkmanager
```

### Build on Docker
```console
$ 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](https://github.com/TanmayPatil105/wifi-cli/issues/new) if you'd like to report a bug or request a feature.

Do ⭐ the repo if you find it useful


### Contributing
Follow [guidelines](https://github.com/TanmayPatil105/wifi-cli/blob/main/CONTRIBUTING.md) 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

```diff
- 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
```