Get Air Quality index for your City.
curl -f https://raw.githubusercontent.com/yankeexe/air-quality-cli/master/install.sh | sudo shDownload the latest release.
docker pull ghcr.io/yankeexe/air-quality-cli:latestVerify signature of the image: requires cosign.
COSIGN_EXPERIMENTAL=true cosign verify ghcr.io/yankeexe/air-quality-cli:latest$ docker run --rm -it -v ${HOME}/.air:/home/cli/.air ghcr.io/yankeexe/air-quality-cli:latest search NepalFor convenience you can add alias of the command to your shell config:
$ echo "alias air='docker run --rm -it -v ${HOME}/.air:/home/cli/.air ghcr.io/yankeexe/air-quality-cli:latest'" >> ~/.bashrc
$ source ~/.bashrc
$ echo "alias air='docker run --rm -it -v ${HOME}/.air:/home/cli/.air ghcr.io/yankeexe/air-quality-cli:latest'">> ~/.zshrc
$ source ~/.zshrc
# Use alias to invoke air-quality-cli
$ air search SingaporeAll artifacts are checksummed and the checksum file is signed with cosign (keyless).
- 
Download checksum and sig file for verification.
wget https://github.com/yankeexe/air-quality-cli/releases/download/v0.0.7/checksums.txt wget https://github.com/yankeexe/air-quality-cli/releases/download/v0.0.7/checksums.txt.sig
 - 
Verify the signature
COSIGN_EXPERIMENTAL=1 cosign verify-blob --signature checksums.txt.sig checksums.txt
If the signature is valid, verify the SHA256 match with the downloaded binary.
 - 
Verify Downloaded Binary
Store downloaded binary on the same dir as
checksums.txtsha256sum --ignore-missing -c checksums.txt
 
One time setup to initialize the CLI using API token.
$ air init$ air search kathmandu
# by default, stations whose data is not avaiable is hidden.
# use --all or -a to show stations even if there's no data.
$ air search kathmandu --all$ air search NepalFuzzy search the stations from your query.
Alternative to viewing all the stations as table, you can also fuzzy search the stations returned from your query.
Use -f or --fuzzy flag to initiage fuzzy searching.
$ air search kathmandu -f
# by default, stations whose data is not avaiable is hidden.
# use --all or -a to show stations even if there's no data.
$ air search kathmandu -faYou can save stations from a number of locations to quickly view air quality there.
Save the location
$ air add kathmanduShow air quality from all your saved locations
$ air show
# by default, stations whose data is not avaiable is hidden.
# use --all or -a to show stations even if there's no data.
$ air show --allYou can remove any saved stations/city from your config if you no longer need its information.
$ air removeFor guidance on setting up a development environment and how to make a contribution to air-quality-cli, see the contributing guidelines.





