mw toolforge shell
Releasev0.35.0 · cfeceb67
mw toolforge shell [flags] -- [command arguments...]Open an interactive SSH session or execute a command on Toolforge. Select a tool
account with --tool; commands then use that account’s login environment and home
directory. Without --tool, use your normal Toolforge login account.
shell and its compatibility alias exec use the upstream Toolforge CLI. Put
-- before a remote command with flags. Arguments, including spaces, quotes and
shell metacharacters, are preserved literally. To use a pipeline or redirection,
invoke sh -c explicitly. SSH and remote-command failures produce a nonzero exit
status.
Toolforge SSH access must already be configured. --beta selects toolsbeta;
--lima uses the local lima-kilo SSH configuration.
Global options
Section titled “Global options”Examples
Section titled “Examples”mw toolforge shell # Open an interactive Toolforge sessionmw toolforge shell --tool=mytool # Open a login shell as a toolmw toolforge shell --tool=mytool -- printf '%s\n' 'hello world' # Preserve a single argument containing spacesmw toolforge shell --tool=mytool whoami # Check the tool account identitymw toolforge shell --tool=mytool webservice -- --backend=kubernetes start # Pass flags to a remote commandmw toolforge shell --tool=mytool -- sh -c 'printf hello | wc -c' # Explicitly request remote shell syntaxSee also
Section titled “See also”Page views: —Sessions: —