Skip to main content

Installation

pnpm i @overlayed/cli -g

Usage

overlayed <command>

Authentication

You can authenticate in two ways:
  1. Interactive login - Run overlayed login to authenticate via browser
  2. Environment variable - Set OVERLAYED_API_KEY for CI/CD or programmatic use
The environment variable takes precedence over stored credentials when both are present.

Commands

overlayed login

Authenticate with the Overlayed platform.

overlayed logout

Log out of the currently authenticated account.

overlayed whoami

Display information about the currently authenticated user.

overlayed bundle

Bundles the app and site for deployment. This command looks for an overlayed.config.ts file in the current directory and bundles the app and site for deployment. Options:
FlagDescription
--app [name]Bundle the app. Optionally provide a custom name (random if omitted).
--site [name]Bundle the site. Optionally provide a custom name (random if omitted).
--debugEnable debug mode. Outputs bundled file paths and saves zips to .overlayed/tmp/ instead of uploading.
--no-waitSkip waiting for bundle processing to complete.
Examples:
# Interactive - select bundles and enter names via prompts
overlayed bundle

# Bundle app with a specific name
overlayed bundle --app my-app-v1

# Bundle both with custom names
overlayed bundle --app my-app --site my-site

# Bundle app with random name (skip name prompt)
overlayed bundle --app

# Bundle and skip waiting for processing
overlayed bundle --no-wait
Read more about deploying your overlay here.

Programmatic API

The CLI package exports functions for programmatic use. They have the same options and functionality as the CLI commands.
import { bundle } from "@overlayed/cli";

// Bundle with options
await bundle({ debug: true });
This is useful for custom build scripts or tooling integration.