# sdm connect

```shell
NAME:
   sdm connect - open port to resource

USAGE:
   sdm connect [command options] name/ID [port]

OPTIONS:
   --all, -a       connect to all datasources. Port overrides must be enabled.
   --filter value  filter e.g. 'field:name tag:key=value ...'
   --filters-help  show valid filter strings and examples
```

### Resource Connection Limits

Depending on your operating system, you may be limited in the number of resources to which you can connect. This limit is known as the file descriptor limit. Standard limits are as follows:

* Linux-based: 1,024 resources
* MacOS: 256 resources
* Windows: 512 resources

Note the following potential scenarios that may occur if you reach the limit for your OS:

* If you run `sdm connect --all` and the number of resources you currently have access to is greater than the standard limit for your OS, the operation may fail.
* If you run `sdm connect --filter` and the number of results for that filter is greater than the standard limit for your OS, the operation may fail.

For more information on the use of filters in the CLI, see the [Filters](/references/cli/filters.md) documentation.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.strongdm.com/references/cli/connect.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
