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

# infraudit recommendation — AI recommendation commands

> infraudit recommendation list, get, generate — view AI-powered cost and security suggestions. Key flags: --type cost|security, --priority, --status pending.

The `recommendation` command group (alias: `rec`) surfaces AI-powered optimization suggestions generated by InfraAudit's Gemini-backed analysis engine. Recommendations cover cost savings, security hardening, and compliance improvements.

## `recommendation list`

List recommendations with optional filters.

**Synopsis:**

```bash theme={null}
infraudit recommendation list [flags]
infraudit rec list [flags]
```

| Flag         | Values                            | Description                       |
| ------------ | --------------------------------- | --------------------------------- |
| `--type`     | `cost`, `performance`, `security` | Filter by recommendation category |
| `--priority` | `high`, `medium`, `low`           | Filter by priority level          |
| `--status`   | `pending`, `applied`, `dismissed` | Filter by action status           |

Examples:

```bash theme={null}
# List all recommendations
infraudit recommendation list

# Show high-priority cost recommendations
infraudit rec list --type cost --priority high

# Show pending security recommendations
infraudit rec list --type security --status pending

# Sum estimated savings across all cost recommendations
infraudit rec list --type cost -o json | jq '[.[].estimated_savings] | add'
```

## `recommendation get`

Show full details for a specific recommendation, including the rationale, estimated impact, and suggested actions:

**Synopsis:**

```bash theme={null}
infraudit recommendation get <recommendation-id>
infraudit rec get <recommendation-id>
```

Example:

```bash theme={null}
infraudit rec get 10
```

## `recommendation generate`

Trigger a new AI analysis run to generate fresh recommendations based on the current state of your infrastructure:

```bash theme={null}
infraudit recommendation generate
infraudit rec generate
```

## `recommendation savings`

Show the total potential savings across all pending cost recommendations:

```bash theme={null}
infraudit rec savings
```

## `recommendation apply`

Mark a recommendation as applied:

**Synopsis:**

```bash theme={null}
infraudit recommendation apply <recommendation-id>
infraudit rec apply <recommendation-id>
```

Example:

```bash theme={null}
infraudit rec apply 10
```

## `recommendation dismiss`

Dismiss a recommendation so it no longer appears in the default list:

**Synopsis:**

```bash theme={null}
infraudit recommendation dismiss <recommendation-id>
infraudit rec dismiss <recommendation-id>
```

Example:

```bash theme={null}
infraudit rec dismiss 10
```

<Note>
  For automated, approval-gated fix execution, use the [`remediation`](/cli/commands/remediation) command group. Recommendations describe what to change; remediations execute the change against live infrastructure.
</Note>
