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?
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'.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With