Skip to main content

Installation

Usage

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. This is required for local development.

overlayed logout

Log out of the currently authenticated account.

overlayed whoami

Display information about the currently authenticated user.

overlayed init

Initialize your local development environment. This command:
  • Fetches your application metadata from the Overlayed API
  • Creates a .overlayed/meta.json file with cached application data
  • Must be run after overlayed login and in a directory with an overlayed.config.ts file
This only needs to be run once per project.

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: Examples:
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.
This is useful for custom build scripts or tooling integration.