Earlier this year we introduced the Akamai CLI, a new way to manage and configure Akamai from the command line, and our customers have been very excited about it. Along the way, several customers asked if there’s an easier method for installing the binary and getting started. We noticed that a lot of you use Node already, so we created a new Node Package Manager (NPM) installer to take advantage of that.
If you’ve got NPM on your system, you can install with:
npm install -g akamai-cli
On OSX or Unix, this will require sudo. It will place the executable in your NPM install directory, usually /usr/local/bin.
On Windows, NPM installs in a user directory. You can then use it in a few ways:
- Add the path to your PATH environment variables
- Copy the ‘akamai.exe’ file to a directory in your PATH
- Run the command using the full path
Once you’ve got it all up and running, you can get down to business. For instance, to install the property package just type the following command:
akamai install property This command gets you the CLI Property package to create and configure properties. This package requires Node 7 or later.
Other CLI packages can be installed in this way as well. In addition to the CLI Property package above, currently available packages include:
akamai install purgeThis command gets you the Fast Purge package. This has a compiled binary so it doesn’t require an additional language runtime.
akamai install visitor-prioritizationThis command installs the Visitor Prioritization package, which allows you to manage your Visitor Prioritization Cloudlet. Note that this package requires python.
And because the Akamai CLI was built to be extensible, we’ve got lots more packages in the pipeline for you, so stay tuned.
Kirsten Hunter is an API evangelist at Akamai Technologies.