Start tracking your progress
Trailhead Home
Trailhead Home

Install the Alexa Skills Kit Command Line Interface (ASK CLI)

What You'll Learn

In this step, you'll learn how to:

  • Create an Amazon Developer account.
  • Install and configure the Alexa Skills Kit Command Line Interface.

Create an Amazon Developer Account

Go to the Amazon Developer Portal. In the top-right corner of the screen, click Sign In. You can use your existing account to sign in once you complete the additional registration steps that are needed for an Amazon Developer account. If you don't have or don't wish to use your existing account, you can create a new account for free.

Amazon Developer Portal header

Install Prerequisites

Install Node.js version 4.5 or greater, which includes Node Package Manager (npm). You can find the latest versions on the Node.js download page.

Download and Configure Alexa Skills Kit (ASK) Command Line Interface (CLI)

  1. Use npm to install ASK CLI. Run the npm global install command into the ask-cli folder. If you get an error on this command, try restarting your command prompt or Terminal window, and then try again.
    $ npm install -g ask-cli
    1. If you are using Linux, the installation can require sudo.
      $ sudo npm install -g ask-cli

  2. The first time you use ASK CLI, you must call the init command to initialize the tool with your Amazon developer account credentials. For more information, see  init command.
    $ ask init

  3. Your browser then opens so you can log in to your Amazon Developer account.
  4. In your browser, log in to your account.
  5. Click OKAY to allow the ASK CLI to use your Amazon Developer account.
  6. Close the browser window.
  7. Back in your command prompt, answer the resulting prompts to create a new profile and choose a name. You can also use the default option by pressing Enter. Make sure to choose your default AWS profile that was set up in the previous step.

    -------------------- Initialize CLI --------------------
    Setting up ask profile: [default]?
    Please choose one from the following AWS profiles for skill's Lambda function deployment.
    (Use arrow keys)
    ❯ default
    skip AWS credential for ask-cli

    Once the initialization is complete, you can use ASK CLI to manage your skill. 


We won't check any of your setup. Click Verify Step to proceed to the next step in the project.