Logo

Command Palette

Search for a command to run...

register server

A shortcut to run the server registration script on a group of servers.

$ cx register-server [--org <organization>] [--server <IP address>] [--file <filename.txt>] [--user <username>] [--key <private SSH key>] [--force-local-ip <bool>] [--tags <tagA,tagB>]

Options

ArgumentRequired?DefaultDescription
--server <IP address>either/orThe public IP address of the server to register
--file <filename.txt>either/orA text file containing a list of IP addresses for servers (one per line)
--org <organization>yesThe name of the Cloud 66 organization to which the server(s) must be added
--user <username>yesThe username to use when connecting to server(s)
--key <private SSH key>yesThe private SSH key to use to connect to the server(s)
--force-local-ip <bool>nofalseUse the local ip address of the registered server
--tags <tagA,tagB>noComma separated list of tags to add to the server(s)

Examples

$ cx register-server --org team --user root --server 149.56.134.22 --key ~/.ssh/private_key
$ cx register-server --org team --user ubuntu --file servers.txt --key ~/.ssh/private_key
$ cx register-server --org team --user ubuntu --file servers.txt --key ~/.ssh/private_key --force-local-ip true
$ cx register-server --org team --user ubuntu --file servers.txt --key ~/.ssh/private_key --tags "dc 1,az2"