Skip to content

Files

Latest commit

 

History

History

cli

YoMo CLI

Command-line tools for YoMo

Binary

curl -fsSL https://get.yomo.run | sh

Build from source

Installing Go

You can easily install the latest release globally by running:

go install github.com/yomorun/yomo/cmd/yomo@latest

Or you can install into another directory:

env GOBIN=/bin go install github.com/yomorun/yomo/cmd/yomo@latest

Getting Started

1. YoMo-Zipper

Configure YoMo-Zipper config.yaml

See ../example/config.yaml

Run

yomo serve --config ../example/config.yaml

2. Source

Write a source app

See ../example/9-cli/source/main.go

Run

cd ../example/9-cli/source

go run main.go

3. Stream Function

Write the serverless function

See ../example/9-cli/sfn/app.go

Build

Build the app.go, defaults to sfn.yomo binary file, with -w flag to generate a WebAssembly file.

cd ../example/9-cli/sfn

yomo build

Run

yomo run sfn.yomo