# connect

> Connect an account at a connector's vendor: the fields its form takes (a value of - reads stdin for one field, and @<file> reads a file only you can read, so a secret stays out of your shell history), or with none, the OAuth link to open. --org connects the organization's (owners and admins); --write asks for the write access a write refused with write_consent_required needs.

Connect an account at a connector's vendor: the fields its form takes (a value of - reads stdin for one field, and @<file> reads a file only you can read, so a secret stays out of your shell history), or with none, the OAuth link to open. --org connects the organization's (owners and admins); --write asks for the write access a write refused with write_consent_required needs.

## nexus connect

```sh
nexus connect <connector> [--org] [--write] [field=value ...]
```

Connect an account at a connector's vendor: the fields its form takes (a value of - reads stdin for one field, and @<file> reads a file only you can read, so a secret stays out of your shell history), or with none, the OAuth link to open. --org connects the organization's (owners and admins); --write asks for the write access a write refused with write_consent_required needs.

| Option | Meaning |
| --- | --- |
| `--org` | The organization's account, not your own (owners and admins) |
| `--write` | Allow writes: the OAuth link asks the vendor for the write scopes, not only the reads |

```sh
echo "$JIRA_TOKEN" | nexus connect jira site=acme.atlassian.net email=ada@acme.example token=-
nexus connect notion
nexus connect microsoft-todo --write
nexus connect jira --org site=acme.atlassian.net email=ada@acme.example token=-
echo "$DD_API_KEY" | nexus connect datadog --org site=datadoghq.com api_key=- application_key=@dd-app.key
```
