kamal server
$ kamal server
Commands:
kamal server bootstrap # Set up Docker to run Kamal apps
kamal server exec # Run a custom command on the server (use --help to show options)
kamal server help [COMMAND] # Describe subcommands or one specific subcommand
Bootstrap server
You can run kamal server bootstrap
to setup Docker on your hosts.
It will check if Docker is installed and if not it will attempt to install it via get.docker.com.
$ kamal server bootstrap
Execute command on all servers
Run a custom command on all servers.
$ kamal server exec "date"
Running 'date' on 867.53.0.9...
INFO [e79c62bb] Running /usr/bin/env date on 867.53.0.9
INFO [e79c62bb] Finished in 0.247 seconds with exit status 0 (successful).
App Host: 867.53.0.9
Thu Jun 13 08:06:19 AM UTC 2024
Execute command on primary server
Run a custom command on the primary server.
$ kamal server exec --primary "date"
Running 'date' on 867.53.0.9...
INFO [8bbeb21a] Running /usr/bin/env date on 867.53.0.9
INFO [8bbeb21a] Finished in 0.265 seconds with exit status 0 (successful).
App Host: 867.53.0.9
Thu Jun 13 08:07:09 AM UTC 2024
Execute interactive command on server
Run an interactive command on the server.
$ kamal server exec --interactive "/bin/bash"
Running '/bin/bash' on 867.53.0.9 interactively...
root@server:~#