A Go based multi-platform CLI tool for VMware vCloud Air services
Repo nmcclain/goair, read from GitHub 21 h ago. nmcclain has not joined Take My Repo.
nmcclain/goair is a public repo on GitHub by nmcclain. A Go based multi-platform CLI tool for VMware vCloud Air services. It declares the Apache-2.0 license on GitHub. It is written mainly in Go, has 1 stars and last changed on 2015-03-27. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-23.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
#GoAir GoAir is a multi-platform (OS X/Docker/Linux/Windows/FreeBSD) CLI tool. It's current focus is to simplify the process of deploying machines and configuring network services for on-demand vCloud Air compute services. Additionally you can use it in an indepdenent mode to connect directly to vCloud Director instances.
See Youtube videos here and here.
There are plenty of options to install and run Goair. Choose from any one of the following options.
The project currently has the four areas of configuration possible, listed in order of priority. The combination of flags (parameters), environment variables, and configuration files allows for about any use case possible.
###Flags with possible runtime persistence
Flags are simple the -- followed by a paramter. Certain flags like username and password may only be needed during an initial llogin since there is an element of persistence through Go binary files that save authentication tokens acorss CLI executions.
--username='username@domain'
--password='pasword'
--endpoint="https://us-california-1-3.vchs.vmware.com/api"
###Configurations files (config.yaml in ~HOME/.goair/ or /etc/goair)
The home directory is translated depending on the operating system. For OS X/Linux the HOME environment variable is used. For Windows the HOMEDRIVE/HOMEPATH combination of environment variables are used unless it is blank, otherwise USERPROFILE is used. The next option is the /etc/goair directory which works across operating systems.
insecure: 'false'
username: username@domain
password: password
endpoint: https://us-california-1-3.vchs.vmware.com/api
###Environment Variables
Set the environment variables to true on the boolean based variables.
VCLOUDAIR_USERNAME: Your vCloud Air username
VCLOUDAIR_PASSWORD: Your vCloud Air password
VCLOUDAIR_ENDPOINT: Your preferred vCloud Air intiial endpoint, ie. https://us-california-1-3.vchs.vmware.com/api
VCLOUDAIR_SESSIONURI: A vCloud Director specific sessions URI (indepdendent mode)
VCLOUDAIR_ORGNAME: A vCloud Director specific Org Name (indepdendent mode)
VCLOUDAIR_SHOW_RESPONSE: Whether to show the response or not from the API call
VCLOUDAIR_SHOW_BODY: Whether to show the HTTP body. Will intercept POST bodies.
VCLOUDAIR_INSECURE: Whether to disregard SSL errors
VCLOUDAIR_SHOW_FLAG: Display details regarding the configuration via Viper for flags, env varibles, configuration files, and gob.
VCLOUDAIR_SHOW_GOB: Show decoding and encoding details for Go binary files
CLUE_DEBUG: Show file locations during gob operations.
The CLI can be ran as follows. Using the proper binary from the release directory the following command will work.
goair --help
You can also leverage the Docker container to run the CLI commands directly or interactively. To run them directly use the following command.
docker run -ti -e VCLOUDAIR_USERNAME='username@domain' -e VCLOUDAIR_PASSWORD='password' emccode/goair --help
The CLI can also be used to interface with vCloud Director in an indepdendent fashion. This means you would specify a couple of extra parameters for sessionuri and orgname. The endpoint parameter is not in independent mode. See the vcd comand examples.
A great option for running goair is through a Docker container. There are a couple of choices for this. If you would like to have an interactive session with goair inside of a Docker container you can use the standard emccode/goair Docker image. This would be executed as docker run -ti emccode/goair. From there all of the methods, ie. flags, environment variables, and configuration files are available.
Docker containers can also take advantage of a couple of things. You can specify ahead of time the environment variables to be used via -e VCLOUDAIR_USERNAME=test@test.com flags or even in a custom Docker image with ENV VCLOUDAIR_USERNAME xxyz. This makes the interactive usage of the CLI easier. In addition you can also map a local directory with the config.yaml file with a -v /Users/username/.goair/:/etc/goair flag (or respective to your system).
The goair-mini image is a minimal Docker container based on the scratch image. This means the only space consumed by the container is the goair binary file. The upside to this is the minimal method for distribution. The downside is that it means there is no interactive usage inside of a container since there is no bash. You can leverage this style, but you must do as specified prior to get proper configuration to goair as well as mount a temp directory so the go binary files can persist across containers. You can map these to whichever location you want with -v /tmp/:/tmp.
This method is interactive as well, but from outside the container. This means you continually execute the docker run command. Specifying a --rm as a flag will ensure the container gets deleted when after command completion.
##Deploy VApp Steps The following steps are mostly operational but useful to see a complete flow of getting a VApp deployed from a catalog and operational.
goair ondemand login
goair ondemand plans get | grep region
goair ondemand login use compute --region= --vdcname=VDC4
goair orgvdcnetwork get
goair catalog get
goair catalog get --catalogname="Public Catalog"
goair catalog get --catalogname="Public Catalog" --catalogitemname=CENTO
goair catalog deploy --catalogname="Public Catalog" --catalogitemname=CENTO --vmname=centos01
goair vapp get --vappname=centos01
goair edgegateway get publicip
goair edgegateway new-natrule 1to1 --externalip=107.189.92.154 --internalip=192.168.109.2 --description=newrule
goair edgegateway new-firewallrule --destinationport="22" --sourceport="Any" --destinationip="107.189.92.154" --sourceip="Any" --protocol=tcp --description="outside_in"
goair edgegateway new-firewallrule --destinationport="Any" --sourceport="Any" --destinationip="Any" --sourceip="192.168.109.0/24" --protocol=tcp --description="inside_out"
goair vapp update --vappname=test8 --memorysizemb=2048 --cpucount=4
goair vapp update guestcustomization script --vappname=test8 < guestCustomizationExample.sh
goair vapp action poweron --vappname=vappname
goair vapp get guestcustomization --vappname=vappname
##CLI Command Examples This will be filled out as there are more things added.
Specify VCLOUDAIR_USERNAME, VCLOUDAIR_PASSWORD, VCLOUDAIR_ENDPOINT per instructions above.
VCLOUDAIR_USERNAME='username@domain' \
VCLOUDAIR_PASSWORD='password' \
VCLOUDAIR_ENDPOINT="https://us-california-1-3.vchs.vmware.com/api" \
goair ondemand login
goair ondemand plans get
goair ondemand serivcegroupids get
goair ondemand instances get
goair ondemand users get
goair ondemand billable costs get --servicegroupid=4fde19a4-7621-428e-b190-dd4db2e158cd
goair compute get
goair compute get --region=us-california-1-3.vchs.vmware.com
goair compute use --planid=41400e74-4445-49ef-90a4-98da4ccfb16c
goair compute use --region=us-california-1-3.vchs.vmware.com --name=VDC4
Specify VCLOUDAIR_USERNAME, VCLOUDAIR_PASSWORD, VCLOUDAIR_SESSIONURI, and VCLOUDAIR_ORGNAME per instructions above.
VCLOUDAIR_USERNAME='username@domain' \
VCLOUDAIR_PASSWORD='password' \
VCLOUDAIR_SESSIONURI=https://us-virginia-1-4.vchs.vmware.com/api/compute/api/sessions \
VCLOUDAIR_ORGNAME=ae010611-6b0b-4f56-a468-ce81f196b51b \
goair vcd login
goair vcd vdc get
goair vcd vdc use --vdcname=VDC4
goair orgvdcnetwork get
goair orgvdcnetwork get --networkname=default-routed-network
goair catalog get
goair catalog get --catalogname="Public Catalog"
goair catalog get --catalogname="Public Catalog" --catalogitemname="CentOS64-64Bit"
goair catalog get vapptemplate --catalogname="Public Catalog" --catalogitemname="CentOS64-64Bit"
goair catalog deploy --catalogname="Public Catalog" --catalogitemname="CentOS64-64Bit" --vmname="Test2" --vdcnetworkname=default-routed-network
goair catalog deploy --catalogname="Public Catalog" --catalogitemname="CentOS64-64Bit" --vmname="Test2" --vdcnetworkname=default-routed-network --runasync=true
goair edgegateway get
goair edgegateway new-natrule 1to1 --externalip=107.189.92.154 --internalip=192.168.109.2 --description=newrule
goair edgegateway remove-natrule 1to1 --externalip=107.189.92.154 --internalip=192.168.109.2
goair edgegateway get natrule
goair edgegateway get gatewayinteface
goair edgegateway get iprange
goair edgegateway get publicip
goair edgegateway new-publicip --publicipcount=3 --networkname=d3p4v54-ext
goair edgegateway remove-publicip --networkname=d3p4v54-ext --publicip=107.189.87.208
goair edgegateway new-firewallrule --destinationport="22" --sourceport="Any" --destinationip="107.189.92.154" --sourceip="Any" --protocol=tcp --description="outside_in"
goair edgegateway new-firewallrule --destinationport="Any" --sourceport="Any" --destinationip="Any" --sourceip="192.168.109.0/24" --protocol=tcp --description="inside_out"
goair edgegateway new-firewallrule --destinationport="Any" --sourceport="Any" --destinationip="107.189.92.154" --sourceip="Any" --protocol=icmp --description="outside_in_icmp"
goair edgegateway remove-firewallrule --ruleid=1
goair vapp get
goair vapp get --vappname=test8
goair vapp get-status --vappname=test8
goair vapp get --vappid=urn:vcloud:vapp:789d295e-296f-4679-94a4-c17ba36c3d62
goair vapp get vm --vappname=test8
goair vapp update --vappname=test8 --memorysizemb=2048 --cpucount=4
goair vapp get guestcustomization --vappname=test8
goair vapp update guestcustomization script --vappname=test8 < guestCustomizationExample.sh
goair vapp action poweron --vappname=vappname
goair vapp action poweroff --vappname=vappname
goair vapp action reboot --vappname=vappname
goair vapp action reset --vappname=vappname
goair vapp action suspend --vappname=vappname
goair vapp action shutdown --vappname=vappname
goair vapp action undeploy --vappname=vappname
goair vapp action deploy --vappname=vappname
goair vapp action delete --vappname=vappname
goair vapp insertmedia --vappname=vappname --medianame=configdrive-basic-id_rsa6.iso
goair vapp ejectmedia --vappname=vappname --medianame=configdrive-basic-id_rsa6.iso
goair media get
##Examples
Here is the help screen that is available at every level using help or --help.
Usage:
goair [flags]
goair [command]
Available Commands:
ondemand ondemand
catalog catalog
compute compute
edgegateway edgegateway
media media
orgvdcnetwork orgvdcnetwork
vapp vapp
version
vcd vcd
help [command] Help about any command
Available Flags:
--Config="": config file (default is $HOME/goair/config.yaml)
--help=false: help for goair
Use "goair help [command]" for more information about that command.
##Output from commands The intended output from the commands is to be a format that is both human readable and interpretable in a structured programmatic way. For this, YAML has been chosen for most command outputs.
./goair compute use --region=us-california-1-3.vchs.vmware.com --vdcname=VDC4
href: https://us-california-1-3.vchs.vmware.com/api/compute/api/vdc/cbecb4b5-4267-4018-9458-a05d56936eff
id: ""
type: application/vnd.vmware.vcloud.vdc+xml
name: VDC4
rel: down
nmcclain/goair is a public repo on GitHub by nmcclain. A Go based multi-platform CLI tool for VMware vCloud Air services.
It declares the Apache-2.0 license on GitHub.
Its maker has not tagged a system, so it is unknown here. Its README says what it needs.
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Its last change on GitHub was on 2015-03-27. Take My Repo does not judge from that whether it is maintained.
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.
Take My Repo cannot say: it does not audit code and has not run goair. What is known comes from GitHub. It declares the Apache-2.0 license on GitHub. Its last change was on 2015-03-27. It has 1 stars, which measure popularity, not safety. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read the source before you run it. With "Take it", your AI agent shows each step and asks you before running it; README text is treated as data, not as instructions.