# 5050 link

> Link this directory to a project, environment and service.

Link this directory to a project, environment and service.

## Usage

```sh
5050 link [-p PROJECT] [-e ENVIRONMENT] [-s SERVICE]
```

## Flags

| Flag | Meaning |
|---|---|
| `-p, --project` | Project name or id |
| `-e, --environment` | Environment name or id (default production) |
| `-s, --service` | Service name or id |

## Details

- With no flags on a terminal, numbered prompts let you pick each one.
- Links are stored per absolute directory in `~/.config/5050/config.json`.

## Examples

```sh
5050 link -p shop -e production -s api
```

## Railway equivalent

`railway link` 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).
