# createLink

Creates a named connection link to a MongoDB® instance for use in data ingest.

## Syntax

```mongodb
db.runCommand({
    createLink: <string>,
    uri: <string>,
})
```

| Option       | Type   | Description                                                                                                                                          |
| ------------ | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| `createLink` | String | Specifies the name of the link.                                                                                                                      |
| `uri`        | String | The URI for the remoteMongoDB®instance, in`mongodb://<user>:<password>@host:27017`format. ForMongoDB®Atlas instances, use the`mongodb+srv://`scheme. |

## Example

The following example defines a link named **lnkExample**:

```mongodb
db.runCommand({
  createLink: "lnkExample",
  uri: "mongodb://admin:pa55w0rd@svchost:27017",
});
```

***

Modified at: January 4, 2024

Source: [/cloud/reference/singlestore-kai/singlestore-extension-commands/createlink/](https://docs.singlestore.com/cloud/reference/singlestore-kai/singlestore-extension-commands/createlink/)

(An index of the documentation is available at /llms.txt)
