The AWS Command Line Interface version 1.4 provides support for Amazon EMR. We recommend you download and install the AWS CLI instead of using the Amazon EMR CLI. For more information, see http://aws.amazon.com/cli/.
The Amazon EMR CLI is no longer under feature development. Customers are encouraged to use the Amazon EMR commands in the AWS CLI instead.
The syntax that you use to run the command line interface (CLI) differs slightly depending on the operating system you use. In the following examples, commands are issued in either a terminal (Linux, UNIX, and Mac OS X) or a command (Windows) interface. Both examples assume that you are running the commands from the directory where you unzipped the Amazon EMR CLI.
In the Linux/UNIX/Mac OS X version of the CLI call, you use a period and slash (./) to indicate that the script is located in the current directory. The operating system automatically detects that the script is a Ruby script and uses the correct libraries to interpret the script. In the Windows version of the call, using the current directory is implied, but you have to explicitly specify which scripting engine to use by prefixing the call with "ruby".
Aside from the preceding operating-system–specific differences in how you call the CLI Ruby script, the way you pass options to the CLI is the same. For more information about the CLI options, see Command Line Interface Options.
In the directory where you installed the Amazon EMR CLI, issue commands in one of the following formats, depending on your operating system.
Linux, UNIX, and Mac OS X users: