ask-cli api或lambda不存在

时间:2018-07-26 07:46:48

标签: alexa alexa-skills-kit ask-cli

我想知道为什么我要列出命令时ask-cli不起作用。有人知道原因吗?我可以运行问题部署,并可以在developer.amazon.com上查看并运行我的技能

> ask -v
1.1.2
> ask --help
  Usage: ask [options] [command]

  Command Line Interface for Alexa Skill Management API

  Commands:

    init [options]      initialize the ask-cli with your Amazon developer account credentials
    deploy [options]    deploy a skill to your developer account
    new [options]       create a new skill project on your computer
    clone [options]     clone an existing skill project on your computer
    simulate [options]  simulate a user using your skill
    lambda              list of AWS Lambda commands
    api                 list of Alexa Skill Management API commands
    help [cmd]          display help for [cmd]

> ask lambda

  ask-lambda(1) does not exist, try --help

> ask api

  ask-api(1) does not exist, try --help

1 个答案:

答案 0 :(得分:1)

通过npm安装ask-cli之后,一切都会按预期进行:

> npm install -g ask-cli

我在brew之前用来安装ask-cli。