# Install with the setup script

> One command that asks a few questions, writes the compose file for you and starts Songstress.

Page: https://songstress.app/docs/getting-started/install-script/

If you'd rather answer questions than edit files, the setup script does the work of
[Install with Docker Compose](/docs/getting-started/install-docker-compose/) for you. It runs on Linux and macOS,
on a 64-bit machine, with Docker installed. On Windows, run it inside WSL 2.

## Run it [#run-it]

```sh title="Terminal"
curl -fsSL https://raw.githubusercontent.com/pacholoamit/songstress-releases/main/install.sh | sh
```

The script downloads the `songstress` command, checks it against its published checksum, and installs it in
`~/.local/bin` (or `/usr/local/bin`). Then it starts the setup.

## Answer its questions [#answer-its-questions]

1. **Install directory.** Where Songstress lives. The default is `~/songstress`.
2. **Music library path.** The folder that holds your music.
3. **Route downloads through your VPN?** Say yes only if you have a WireGuard key for a VPN. See
   [Compose files](/docs/reference/compose/).
4. **Dashboard port.** The port for the web app. The default is 8090.
5. **Admin email** and **Admin password.** Let it generate a password (recommended), choose your own, or skip and
   create the admin in the app.
6. **Share diagnostics?** Whether Songstress sends diagnostics. See
   [Security and privacy](/docs/admin/security/).
7. **Set up email (SMTP)?** Optional, for invites and password resets.

It writes `compose.yaml` and `.env` (which holds your passwords, readable only by you) into the install directory,
starts Songstress, and waits until the server, its worker and your library all answer. Then it shows the address to
open.

If you skipped the admin account, open that address now and
[create it](/docs/getting-started/first-run/). Until you do, anyone who can open the page can.

## Update [#update]

Run the same command again. It keeps your answers and passwords, moves to the release it was tested with, and
keeps the files it replaced in a `previous` folder.

When an update is out, admins see **Update available** in Settings, with this command ready to copy.

## Run it without questions [#run-it-without-questions]

Everything after `--` goes to the setup. For example, to update an install in another folder without being asked:

```sh title="Terminal"
curl -fsSL https://raw.githubusercontent.com/pacholoamit/songstress-releases/main/install.sh | sh -s -- --yes --install-dir /srv/songstress
```

`songstress install --help` lists every option.
