Installation
You can install the apigee-go-gen
binary in several ways.
Manual download
The most straightforward way to install the tool is to download a release tar ball from the available GitHub releases.
Once you download the tarball, extract it and move the apigee-go-gen
binary to somewhere in your $PATH
Automated install
For your convenience, there is an install script available.
This script downloads and installs the apigee-go-gen
tool automatically for you.
The script takes version, and install directory as optional parameters
- If version is omitted, it will download the latest tagged release.
- If install directory is omitted, it will install to
/usr/local/bin
- If install directory is not writable, it will prompt you for sudo password.
Below are a few examples of how to execute the install
script
e.g.
Install latest version into /usr/local/bin
directory
Install specific version into /usr/local/bin
directory
Install latest version into ~/.local/bin
directory
Install specific version into ~/.local/bin
directory
From source
If you already have Go installed in your machine, run the following command:
This will download the source, build it (in your machine) and install the apigee-go-gen
binary into your $GOPATH/bin
directory.
You can change the @latest
tag for any other version that has been tagged. (e.g. @v0.1.13
)
Note
The Go tool (and compiler) is only necessary to build the tools in this repo. Once built, you can copy the tool binaries and use them in any other machine of the same architecture and operating system (without needing Go).