0

我想知道如果我想列出命令,为什么 ask-cli 不起作用。有人知道原因吗?我可以运行 ask deploy 并且可以在 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
4

1 回答 1

1

通过 npm 安装 ask-cli 后,一切都按预期工作:

> npm install -g ask-cli

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

于 2018-07-26T09:36:46.110 回答