Features

Create new apps

scalingo create

scalingo create my-app

# Create a new app with a custom Git remote
scalingo --remote staging create my-app 
scalingo --remote production create my-app 
scalingo --remote custom create my-app 

Setup your account SSH keys

scalingo keys|keys-add|keys-remove

scalingo keys
scalingo keys-add "Laptop SSH key" $HOME/.ssh/id_ed25519.pub
scalingo keys-remove "Laptop SSH key"

Configure their environment

scalingo env|env-set|env-unset

scalingo --app my-app env
scalingo --app my-app env-set NODE_ENV=production
scalingo --app my-app env-unset NODE_ENV

Configure custom domain names

scalingo domains|domains-add|domains-ssl|domains-remove

scalingo --app my-app domains
scalingo --app my-app domains-add example.com
scalingo --app my-app domains-ssl example.com --cert file.crt --key file.key
scalingo --app my-app domains-remove example.com

Configure canonical domain name

scalingo set-canonical-domain|unset-canonical-domain

scalingo --app my-app set-canonical-domain example.com
scalingo --app my-app unset-canonical-domain

Configure router

scalingo sticky-session|force-https

scalingo --app my-app sticky-session --enable
scalingo --app my-app sticky-session --disable
scalingo --app my-app force-https --enable
scalingo --app my-app force-https --disable

Manage collaborators of the application

scalingo collaborators|collaborators-add|collaborators-remove

scalingo --app my-app collaborators
scalingo --app my-app collaborators-add user@example.com
scalingo --app my-app collaborators-remove user@example.com

List existing addons and plans

scalingo addons-list|addons-plans

scalingo addons-list
scalingo addons-plans mongodb

Manage addons of your applications

scalingo addons|addons-add|addons-remove|addons-upgrade

scalingo --app my-app addons
scalingo --app my-app addons-add mongodb 1g
scalingo --app my-app addons-remove my-app_12345
scalingo --app my-app addons-upgrade my-app_12345 2g

# Display logs for addon
scalingo --app my-app --addon addon-uuid logs

Download backups of your applications addons

scalingo backups|backups-download

# List backups
scalingo --addon addon-uuid backups

# Download backup
scalingo --addon addon-uuid backups-download --backup $BACKUP_ID

# Download last backup
scalingo --addon addon-uuid backups-download

# Set output path
scalingo --addon addon-uuid backups-download --output tmp

# Do not show the progress bar and loading messages
scalingo --addon addon-uuid backups-download --silent

Read and watch the logs

scalingo logs

# Display the last 1000 lines of log
scalingo --app my-app logs -n 1000

# Display logs for addon
scalingo --app my-app --addon addon-uuid logs

# Follow the logs of your application in real-time
scalingo --app my-app logs -f

# Filter your logs by container type
scalingo --app my-app logs -F "web"
scalingo --app my-app logs --filter "worker"
scalingo --app my-app logs -F "web|worker"

List the logs archives

scalingo logs-archives

# Display the last 10 logs archives
scalingo --app my-app logs-archives

# Follow the 2nd page of logs archives (from 11 to 20)
scalingo --app my-app logs-archives --page 2

Run custom job

scalingo run

scalingo --app my-app run bundle exec rails console

# Define custom environment variables into the one-off container
scalingo --app my-app run --env CUSTOM_ENV=value --env ENV_EXAMPLE=custom <command>

# Upload a file to the one-off container (target is /tmp/uploads)
scalingo --app my-app run --file ./dump.sql <command>

# Start the one-off container with a specific size of container
scalingo --app my-app run --size 2XL <command>

Get metrics of your application

scalingo stats

# Get the current stats of the containers of your app
scalingo --app my-app stats

# Display and update every 10 seconds the stats of the containers of your app
scalingo --app my-app stats --stream

Access your database

scalingo mongo-console|redis-console|mysql-console|pgsql-console|db-tunnel

scalingo --app my-app mongo-console
scalingo --app my-app redis-console
scalingo --app my-app mysql-console
scalingo --app my-app pgsql-console

# Build an encrypted tunnel to access your database
scalingo --app my-app db-tunnel MONGO_URL

Manage containers, scale, send signal

scalingo ps|restart|scale|one-off-stop

scalingo --app my-app ps
scalingo --app my-app restart web-1
scalingo --app my-app scale web:2
scalingo --app my-app scale worker:2:L
scalingo --app my-app scale clock:0
scalingo --app my-app one-off-stop one-off-1234
scalingo --app my-app send-signal --signal SIGUSR1 web
scalingo --app my-app send-signal --signal SIGUSR2 web-1 web-2

Check the logged in user

scalingo self|whoami

# Return the logged in user with either command
scalingo self
scalingo whoami

Suggest edits

Features

©2024 Scalingo