deploy Command

The jovo deploy CLI command can be used to deploy your project to various developer consoles and cloud providers.

Introduction

The jovo deploy command offers the following features:

  • deploy:platform: Upload project files to platform developer consoles (e.g. Amazon Alexa Developer Console, Actions on Google Console)
  • deploy:code: Upload the source code to a cloud provider (e.g. AWS Lambda)

For these commands to work, you need to add plugins (for example for the platform you want to deploy to) to your project configuration. Here is an example how this looks like for the serverless integration:

const { ProjectConfig } = require('@jovotech/cli-core');
const { ServerlessCli } = require('@jovotech/target-serverless');

// ...

const project = new ProjectConfig({
  // ...

  plugins: [
    // ...

    new ServerlessCli({
      /* options */
    }),
  ],
});

deploy:platform

Many platforms offer their own developer consoles where you need to deploy your project to. For example, an Alexa Skill project needs to be created in the Alexa Developer Console with content including publishing information and an interaction model. The Jovo CLI makes that process easier.

Before running the command, make sure that you've used the build command to prepare all the files. The contents of the build will be used by the deploy:platform command.

$ jovo deploy:platform <platform>

# Example
$ jovo deploy:platform alexa

You can also add flags from the table below.

Flag Description Examples
--locale, -l The locales to be deployed --locale en, --locale en de
--stage The project stage to be deployed. See staging. --stage dev

Platform integrations may also add their own flags. Learn more in the respective platform docs:

deploy:code

The deploy:code command is used to bundle and deploy your project's code (typically the contents of the src folder) to a cloud provider.

$ jovo deploy:code <target>

# Example
$ jovo deploy:code serverless

You can also add flags from the table below.

Flag Description Examples
--src, -s Path to source files --src ./src
--stage The app stage to be deployed. See staging. --stage prod

Deployment target integrations may also add their own flags and commands. Learn more in the respective docs: