orome
orome

Reputation: 48476

Is there a way to use the CLI to configure an Alexa skill?

Is there a way to use the CLI to configure an Alexa skill?

I understand how to set up and manage the corresponding Lambda code using the CLI, but I see no way to do the same for the Alexa skill (e.g. to set or upload an updated Intent Schema or slots, etc.).

Is there a way to do this or is the Alexa Developer Console the sole method available?

Upvotes: 6

Views: 560

Answers (3)

Tom
Tom

Reputation: 17854

No, unfortunately, there is no way to manage your skill using a CLI or API. You can only do it via the developer console.

You might be interested in this feature request:
API for creating & configuring Alexa skills

(I consider the existence of an API and CLI to be directly related since a CLI interface can be built on an API, and API-like automation can be achieved via a CLI.)

Update:
On 2017-09-05 Amazon announced ASK-CLI and SMAPI.
The docs are here, and it is accessible via the node module 'ask-cli'.

Upvotes: 5

JW.
JW.

Reputation: 51638

Now there is:

Announcing Alexa Skill Management API, Alexa Skills Kit Command-line Interface, and Events in the Alexa Skills Kit

ASK CLI Command Reference

You can use the ask api get-model command to download the model and intents as a JSON file. Then you can edit the file, and use ask api update-model to upload it.

Upvotes: 3

Ron Lisle
Ron Lisle

Reputation: 1164

Thaddeus, one of our architects here at Mutual Mobile, configured our Fastlane CI to automatically copy utterances, slots, and schema files to the Alexa portal as part of a Git commit. It's very ugly to do it that way, and will probably become unnecessary when Amazon releases a REST API to do it. In the meantime though, it works great and really speeds things up, not to mention reducing the chance of typo and omission errors. I'll check with Thaddeus and see if he can post some instructions or example code if others are interested.

Upvotes: 1

Related Questions