Skip to main content

lumen connect

Commandlumen connect

Add a connection (a Connector) to the workspace. lumen asks what the connection type needs, with the type's own help text, tests the details, then creates the connection and its secret together and waits until it is ready.

Secrets are never taken as flag values: they are asked with hidden input, or read with --secret-env, --secret-stdin or --secret-file. Without a terminal, or with --yes, nothing is asked: every missing value is an error that lists the flags to add.

Exit codes: 0 created and ready, 1 other error, 2 input (missing, invalid, unknown type, name exists), 3 test failed, 4 saved but not ready in time, 5 permission denied.

Usage​

lumen connect [CLASS] [NAME] [flags]

Examples​

lumen connect imap-mailbox --preset gmail
lumen connect imap-mailbox gmail --preset gmail --set username=ops@acme.com \
--secret-env password=GMAIL_APP_PW --yes -o json

Flags​

FlagShortValueDescription
--display-name-stringthe name people see for the connection (optional; without one it is named from its settings)
--no-wait--do not wait for the connection to be ready
--output-ostringoutput format: json
--preset-stringstart from one of the type's presets (for imap-mailbox: gmail, yahoo, icloud, other)
--secret-env-stringArraya secret from an environment variable, KEY=VARIABLE; repeatable
--secret-file-stringArraya secret from a file, KEY=PATH; repeatable
--secret-stdin-stringread the secret KEY from stdin (one value; a trailing newline is dropped)
--set-stringArraya setting, KEY=VALUE (never a secret); repeatable
--wait-durationhow long to wait for the connection to be ready (default 1m0s)
--yes-y-ask nothing; fail on anything missing

Global flags​

Every command takes the global flags.