Commands

login

Login to your let.sh account on current device.

dev

Start an local developent envirmont, let.sh cli will automatically expose your local service to an public url you could share with others.

Supported flags:

FlagDescriptionExampleUsage
-ccommand to serve servicego run main.golets dev -c "go run main.go"
-lcustom local upstream endpoint127.0.0.1:3000lets dev -l 127.0.0.1:3000

deploy

Deploy your current folder project

Supported flags:

FlagDescriptionExampleUsage
--proddeploy in prod channel(default to dev channel)--prodlets deploy --prod
-tcurrent project typereactlets deploy -t react
--staticstatic dir namedistlets deploy --static dist

Link a domain to your current project, it only available to your production channel builds

example(in your project folder):

lets link test.let.sh

Unlink a domain of your current project, it only available to your production channel builds

example(in your project folder):

lets unlink test.let.sh

upgrade

Upgrade cli to latest version

version

Get the current cli version

Edit this page on GitHub Updated at Mon, Feb 22, 2021