# Quickstart

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

To install the CLI, run:

```sh
npm install -g @grayspar/cli
```

## Log in

Run `grayspar login`:

```sh
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:

```text frame="terminal"
✓ Logged in as you@example.com
```

## Deploy your app

In your app's folder, run `grayspar deploy`:

```sh
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`:

```text frame="terminal"
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:

```text frame="terminal"
✓ 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](/docs/deploy/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

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

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

```sh
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.

## Next steps

- [Share a project](/docs/sharing/share-a-project/) covers sharing with a whole company and removing access.
- [Volumes](/docs/deploy/volumes/) keeps your app's files across deploys, such as a SQLite database or uploads.
- [Grayspar for agents](/docs/agents/) lets a coding agent deploy and share for you.