Skip to content
Dashboard

Quickstart

Copy page
View as Markdown

Grayspar is the cloud for private apps. Deploy your app with one command and share it like a Google Doc, with only the people you invite.

This guide installs the CLI, deploys an app and shares it with one person. You need Node.js 22 or later, and an app in a folder. The app can be in any language.

To install the CLI, run:

Terminal window
npm install -g @grayspar/cli

Run grayspar login:

Terminal window
grayspar login

Your browser opens a Grayspar page where you log in, and your first login creates your account. Approve the login on that page, and the terminal confirms your account:

Terminal window
✓ Logged in as you@example.com

In your app’s folder, run grayspar deploy:

Terminal window
cd <app-folder>
grayspar deploy

The CLI asks for a project name and suggests the folder’s name. The name becomes part of the project’s address, so it can contain lowercase letters, numbers and single hyphens. If you already have projects, choose Create a new project first.

Grayspar reads your files and shows the services it found. A folder that holds one app becomes one service, called app:

Terminal window
Found 1 service
SERVICE BUILT WITH
app Next.js

Grayspar then builds the service and deploys the project. When the service is running, the CLI prints its address:

Terminal window
✓ Deployed <project-name>
SERVICE URL STATUS
app https://<project-name>.grayspar.com Running

If your folder has .env files, the CLI asks before it sends their variables to Grayspar. Variables explains what it sends.

The first deploy also links the folder to the project, so later commands in this folder act on the same project.

Open the address in your browser and log in with the same account. Your app opens.

Projects are private by default. Until you share the project, anyone outside your team who opens the address sees a page saying the project is private.

To share the project with someone, run grayspar access add with their email address:

Terminal window
grayspar access add alice@example.com

Grayspar sends Alice an email with a link to the project. Alice opens the link, logs in, and your app opens. Your app needs no login code of its own.

  • Share a project covers sharing with a whole company and removing access.
  • Volumes keeps your app’s files across deploys, such as a SQLite database or uploads.
  • Grayspar for agents lets a coding agent deploy and share for you.