alpine tag
Description
Adds or removes tags from an instance. Tags are useful for organizing and managing groups of instances.
Usage
alpine tag [-r] <instance> <tag1> [<tag2>...]
Flags
| Flag | Shorthand | Type | Default | Description |
|---|---|---|---|---|
--remove |
-r |
bool | false |
Remove the specified tag(s) instead of adding them. |
Details
Tags can be used in most multi-instance commands (like start, stop, delete) by prefixing the tag name with a +.
# Add 'web' and 'prod' tags to server1
alpine tag server1 web prod
# Add 'db' and 'prod' tags to server2
alpine tag server2 db prod
# Start all production servers
alpine start +prod
# Remove the 'web' tag from server1
alpine tag -r server1 web