Kamal Aliases
November 14, 2025
One thing that wasn't immediately obvious to me was that Kamal comes with aliases. Think of them as commands that you can run locally that execute on your remote servers. Kamal comes with the following aliases already setup in config/deploy.yml
console: app exec --interactive --reuse "bin/rails console"
shell: app exec --interactive --reuse "bash"
logs: app logs -f
dbc: app exec --interactive --reuse "bin/rails dbconsole"
So running kamal shell locally in your project will ssh into your server and give you an interactive shell in your running container.
kamal logs will ssh in and tail the logs in your running container.
Incredibly useful and you can add your own.