# Command: build azure

Command kl build azure creates azure function binaries that can be deployed to the azure account. The output of this command is zipped file containing node js function code and its dependant libraries.

# Usage

Usage: kl build azure [options]

Dependency: npm is required to install dependant packages.

Command will create azure function code, execute command: npm install --production and zip all necessary files.

Command does not change project files, instead it creates build sub directory and copies all required files.

Command analyzes package.json file, it copies all files specified in "files" array.

Command performs flow validation, it will terminate build if errors have been found and display list of warnings if any found. See Build Errors for details.

# Options

  • -d, --project-directory The root of kumologica project directory. Defaults to process current working directory
  • -f, --flow-file-name kumologica flow file name, cli will search for it if not provided.
  • -z, --zip-file-name the name of zip file with function binaries for azure deployment. Defaults to "azure.zip"

# Example: default build

Build azure.zip file with azure function binaries, project files are in current working directory

$ kl build azure

# Example: custom zip file, project in subdirectory

Create HelloWorld.zip binaries from helloworld project located in subdirectory

$ kl build azure --project-directory ./helloworld --zip-file-name HelloWorld.zip