Documentation
CLI

CLI

Currently the only way to use Lack is via the CLI. There is are no exported functions (may change).

Running the CLI

The CLI is ran via your package manager. You can install it globaly, but it should always be in your devDependencies so it will auto-install in CI/CD.

Installation

bun i lack-frw -D

This will install it as a devDependency in your project.

Execution

To run the CLI you can use your package manager.

bunx lack-frw

Or run it via package scripts

bun run dev

Commands

Avalible command are

build

This will build your application into ./out. This is needed for dev and deploy to work (both will run it automatically).

There will be 2 folders in ./out.

  • build: used for the dev server
  • lambda: used for Lambda deploys. CDK required each lambda to be its own folder

dev

This will launch the development server on port 2222.

For more info on the dev server go to the Development page

get-llrt

Used for getting the LLRT binary. This is only needed for deploys (the deploy command will download it automatically)

create

Used for creating a new Lack app.

For more info go to the Getting started page

deploy

Used for deploying only with CDK. Running it on its own will do nothing. You need to use it within the --app argument of a CDK command.

Example:

cdk deploy --app "bun run deploy"