> ## Documentation Index
> Fetch the complete documentation index at: https://namespace.so/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# nsc integrations tailscale set

Create or update a named Tailscale integration spec.

`integrations tailscale set` creates or updates a named Tailscale integration
spec for your workspace. A spec captures the Tailscale configuration — such
as the OAuth client to authenticate with, the tags to apply, and whether
MagicDNS is enabled — that instances reference to join a Tailscale network.

Running the command again with the same `<name>` updates the existing spec
in place, so you can adjust its OAuth client, tags, or MagicDNS setting
without recreating it.

## Usage

```bash theme={null}
nsc integrations tailscale set <name> [--enable-magic-dns] [--oauth-client-id <client-id>] [--tag <tag>] [--output <format>]
```

### Example

```bash theme={null}
nsc integrations tailscale set my-network --oauth-client-id k123abc456 --tag tag:server --enable-magic-dns
```

## Options

<h3 id="--enable-magic-dns">
  \--enable-magic-dns
</h3>

Enable Tailscale MagicDNS for the named spec. When enabled, instances joining
the network through this spec can resolve other devices on the tailnet by
their MagicDNS name.

<h3 id="--oauth-client-id-client-id">
  \--oauth-client-id \<client-id>
</h3>

Tailscale OAuth client ID to attach to the named spec. This is the client
`nsc` uses to authenticate with Tailscale when instances join the network
through this spec.

<h3 id="--tag-tag">
  \--tag \<tag>
</h3>

Tailscale tags to add to the named spec. Can be specified multiple times or
as a comma-separated list, and is used to apply [Tailscale ACL
tags](https://tailscale.com/kb/1068/acl-tags) to instances that join through
this spec.

<h3 id="--output--o-format">
  \--output, -o \<format>
</h3>

One of `plain` or `json`. Defaults to `plain`.

## Related Topics

* [nsc integrations tailscale list](/docs/reference/cli/integrations-tailscale-list)
