alexa / ask-cli

Alexa Skills Kit Command Line Interface
https://developer.amazon.com/en-US/docs/alexa/smapi/ask-cli-intro.html
Apache License 2.0
163 stars 54 forks source link

feat: add ASK_SKIP_DOMAIN_VALIDATION to allow skipping manifest api v… #500

Closed doiron closed 7 months ago

doiron commented 7 months ago

…alidation prior to skill enablement

Issue #, if available:

Description of changes:

if attempting to deploy a skill that is anything other than custom or music the domain validation will fail and prevent skill enablement from being attempted. By setting the following env variable, the cli will ignore your manifest domain apis and attempt to enable the skill without any prior checks.

ASK_FORCE_ENABLE

example usage:

ASK_FORCE_ENABLE=1 ask deploy

you'll see a warning show up on the terminal stating that the env variable was detected and validation was skipped

==================== Enable Skill ====================
[Warn]: The ASK_FORCE_ENABLE environment variable is set. Skipping domain validation.

The skill has been enabled.

Note: You should not set this env variable, if you have a smartHome skill or any other skill types known to fail skill enablement. It will just make extra service api calls that will end up failing.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.