jovo build
Learn more about how to translate your Jovo project files like the project.js
and the Jovo Language Model into platform specific files like an Alexa Skill Interaction Model or a Dialogflow Agent with the jovo build
CLI command.
Introduction
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 Model, take a look Docs: Basic Concepts > Model.
Workflow
The jovo build
command uses two elements of a Jovo project to create platform specific files:
- The platforms that are defined in the
project.js
file (e.g.alexaSkill
andgoogleAction
) - The Jovo Language Model files that can be found in the
models
folder (e.g.en-US.json
)
Reverse Build
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
.
This will prompt you if you want to overwrite the existing files or rather create a backup first. You can also skip this step and overwrite the files right away by using the --overwrite
option:
Options
--platform
, -p
: If you want to update all your platforms, you can leave it out and it will update the ones listed in project.js
. If you want to update a specific platform folder you can pass the platform name as an argument: alexaSkill
or googleAction
.
--locale
, -l
: Specify the locale, which should be created/updated. Arguments: en-US
, de-DE
, et cetera. Default: All files in the models
folder.
--deploy
, -d
: This is a shortcut to the jovo deploy
command. Deploy the platform files to their respective developer console.
--target
, -t
: Used in combination with --deploy
to specify target of deployment. Arguments: info
(Skill Information), model
(Interaction Model), all
. Default: all
.
--src
, -s
: Used in combination with --deploy
. Path to source files. Default: src
.
--stage
: Specify the stage where the configuration will be taken from.
--ask-profile
: Used in combination with --deploy
. Specifies which profile set up in ASK CLI should be used to deploy. Default: default
.
--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
.
--overwrite
: Can be used together with the --reverse
command. This ignores the question if the existing files should really be overwritten.