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.

Update Checks

Every command checks npm for a newer @overlayed/cli, and overlayed bundle also checks the @overlayed/app and @overlayed/electron versions installed in your project. If any are out of date, a warning is printed to stderr before the command runs. The check never fails a command: if the registry can’t be reached or doesn’t answer within 1.5 seconds, it is skipped silently. Snapshot installs (e.g. @canary) are not checked.

Commands

overlayed login

Authenticate with the Overlayed platform. This is required for local development. Opens the dashboard’s API key creation page with the key name prefilled as cli and the asset bundle read and write permissions preselected, so the resulting key can run overlayed bundle without further setup. The permissions are only a starting point — add or remove any of them before creating the key.

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: Each uploaded bundle prints a link to its own build job in the dashboard, where you can follow its progress. 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.