Skip to content

Instantly share code, notes, and snippets.

@javierfernandes
Created April 30, 2019 19:26
Show Gist options
  • Select an option

  • Save javierfernandes/06c9ab33cc5dbf97ef0e6e6c419bb9ea to your computer and use it in GitHub Desktop.

Select an option

Save javierfernandes/06c9ab33cc5dbf97ef0e6e6c419bb9ea to your computer and use it in GitHub Desktop.
Alexa utils scripts
#!/bin/bash
# get the current skill id
SKILL_ID=`cat .ask/config | grep skill_id | awk '{ print $2 }' | sed -e 's#"\([^"]*\)",#\1#g'`
# get model from current skill
ask api get-model -s ${SKILL_ID} -l "en-US"
# update local changes to model to the server
ask api update-model -s ${SKILL_ID} -l "en-US" -f models/en-US.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment