CLI feature request: SSH console commands

Often I’ll wrap useful commands to get directly where I want on a remote console. This is easy with ssh: ssh host command.

It would be great if fly ssh console supported this, for example: flyctl ssh console 'bin/rails c'

3 Likes

That’s a good idea, should be doable!

To save the next person an extra click, this is now available as fly ssh console -C "command"

1 Like