Alexa Skills Kit Command Line Interface (ASK CLI)
In this article, we are exploring the Alexa Skills Kit Command Line Interface (ASK CLI).
We need to configure ASK-CLI that we already configured in our previous discussion.
Let’s Explore ASK CLI Commands
There are various commands available to manage Alexa Skills in ASK CLI but we will look at three main commands which you will use often, which are as follows.
ask new [options]
This command creates a new skill project containing directories and files that represent new skills in the local file system under the current directory.
- --template-url: Url for the template to be used with created skill.
- --template-branch: If you need to pull the template of a specific branch with
--template-url
. - -p, --profile: Optional. The profile under which ASK CLI creates the skill. If not specified, ASK CLI uses the default profile.
- --debug: Enables the ASK CLI to show debug messages in the output of the command.
ask init [options]
The ask init
the command helps you set up a new or an existing Alexa skill project. The command helps you create a ask-resources.json
file to help deploy the skill. It sets the most common attributes and suggests sensible defaults for using AWS Lambda as your endpoint.
Options:
- --hosted-skill-id: Optional. Specifying the Skill ID of an Alexa-hosted skill starts a workflow to clone the skill to the current directory.
- -p, --profile: Optional. The profile under which ASK CLI creates the skill. If not specified, ASK CLI uses the default profile.
- --debug: Enables the ASK CLI to show debug messages in the output of the command.
ask deploy [options]
Deploy a skill to your developer account including your skill manifest, voice interaction model, and AWS Lambda functions. For an overview and usage examples, see deploy an Alexa skill project to the development stage in the ASK CLI overview.
Options:
- -- ignore-hash: Optional. Forces the skill to deploy again even if it has not changed.
- --target:Optional. Use this parameter to indicate which resources to deploy.
Valid values are:
all
– All of the following resources
skill
– The skill manifest
model
– The skill model or models
lambda
– AWS Lambda source code and configuration
isp
– In-skill products
- -p,-- profile: Optional. The profile under which ASK CLI creates the skill. If not specified, ASK CLI uses the default profile.
- --debug: Enables the ASK CLI to show debug messages in the output of the command.
Thank you for reading, if you have anything to add please send a response or add a note!