Skip to main content

connection set

Rename the specified connection

Usage

m365 connection set [options]

Options

-n, --name <name>

The name of the connection to update.

--newName <newName>

The new name of the connection.

-h, --help [help]

Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are options, examples, remarks, response, full. Default is options.

--query [query]

JMESPath query string. See http://jmespath.org/ for more information and examples.

-o, --output [output]

Output type. json, text, csv, md, none. Default json.

--verbose

Runs command with verbose logging.

--debug

Runs command with debug logging.

Remarks

The value for --name can be found by running m365 connection list. You can update the name of a connection to any value to make switching connections easier.

Examples

Update an existing connection

m365 connection set --name '0bb7cb89-7fae-4775-a01a-c372cc167371' --newName 'myworkaccount'

Response

The command won't return a response on success.

CTRL + M