Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport of Docs: Update CLI job tag unset into stable-website #24281

Merged
merged 1 commit into from
Oct 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 20 additions & 8 deletions website/content/docs/commands/job/tag.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ following subcommands:
nomad job tag <subcommand> [options] [args]
```

## General options

Use these optional general options with the subcommands.

@include 'general_options.mdx'

## Apply

Use `job tag apply` to create or modify a version tag.
Expand All @@ -38,6 +32,15 @@ Use `job tag apply` to create or modify a version tag.
nomad job tag apply [options] <job_id>
```

### General options

<details>
<summary>Expand for general options</summary>

@include 'general_options.mdx'

</details>

### Apply options

- `name`: Specifies the name of the tag. Must be unique per job.
Expand Down Expand Up @@ -69,9 +72,18 @@ Use `nomad job tag unset` to delete a tag from a version. This command requires
### Unset usage

```shell-session
nomad job tag unset [options] <job_id> -name <tag>
nomad job tag unset [options] <job_id>
```

### General options

<details>
<summary>Expand for general options</summary>

@include 'general_options.mdx'

</details>

### Unset options

- `name`: Specifies the name of the tag to remove from the job version.
Expand All @@ -81,7 +93,7 @@ nomad job tag unset [options] <job_id> -name <tag>
This example removes the `golden-version` tag from the `hello-world` job.

```shell-session
$ nomad job tag unset hello-world -name "golden-version"
$ nomad job tag unset -name "golden-version" hello-world
```

[diff]: /nomad/docs/commands/job/history/
Expand Down