Hi all,
I’ve been toying around with the idea of a cli tool that works with everything and is related to the other post I put up today on the Go-Veeam-Auth that does authentication for all Veeam APIs.
Anyway, I’ve come up with vcli a simple terminal app written in Go, allowing you to switch between APIs with minimal effort quickly. All the authentication is set up, so all you need to do is set some environmental variables, and off you go (no pun intended).
The main output is JSON, but you can switch it over to YAML via a --yaml switch.
The tool only does GET requests at the moment, as I wanted to gauge the interest before committing any more time to the project.
Where the power really comes in when it is coupled with “nushell” which is a data-centric approach to shells. It makes manipulating json response objects a breeze and also allows conversion to other data formats. It also has a whole module system which I go into a bit on my GitHub.
GitHub page: https://github.com/shapedthought/vcli
NuShell: https://www.nushell.sh/
YouTube video:
The app is compiled in the releases via GitHub actions which you can double-check before downloading the binary, or you can clone the repo and compile it locally.
If you don’t like the idea of downloading or compiling the app I also have a section on GitHub about compiling the tool in a Docker container.
Any issues please raise them on the GitHub page; also, if anyone wants to contribute, feel free to send a pull request.
Note this provided under the MIT license.
Edx