nxc connect
Opens one or more terminal sessions into the deployed nodes. By default, it will connect to all nodes, but we can specify which ones to connect to.
To connect to several machines at once. For this, we use a tmux (terminal multiplexer) session. Feel free to refer to the tmux documentation (or its cheatsheet), especially for the shortcuts to navigate between the different tabs.
Examples
-
nxc connectOpen a Tmux session with on panel for each node.
-
nxc connect serverConnect to the
servernode. It runs on the current shell (Tmux is not used in this case)
Usage
nxc connect [OPTIONS] [HOST]...
Options
-
-l, --userDefault:
root -
-g, --geometryTmux geometry, 2 splitting indications are supported: +/, examples: "1+3+2" (3 adjacent panes respectively horizontally splited by 1,3 and 2), "23" (2 adjacent panes horizontally splitted by 3) -
-d, --deployment-fileDeployment file, take the latest created in deploy directory by default -
-f, --flavourflavour, by default it's extracted from deployment file name -
-i, --identity-filepath to the ssh public private used to connect to the deployments -
-pc, --pane-consoleAdd a pane console Default:False -
host -
--helpShow this message and exit. Default:False