Merge pull request #646 from nickhammond/server/exec

Add in a server exec command for running ad-hoc commands directly on the server
This commit is contained in:
Donal McBreen
2024-05-21 11:34:20 +01:00
committed by GitHub
3 changed files with 37 additions and 1 deletions

View File

@@ -69,7 +69,7 @@ class Kamal::Cli::App < Kamal::Cli::Base
end
end
desc "exec [CMD]", "Execute a custom command on servers (use --help to show options)"
desc "exec [CMD]", "Execute a custom command on servers within the app container (use --help to show options)"
option :interactive, aliases: "-i", type: :boolean, default: false, desc: "Execute command over ssh for an interactive shell (use for console/bash)"
option :reuse, type: :boolean, default: false, desc: "Reuse currently running container instead of starting a new one"
option :env, aliases: "-e", type: :hash, desc: "Set environment variables for the command"