# CLI overview

> The `5050` CLI deploys, inspects and manages your services from a terminal or CI, and also answers to `railway`.

The `5050` CLI deploys, inspects and manages your services from a terminal or CI, and also answers to `railway`.

## Install

The CLI installs on macOS, Linux and Windows (Windows builds are experimental). On macOS or Linux:

```sh
curl -fsSL https://5050cloud.com/install.sh | sh -s -- --cli
```

It goes to `/usr/local/bin` when that is writable (or you run it as root), else to `~/.local/bin`. Run `5050 alias install` to also answer to `railway`. Release archives for every platform are on the GitHub Releases page.

## Log in and deploy

```sh
5050 login https://console.example.com
cd my-app
5050 init -n my-app
5050 up --new
```

## Commands

| Command | What it does |
|---|---|
| [login](https://5050cloud.com/docs/cli/login), [logout](https://5050cloud.com/docs/cli/logout), [whoami](https://5050cloud.com/docs/cli/whoami) | Manage the stored token |
| [init](https://5050cloud.com/docs/cli/init), [link](https://5050cloud.com/docs/cli/link), [unlink](https://5050cloud.com/docs/cli/unlink) | Create and link projects |
| [status](https://5050cloud.com/docs/cli/status), [list](https://5050cloud.com/docs/cli/list), [open](https://5050cloud.com/docs/cli/open) | See where you are |
| [up](https://5050cloud.com/docs/cli/up) | Upload this directory and deploy it |
| [redeploy](https://5050cloud.com/docs/cli/redeploy), [restart](https://5050cloud.com/docs/cli/restart), [down](https://5050cloud.com/docs/cli/down) | Act on the active deployment |
| [deploy](https://5050cloud.com/docs/cli/deploy), [templates](https://5050cloud.com/docs/cli/templates) | Deploy templates |
| [add](https://5050cloud.com/docs/cli/add) | Add a database, repo, image or empty service |
| [import](https://5050cloud.com/docs/cli/import) | Import from Railway, Docker Compose or Heroku |
| [logs](https://5050cloud.com/docs/cli/logs) | Deploy, build and HTTP logs |
| [variables](https://5050cloud.com/docs/cli/variables) | List, set and delete variables |
| [run](https://5050cloud.com/docs/cli/run), [shell](https://5050cloud.com/docs/cli/shell) | Run local commands with the service's variables |
| [ssh](https://5050cloud.com/docs/cli/ssh) | Shell inside a running replica |
| [connect](https://5050cloud.com/docs/cli/connect) | Database clients through a tunnel |
| [domain](https://5050cloud.com/docs/cli/domain), [tcp-proxy](https://5050cloud.com/docs/cli/tcp-proxy) | Public endpoints |
| [environment](https://5050cloud.com/docs/cli/environment), [service](https://5050cloud.com/docs/cli/service) | Switch and change environments and services |
| [scale](https://5050cloud.com/docs/cli/scale), [volume](https://5050cloud.com/docs/cli/volume), [cron](https://5050cloud.com/docs/cli/cron) | Replicas, volumes and cron runs |
| [metrics](https://5050cloud.com/docs/cli/metrics), [usage](https://5050cloud.com/docs/cli/usage) | Resource use |
| [config](https://5050cloud.com/docs/cli/config) | Export settings to a file |
| [host](https://5050cloud.com/docs/cli/host), [upgrade](https://5050cloud.com/docs/cli/upgrade) | Admin: hosts and upgrades |
| [alias](https://5050cloud.com/docs/cli/alias), [completion](https://5050cloud.com/docs/cli/completion), [version](https://5050cloud.com/docs/cli/version) | The CLI itself |

## Next steps

- [Global options](https://5050cloud.com/docs/cli/global-options)
- [The railway alias](https://5050cloud.com/docs/cli/railway-alias)
