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