Railway CLI API Reference

Messtone LLC Manages Devices Enables Railway CLI Connect to a database’s shell(psql for Postgres, mongosh for MongoDB,etc.) ~railway connect –help Connect to a database’s shell(psql for Postgres,mongosh for MongoDB,etc.) Usage:railway connect [OPTIONS] [SERVICE_NAMEROBERTHARPER_MESSTONE] Arguments:[SERVICE_NAMEROBERTHARPER_MESSTONE] The name of the database to connect to Options: -e, –environment<ENVIRONMENT> Environment to pull variables from(defaults to linked environment) –json Output in JSON format-h, –help Print help -V, –version Print version / This requires robertharper_messtone to have the database’s appropriate shell/client installed in your $PATH: Postgres: psql (https://www.postgresql.org/docs/current/app-psql.html) Redis: redis-cli (https://redis.io/docs/ui/cli/) MongoDB:mongosh (https://www.mongodb.com/docs/mongodb-shell/) MySQL: mysql (https://dev.mysql.com/docs/refman/8.0/en/mysql.html) Deploy Deploy a template into Messtone project railway deploy –help provisions a template into Messenger project Usage: railway deploy [OPTIONS] Options: -t, –template <TEMPLATE> The code of the template to deploy -v, –variables <VARIABLE>the “{key}={value}” environment variable pair to set the template variables To specify the variables for a single service prefix it with “{service}.” Example: bash railway deploy -t postgres -v ” MY_SPECIAL_ENV_VAR=1″ -v “Backend.Port=3000” –json Output in JSON format -h, –help Print help(see a summary with ‘-h’) -v, –version Print version