The following steps install the latest released version of Alloy.
Titanium SDK 3.0.x or later, and the Titanium CLI need to be installed and configured before installing the Alloy CLI. See Setting up the Titanium CLI for instructions.
Download and install Node.js from http://nodejs.org/#download, which includes the npm package manager needed to install Alloy.
From a console window, run the following command to install Alloy:
sudo npm install -g alloy
By default, these installation directions will install the latest Alloy release. To install a specific released version, use the same directions, except after 'alloy', add the at symbol ('@') with the version number. For instance, executing sudo npm install -g firstname.lastname@example.org will install version 1.0.0.