maton connection create

maton connection create <app> [flags]

Create a connection to a third-party app. By default this opens your browser to complete the OAuth handshake and waits until the connection becomes active. Use –interactive on a headless host to skip the browser launch.

Options

-i, --interactive
Skip launching the browser; print the URL and wait
--interval <duration> (default "2s")
Polling interval while waiting for the connection to become active
-q, --jq <expression>
Filter JSON output using a jq expression
--json <fields>
Output JSON with the specified fields
--method <string>
Connection method: {API_KEY|BASIC|JWT|OAUTH1|OAUTH2|MCP}
-t, --template <string>
Format JSON output using a Go template; see "maton help formatting"
--timeout <duration> (default "5m0s")
Maximum time to wait for the connection to become active

Options inherited from parent commands

-p, --profile <string>
Profile to use for this invocation (overrides the active profile; also reads MATON_PROFILE)

JSON Fields

app, connectionId, creationTime, lastUpdatedTime, metadata, method, status, url

Examples

$ maton connection create slack
$ maton connection create slack --interactive
$ maton connection create slack --method OAUTH2
$ maton connection create slack --json connectionId,status

See also