When we follow the guide to build a new smarthome skill, it gives the steps to create a function in the online code editor.
But if you prefer to use the ASK CLI, there is some steps to follow…
I first create a fake skill with ask new
(using the « hello world » and « AWS Lambda » options).
Once the folder structure and files are created, I edit the .ask/ask-states.json
file to reflect the information from the skill I created during the guide.
Then in the folder skill-package
I remove everything except skill.json
. To find what to put into that file, use the command: ask smapi get-skill-manifest -s <SKILL ID>
and copy/paste that code.
Finally, I force the deploy with ask deploy --ignore-hash
.
The Lambda function can now be managed locally on your computer and deployed with ASK CLI. You can go to the different skill consoles to delete the fake skill « hello world » you created.