The Gateways CLI (Documentation Index
Fetch the complete documentation index at: https://docs.gateways.app/llms.txt
Use this file to discover all available pages before exploring further.
gateways, also installed as gws-cli) talks to the Gateways API: sign in, attach a local folder to a project and environment, push upload-type applications and static sites, and open SSH to instances.
API base URL
In this repository, the CLI uses a fixed API base URL:http://localhost:3033 (see DefaultAPIURL in the CLI source). It is not overridden by environment variables in the open-source tree. Use a build and installer that match the Gateways API you target (for example local backend vs hosted). Run gateways config to confirm where credentials are stored.
Quick start
From your app directory:init writes .gateways.yaml with project and environment slugs. You must be signed in; the CLI checks that the project and environment exist and that you have access. If the file already exists, init updates project and environment (and optional path); other fields are preserved. Remove the file with gateways reset.
Next steps
Install
macOS, Linux, Windows, checkout, and build from source.
Project file
.gateways.yaml fields for path, push target, commands, and ignores.Command reference
Full command reference:
push, deploy, connect, and more.Related
- REST API — Endpoints the CLI calls.
- Console overview — Project and environment slugs match
/{project}/{environment}in the browser.
cli/README.md in the Gateways repository.