Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/7sdream/bgpview-cli
CLI tools for bgpview.io
https://github.com/7sdream/bgpview-cli
Last synced: 7 days ago
JSON representation
CLI tools for bgpview.io
- Host: GitHub
- URL: https://github.com/7sdream/bgpview-cli
- Owner: 7sDream
- License: unlicense
- Created: 2020-07-20T08:13:38.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-07-20T08:34:05.000Z (over 4 years ago)
- Last Synced: 2024-10-05T23:04:09.539Z (about 1 month ago)
- Language: Rust
- Size: 22.5 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# BGPView CLI
**Working in progress**, only `ip` sub command usable for now.
Other sub commands can be added easily, but I do not use them personally, so they may not be added forever if no one asks.
You can refer to the [document of bgpview.io API][doc-of-bgpview.io] if you want to contribute or implement other commands.
## Install
```bash
$ cargo install bgpview-cli
```## Usage
```bash
$ bgpview-cli ip 1.1.1.1
IP: 1.1.1.1
Country: AU
City: UnknownIANA: APNIC
AssigSt: allocated
AssigAt: Unknown
Whois: whois.apnic.netRIR: APNIC - AU
Prefix: 1.1.1.0/24
AllocSt: assigned
AllocAt: 2011-08-11 00:00:00AS: 13335 - CLOUDFLARENET - Cloudflare, Inc. - US
Prefix: 1.1.1.0/24
Name: APNIC-LABS
Desc: APNIC and Cloudflare DNS Resolver project
Country: AU
```Use `-h`/`--help` for help.
You can set [alias][wikipedia:alias] if you use some command very often, bash for example:
```bash
alias bvip="bgpview-cli ip"
bvip 1.1.1.1
```## License
See `UNLICENSE`.
[doc-of-bgpview.io]: https://bgpview.docs.apiary.io/
[wikipedia:alias]: https://en.wikipedia.org/wiki/Alias_(command)