---
title: "oz0 replay privilege test"
description: "Usage and flags for oz0 replay privilege test."
canonical_url: "https://docs.oz0.ai/reference/cli/oz0/replay/privilege/test"
---
# oz0 replay privilege test

> Usage and flags for oz0 replay privilege test.

For: Operators and developers looking up a command.

Starts a policy replay whose candidate is the privilege replay's suggestion, its rules acting with the preset origin privilege, over --since (the window the privilege replay read, by default 7 days); with --agent, that agent's rules over its jobs. A suggestion that refuses only what the agents never called changes no call they made; the report shows the calls it would have changed, such as one a person was asked about and said no to. Nothing is applied.

## Usage

```bash
oz0 replay privilege test ID [--agent A] [--since 7d] [--wait] [flags]
```

## Flags

<table>
<thead>
  <tr>
    <th>
      Flag
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        --agent
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      
    </td>
    
    <td>
      only this agent's jobs
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --json
      </code>
    </td>
    
    <td>
      bool
    </td>
    
    <td>
      
    </td>
    
    <td>
      print JSON instead of a table
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --max-jobs
      </code>
    </td>
    
    <td>
      int32
    </td>
    
    <td>
      <code>
        2000, at most 10000
      </code>
    </td>
    
    <td>
      at most this many jobs, newest first
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --plugin
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      
    </td>
    
    <td>
      only the jobs of this plugin's agents
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --poll
      </code>
    </td>
    
    <td>
      duration
    </td>
    
    <td>
      <code>
        2s
      </code>
    </td>
    
    <td>
      with --wait, how often to look
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --since
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        7d
      </code>
    </td>
    
    <td>
      how far back to read: 7d, 36h, 90m
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --tenant
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        default
      </code>
    </td>
    
    <td>
      tenant
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --wait
      </code>
    </td>
    
    <td>
      bool
    </td>
    
    <td>
      
    </td>
    
    <td>
      wait for the report and print it
    </td>
  </tr>
</tbody>
</table>

## Inherited flags

<table>
<thead>
  <tr>
    <th>
      Flag
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        --context
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        $OZ0_CONTEXT or &lt;config dir>/orchestrator-zero/context.json
      </code>
    </td>
    
    <td>
      CLI context file written by server init
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --log-level
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        info
      </code>
    </td>
    
    <td>
      log level: debug, info, warn or error
    </td>
  </tr>
</tbody>
</table>

See [all `oz0` commands](https://docs.oz0.ai/reference/cli/oz0) and the [global flags](https://docs.oz0.ai/reference/cli/oz0#global-flags).


## Sitemap

See the full [sitemap](https://docs.oz0.ai/sitemap.md) for all pages.
