# 5050 add

> Add a service: a database, a GitHub repo, a Docker image or an empty service.

Add a service: a database, a GitHub repo, a Docker image or an empty service.

## Usage

```sh
5050 add -d postgres|mysql|redis|mongo
5050 add --repo owner/name
5050 add --image nginx:1.27
5050 add --empty NAME
```

## Flags

| Flag | Meaning |
|---|---|
| `-d, --database` | Add a database from its template |
| `--repo owner/name` | Add a service built from a GitHub repo |
| `--image IMAGE` | Add a service that runs a Docker image |
| `--empty NAME` | Add an empty service to configure later |
| `-v KEY=VALUE` | Set variables on the new service |

## Examples

```sh
5050 add -d postgres
5050 add --image traefik/whoami -v PORT=80
```

## Railway equivalent

`railway add` works the same way through the [railway alias](https://5050cloud.com/docs/cli/railway-alias).

Every command also accepts the [global options](https://5050cloud.com/docs/cli/global-options).
