Files
nomad/website/content/docs/commands/recommendation/list.mdx
Aimee Ukasick 23fd87d9c9 Docs: Commands section move "General options" to page bottom (#26001)
* sectionless files plus acl section

* alloc section

* config, deployment sections

* job section

* licence, namespace

* node, node-pool

* operator

* plugin, quota, recommendation

* scaling, sentinel, server, service, system, var, volume

* Add "ENT" label to left nav for enterprise commands

* job tag break into separate folder and files; update options header
2025-06-12 14:31:38 -05:00

64 lines
2.0 KiB
Plaintext

---
layout: docs
page_title: 'nomad recommendation list command reference'
description: |
The `nomad recommendation list` command displays a list of available recommendations in Nomad Enterprise. Filter options include job, group, and task.
---
# `nomad recommendation list` command reference
The `recommendation list` command is used to list the available recommendations.
<EnterpriseAlert product="nomad"/>
## Usage
```plaintext
nomad recommendation list [options]
```
The `recommendation list` command requires no arguments.
When ACLs are enabled, this command requires a token with the `submit-job`,
`read-job`, and `submit-recommendation` capabilities for the namespace being
queried.
## Options
- `-job`: Specifies the job ID to filter the recommendations list by.
- `-group`: Specifies the task group name to filter within a job. If specified,
the `-job` flag must also be specified.
- `-task`: Specifies the task name to filter within a job and task group. If
specified, the `-job` and `-group` flags must also be specified.
- `-json`: Output the recommendations in its JSON format.
- `-t`: Format and display the recommendations using a Go template.
## Examples
List all available recommendations:
```shell-session
$ nomad recommendation list
ID Job Group Task Resource Value
ea130ac3-1410-cfe0-f34d-adc3ca94712d example cache-lb nginx CPU 57
68236421-c90f-efa6-fc02-37ae2d59bf03 example cache redis CPU 57
980c2554-7a1b-0c51-933a-f46850a228bd example cache redis MemoryMB 10
```
List all available recommendations for the job `example` and the task group `cache`:
```shell-session
$ nomad recommendation list -job=example -group=cache
ID Job Group Task Resource Value
68236421-c90f-efa6-fc02-37ae2d59bf03 example cache redis CPU 57
980c2554-7a1b-0c51-933a-f46850a228bd example cache redis MemoryMB 10
```
## General options
@include 'general_options.mdx'