ask-cli
Alexa Skills Kit (ASK) Command Line Interfaces
Last updated 7 days ago by ask-dev-tools .
Apache 2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install ask-cli 
SYNC missed versions from official npm registry.


Alexa Skills Kit Command Line interface

The Alexa Skills Kit Command Line Interface (ask-cli) is used to create, manage, and deploy Alexa skills from the command line. Please see the full documentation from ASK CLI quick start guide.

Note: To use ask-cli for Alexa-Hosted skill, please check our instructions for the usage.

Getting Started

1. Install CLI

$ npm install -g ask-cli

2. Configure CLI profile

Before you can start using the ASK CLI, configure your ASK (and AWS) credentials:

$ ask configure

You’ll be prompted to sign into your Amazon developer account. If you choose to have your skill hosted by AWS, you’ll have the option of linking your AWS account as well.

3. Create new skill project

Create a new skill project and follow the prompts from the command:

$ ask new

You'll be asked to select a deployment method for your skill. Currently we support deployment via AWS CloudFormation (@ask-cli/cfn-deployer), deployment via AWS Lambda (@ask-cli/lambda-deployer), and deployment through Alexa-Hosted skill (@ask-cli/hosted-skill-deployer).

Your new skill project will provide a number of files and folders that make up the structure of an Alexa skill. Here is an overview on each of the files and folders that are created by default:

File/Folder Description
skill-package/ Skill resources utilized by the ASK platform such as skill manifest, interaction models, and assets
lambda/ Contains the source code for your skill that utilizes the ASK SDK
infrastructure/ Contains your CloudFormation definitions for deploying your skill to AWS
ask-resources config Configuration for your Alexa skill project

See the ASK SDKs documentation to learn more about how to build an Alexa skill.

4. Deploy Alexa skill

In order for Alexa to communicate with your skill code, it will need to be deployed and hosted on the cloud using this command.

$ ask deploy

The deploy command performs the following steps:

  1. skill-package/ resources will be zipped and uploaded to the ASK platform via SMAPI's Skill Package Service.
  2. lambda/ source files will be built and zipped for deployment to AWS. We currently support the build flows of npm for Nodejs, pip for Python and maven for Java developers.
  3. infrastructure/ definitions will be used to provision resources on AWS. The lambda/'s zip file from the previous step will be deployed to the provisioned AWS Lambda function. The gif below shows the deployment using @ask-cli/cfn-deployer, you can also try other deployers as they serve different purposes.

5. Dialog with what you build

To test while developing your skill locally, or quickly showcase your skill ideas, or even build end-to-end testing, you can use CLI's dialog command.

$ ask dialog

Current Tags

  • 2.9.0                                ...           latest (7 days ago)

82 Versions

  • 2.9.0                                ...           7 days ago
  • 2.8.0                                ...           14 days ago
  • 2.7.0                                ...           20 days ago
  • 2.6.0                                ...           a month ago
  • 2.5.1                                ...           a month ago
  • 2.5.0                                ...           a month ago
  • 2.4.0                                ...           a month ago
  • 2.3.0                                ...           a month ago
  • 2.2.0                                ...           a month ago
  • 2.1.1                                ...           2 months ago
  • 2.1.0                                ...           2 months ago
  • 2.0.1                                ...           2 months ago
  • 2.0.0                                ...           2 months ago
  • 1.7.23                                ...           4 months ago
  • 1.7.22                                ...           5 months ago
  • 1.7.21                                ...           5 months ago
  • 1.7.20                                ...           5 months ago
  • 1.7.19                                ...           5 months ago
  • 1.7.18                                ...           6 months ago
  • 1.7.17                                ...           7 months ago
  • 1.7.16                                ...           7 months ago
  • 1.7.15                                ...           8 months ago
  • 1.7.14                                ...           9 months ago
  • 1.7.13                                ...           9 months ago
  • 1.7.12                                ...           9 months ago
  • 1.7.11                                ...           9 months ago
  • 1.7.10                                ...           10 months ago
  • 1.7.9                                ...           a year ago
  • 1.7.8                                ...           a year ago
  • 1.7.7                                ...           a year ago
  • 1.7.6                                ...           a year ago
  • 1.7.5                                ...           a year ago
  • 1.7.4                                ...           a year ago
  • 1.7.3                                ...           a year ago
  • 1.7.2                                ...           a year ago
  • 1.7.1                                ...           a year ago
  • 1.6.6                                ...           a year ago
  • 1.6.5                                ...           a year ago
  • 1.6.4                                ...           a year ago
  • 1.6.2                                ...           a year ago
  • 1.6.1                                ...           a year ago
  • 1.6.0                                ...           a year ago
  • 1.5.4                                ...           a year ago
  • 1.5.3                                ...           a year ago
  • 1.5.2                                ...           a year ago
  • 1.5.1                                ...           2 years ago
  • 1.5.0                                ...           2 years ago
  • 1.4.9                                ...           2 years ago
  • 1.4.8                                ...           2 years ago
  • 1.4.7                                ...           2 years ago
  • 1.4.6                                ...           2 years ago
  • 1.4.5                                ...           2 years ago
  • 1.4.4                                ...           2 years ago
  • 1.4.3                                ...           2 years ago
  • 1.4.2                                ...           2 years ago
  • 1.4.1                                ...           2 years ago
  • 1.4.0                                ...           2 years ago
  • 1.3.3                                ...           2 years ago
  • 1.3.1                                ...           2 years ago
  • 1.3.0                                ...           2 years ago
  • 1.2.2                                ...           2 years ago
  • 1.2.1                                ...           2 years ago
  • 1.2.0                                ...           2 years ago
  • 1.1.6                                ...           2 years ago
  • 1.1.5                                ...           2 years ago
  • 1.1.4                                ...           2 years ago
  • 1.1.3                                ...           2 years ago
  • 1.1.2                                ...           2 years ago
  • 1.1.1                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.0-beta.9                                ...           2 years ago
  • 1.0.0-beta.8                                ...           2 years ago
  • 1.0.0-beta.7                                ...           3 years ago
  • 1.0.0-beta.6                                ...           3 years ago
  • 1.0.0-beta.5                                ...           3 years ago
  • 1.0.0-beta.4                                ...           3 years ago
  • 1.0.0-beta.3                                ...           3 years ago
  • 1.0.0-beta.2                                ...           3 years ago
  • 1.0.0-beta.1                                ...           3 years ago
  • 1.0.0-beta.0                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
  • 0.7.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 14
Last Month 137
Dependencies (33)
Dev Dependencies (18)

Copyright 2014 - 2016 © taobao.org |