Quickstart
Copy page
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.
Install the CLI
Section titled “Install the CLI”To install the CLI, run:
npm install -g @grayspar/cliLog in
Section titled “Log in”Run grayspar login:
grayspar loginYour 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:
✓ Logged in as you@example.comDeploy your app
Section titled “Deploy your app”In your app’s folder, run grayspar deploy:
cd <app-folder>grayspar deployThe 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:
Found 1 service
SERVICE BUILT WITHapp Next.jsGrayspar then builds the service and deploys the project. When the service is running, the CLI prints its address:
✓ Deployed <project-name>
SERVICE URL STATUSapp https://<project-name>.grayspar.com RunningIf 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 your app
Section titled “Open your app”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.
Share your app
Section titled “Share your app”To share the project with someone, run grayspar access add with their email address:
grayspar access add alice@example.comGrayspar 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.
Next steps
Section titled “Next steps”- 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.