# exo compute instance security-group add
### Description

This command adds a Compute instance to Security Groups.

Supported output template annotations: .ID, .Name, .CreationDate, .InstanceType, .Template, .Zone, .AntiAffinityGroups, .DeployTarget, .SecurityGroups, .PrivateInstance, .PrivateNetworks, .ElasticIPs, .PublicIPAssignment, .IPAddress, .IPv6Address, .SSHKey, .DiskSize, .State, .Labels, .SecureBoot, .Tpm, .ReverseDNS, .AppConsistentSnapshot

```
exo compute instance security-group add INSTANCE-NAME|ID SECURITY-GROUP-NAME|ID... [flags]
```

### Options

| Option | Description |
|---------|------------|
|`--help, -h` | help for add |
|`--zone, -z` | instance zone |


### Options inherited from parent commands

| Option | Description |
|---------|------------|
|`--config, -C` | Specify an alternate config file [env EXOSCALE_CONFIG] |
|`--output-format, -O` | Output format (table\|json\|text), see &#34;exo output --help&#34; for more information |
|`--output-template` | Template to use if output format is &#34;text&#34; |
|`--quiet, -Q` | Quiet mode (disable non-essential command output) |
|`--timeout` | Per-zone timeout for list operations; -1s disables timeout [env EXOSCALE_TIMEOUT] |
|`--use-account, -A` | Account to use in config file [env EXOSCALE_ACCOUNT] |


### Related Commands

* [security-group]({{< ref "../security-group">}})	 - Manage Compute instance Security Groups


