3.3.1 • Published 2 years ago

jovo-cli v3.3.1

Weekly downloads
154
License
Apache-2.0
Repository
github
Last release
2 years ago

Jovo Framework

Jovo CLI

The Jovo Command Line Tools offer the ability to create, prototype, test, and deploy your voice app quickly.

Introduction

The Jovo CLI (GitHub Repository: jovotech/jovo-cli) is the center of voice app development with the Jovo Framework. With it, you can quickly create new Jovo projects, create language models and deploy them to the voice platforms, and run your voice apps locally for easy prototyping and testing.

Installation

To make best use of the Jovo CLI, install it globally via npm:

$ npm install -g jovo-cli

After successful installation, you should be able to see the jovo menu by just typing the following into your command line:

$ jovo

You can check the version number (and compare it to the jovo-cli npm package version) with this command:

$ jovo -V

Troubleshooting

Find out more about technical requirements here: Getting Started > Installation.

If you had the CLI installed before the release of v1.0, and are running into problems after updating it to the newest version, please try to uninstall it globally before you install it again:

$ npm uninstall -g jovo-cli

If you run into other problems, please submit an issue here: jovotech/jovo-cli. Thank you!

Commands

Jovo CLI commands can be divided into basic commands (to create and run projects) and platform commands (to interact with a voice platform).

CommandDescription
Basic Commandsjovo newCreates a new Jovo projectjovo runRuns a local development server (webhook)
jovo runRuns a local development server (webhook)
Platform Commandsjovo initInitializes platform-specific projects in app.json
jovo buildBuilds platform-specific language model files into /platforms based on /models folder
jovo getDownloads an existing platform project into the /platforms folder
jovo deployDeploys the /platforms project files to the voice platforms

Basic Commands

These are the basic commands that help you develop Jovo voice apps faster, without interacting with the voice platforms (see platform commands for features that are language model specific).

jovo new

jovo new command

You can create a Jovo project into a new directory with the following command:

## Default
$ jovo new <directory>

## Options
$ jovo new <directory> [-t | --template <template-name>] [-l | --locale <en-US | de-DE | etc.>] 
  [-b | --build <alexaSkill | googleAction>] [-d | --deploy]

Options

--template, -t: Used to specify which template should be used. Get a list of all the templates below, or on GitHub: jovotech/jovo-templates. Default: helloworld.

--locale, -l: Choose the language of the interaction models in the /models folder. Default: en-US.

--init, -i: This is a shortcut to the jovo init command. Speed up the creation of your voice application by creating the app.json file right at the beginning. Requires either alexaSkill or googleAction as argument.

--build, -b: This is a shortcut to the jovo build command. Speed up the creation of your voice application by building the platform specific files into the /platforms folder right at the beginning. Requires --init before.

--deploy, -d: This is a shortcut to the jovo deploy command. Deploy the platform files to their respective developer console. It will deploy to the platform you specified with the --init and --build options.

Templates

Below is a list of templates that can currently be used with the jovo new command.

You can find the complete repository on GitHub: jovotech/jovo-templates.

NameDescription
helloworldDefault. Jovo Sample Voice App with a simple "Hello World!" + asking for the user's name
alexa-audioplayerSample Alexa Audioplayer Skill that plays a longform audio file with the Audioplayer directive
trivia-gameSample Trivia Voice App

jovo run

jovo run command

You can use the jovo run command to start the development server in your index.js file, and then add the Jovo Webhook as an endpoint to the respective developer consoles.

Learn more here: App Configuration > Server Configuration.

# Default
$ jovo run

# Options
$ jovo run [-b | --bst-proxy] [-w | --watch] [-p, --port <port>]

You can also specify the file you want to run:

$ jovo run <file>

# Example
$ jovo run index.js

# Alternative
$ node index.js

You can also use other tools like bst proxy to tunnel to your local server.

Options

--port, -p: Defines the port that will be used to run the local development server. Default: 3000.

Integrations

If you want to see another integration, please feel free to submit an issue. Thanks!

Here is a list of integrations that work with jovo run:

CommandDescription
--bst-proxyCreates a webhook URL for local testing and integrates with Bespoken Analytics
--watchUses nodemon to monitor changes and automatically restart the server
bst proxy

You can use the bst proxy to create a webhook URL easily:

$ jovo run --bst-proxy

The result should look like this:

Jovo and bst proxy

The URL also comes with logging and analytics capabilities for prototyping and testing.

watch

With this integration, you don't have to manually restart your server with every change you make to the application:

$ jovo run --watch

For this, we're using nodemon, a neat package that monitors your app files and automatically restarts the server.

Platform Commands

Platform commands are used to interact with the voice platforms (Amazon Alexa or Google Assistant/Dialogflow). You don't have to use these commands if you just want to maintain the language/interaction models on the respective developer platforms.

See the following tutorials for alternative ways to create language models on the respective developer platforms:

jovo init

jovo init command

jovo init is the command to initialize a voice platform project to use with the Jovo Framework. This will create or update a file app.json with all the information needed to later build the language models.

To create it, use the following command:

# Default
$ jovo init <alexaSkill | googleAction>

# Options
$ jovo init <alexaSkill | googleAction> [-e | --endpoint <jovo-webhook | ngrok | bst-proxy>]

The resulting app.json file looks like this:

{
  "alexaSkill": {
    "nlu": "alexa"
  },
  "googleAction": {
    "nlu": {
      "name": "dialogflow",
      "version": 1
    }
  },
  "endpoint": "https://webhook.jovo.cloud/[jovo-endpoint-id]"
}

Currently, the platform nlu (natural language understanding) services are:

  • Amazon Alexa: The built-in alexa interaction model
  • Google Assistant: dialogflow API version 1

The default endpoint uri is automatically generated and provides a simple solution to run a local webserver for easy debugging. Learn more here: App Configuration > Server Configuration > Webhook. For more options, see below.

Options

--enpoint, -e: This specifies which endpoint you want to include in the app.json file. Options: jovo-framework (default), bst-proxy (see jovo run), and ngrok (will extract the url if ngrok is running in the background on port 3000).

jovo build

jovo build command

jovo build is the command to create and update the platform specific interaction models using the Jovo model. Using the files in the /models folder and converting them into files in the /platforms folder.

To learn more about Jovo Language Models, take a look at App Configuration > Models.

After the initial init process, you can either run build separately for each platform, or just let the CLI fetch the right information from the app.json file.

# Default
$ jovo build

# Options
$ jovo build [-p | --platform <alexaSkill | googleAction>] [-l | --locale <de-DE | en-US | etc.>] [-d | --deploy]

Options

--platform, -p: If you want to update your platform folders, you can leave it out and it will update the ones listed in app.json. You can still use it, if you want to only update a specific platform. If you haven't initialized a platform yet, this will trigger the jovo init command.

--locale, -l: Specify the locale, which should be created/updated. Default: en-US.

--deploy, -d: This is a shortcut to the jovo deploy command. Deploy the platform files to their respective developer console.

--reverse, -r: In this reverse process, you can create a Jovo Language Model from an existing /platforms folder, e.g. after you fetched the files with jovo get. Currently only works with Amazon Alexa: jovo build -p alexaSkill --reverse:

jovo build reverse converter

jovo get

jovo get command

jovo get will import an existing Alexa Skill (Skill Information and Interaction Model) into the /platforms folder. Dialogflow API v1 does not support importing agents, this is why this command is currently limited to Amazon Alexa.

To get the Skill from the Amazon developer console, you have to set up ASK CLI first.

# Choose from list of Skills
$ jovo get alexaSkill

# Get specific Skill ID
$ jovo get alexaSkill --skill-id <skill ID>

# Options
$ jovo get alexaSkill [-s | --skill-id <skill ID>] [--list-skills] [-l | --locale] [-t | --target] [--ask-profile]

Options

--locale, -l: Specify the locale, which should be created/updated. Default: all languages available for the Skill.

--list-skills: Shows a list of all available Skill projects for the specific ASK Profile.

--skill-id, -s: Gets a specific Skill ID.

--ask-profile: Specifies which profile set up in ASK CLI should be used to get the information. Default: default.

--target, -t: Specifies which information should be fetched from the Skill. Arguments: info (Skill Information), model (Interaction Model), all. Default: all.

jovo deploy

jovo deploy command

jovo deploy is used to upload the platform folders to their respective developer site. Since the Dialogflow API v1 does not support programmatic agent creation, the deploy command will create zip file, which you can then import into Dialogflow:

jovo deploy command

To deploy to the Amazon developer console, you have to set up ASK CLI first.

# Default
$ jovo deploy

# Options
$ jovo deploy --platform <alexaSkill | googleAction> [-l | --locale <de-DE | en-US | etc.>] [-t | --target <model | skill | all>]

Options:

--platform, -p: Specify the platform that should be deployed. Default: Every platform found in the /platforms folder.

--locale, -l: Specify the locale that should be deployed. Default: Every locale found for each platform.

--target, -t: Specify, what type of information to deploy. Arguments: info (for Skill or Agent information), model (for language models), lambda (for AWS Lambda deployment), all. Default: all.

3.2.2

2 years ago

3.3.1

2 years ago

3.3.0

2 years ago

3.2.1

3 years ago

3.2.0

4 years ago

3.0.31

4 years ago

3.0.30

4 years ago

3.0.29

4 years ago

3.0.27

4 years ago

3.0.28

4 years ago

3.0.26

4 years ago

3.0.25

4 years ago

3.0.24

4 years ago

3.0.23

4 years ago

3.0.22

4 years ago

3.0.21

4 years ago

3.0.20

4 years ago

3.0.19

4 years ago

3.0.18

4 years ago

3.0.16

4 years ago

3.0.17

4 years ago

3.0.15

4 years ago

3.0.14

4 years ago

3.0.13

4 years ago

3.0.12

4 years ago

3.0.10

4 years ago

3.0.11

4 years ago

3.0.9

4 years ago

3.0.8

4 years ago

3.0.7

4 years ago

3.0.6

4 years ago

3.0.5

4 years ago

3.0.4

4 years ago

3.0.3

4 years ago

3.0.2

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.2.14

4 years ago

2.2.13

4 years ago

2.2.12

5 years ago

2.2.8

5 years ago

2.2.7

5 years ago

2.2.6

5 years ago

2.2.5

5 years ago

2.2.4

5 years ago

2.2.3

5 years ago

2.2.2

5 years ago

2.2.1

5 years ago

2.2.0

5 years ago

2.0.15

5 years ago

2.0.14

5 years ago

2.0.13

5 years ago

2.0.12

5 years ago

2.0.10

5 years ago

2.0.9

5 years ago

2.0.7

5 years ago

2.0.6

5 years ago

2.0.5

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.2-beta.1

5 years ago

2.0.2-beta.0

5 years ago

2.0.1-alpha.4

5 years ago

1.2.11

5 years ago

1.2.10

6 years ago

1.2.9

6 years ago

1.2.8

6 years ago

1.2.7

6 years ago

1.2.6

6 years ago

1.2.5

6 years ago

1.2.4

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.14

6 years ago

1.1.13

6 years ago

1.1.12

6 years ago

1.1.11

6 years ago

1.1.10

6 years ago

1.1.9

6 years ago

1.1.8

6 years ago

1.1.7

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.17

6 years ago

1.0.16

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.6.4

6 years ago

0.6.2

6 years ago

0.6.1

6 years ago

0.6.0

6 years ago

0.5.6

7 years ago

0.5.5

7 years ago

0.5.4

7 years ago

0.5.3

7 years ago

0.5.2

7 years ago

0.5.1

7 years ago

0.4.11

7 years ago

0.4.10

7 years ago

0.4.9

7 years ago

0.4.8

7 years ago

0.4.7

7 years ago

0.4.6

7 years ago

0.4.5

7 years ago

0.4.4

7 years ago

0.4.3

7 years ago

0.4.2

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.0.2

7 years ago