Quickstart: deploy with MultiTool

This guide shows you how to deploy your own code with MultiTool. You'll connect the MultiTool CLI to the MultiTool app and run a deployment using either Cloudflare or AWS Lambda.

Prerequisities

Step 1: Install the MultiTool CLI

Install the MultiTool CLI on macOS, Windows, or Linux. For more information, see Installation.

Step 2: Login with the MultiTool CLI

Connect the CLI to your MultiTool account:

multi login

Step 3: Create a manifest file

For Cloudflare:

MultiTool.toml

# Your workspace's name
workspace = ""
# Your application's name
application = ""

[config.cloudflare]
# The name of your worker
worker-name = ""
# Your Cloudflare account id
account-id = ""
# The path to the directory where your main-module is
artifact-path = ""
# The main module of your function
main-module = ".js"

For AWS Lambda:

MultiTool.toml

# Your workspace's name
workspace = ""
# Your application's name
application = ""

config.monitor.aws-cloudwatch = {}

[config.platform.aws-lambda]
# The name of your Lambda function
name = ""
# The AWS Region
region = ""
# The path to the zip file of your Lambda's code
artifact-path = ".zip"

[config.ingress.aws-api-gateway]
# The name of your API Gateway
gateway-name = ""
# The name of your API Gateway's stage
stage-name = ""
# The resource path of your API Gateway (including the leading slash)
resource-path = ""
# The resource method of your API Gateway
resource-method = ""
# The AWS Region
region = ""

Deploy your artifact

For Cloudflare:

multi run --cloudflare-api-token MY_CLOUDFLARE_TOKEN

For AWS Lambda:

multi run