4.2

You are viewing documentation for an older version of Lenses.io View latest documentation here

Connections

The CLI can manage connections.

Viewing connections 

lenses-cli connections

Viewing connection details 

lenses-cli connections get --name connection-name

Creating a connection 

lenses-cli connections create \
    --name SlackConnection \
    --template-name Slack \
    --tag slack \ --tag \connection --tag slack-connection \
    --connection-config '[{"key":"webhookUrl","value":"https://hooks.slack.com/"}]'

Update a connection 

lenses-cli connections update --name SlackConnection \
    --tag slack --tag connection --tag slack-connection \
    --connection-config '[{"key":"webhookUrl","value":"https://hooks.slack.com/"}]'

Delete a connection 

lenses-cli connections delete --name SlackConnection