---
title: "oz0 index verify"
description: "Usage and flags for oz0 index verify."
canonical_url: "https://docs.oz0.ai/reference/cli/oz0/index/verify"
---
# oz0 index verify

> Usage and flags for oz0 index verify.

For: Operators and developers looking up a command.

Check a signed index.json as a server does before it takes a copy: a signature by an online key that the root key (--root-key, base64, or a key file) certified for this index, a certificate and an index that have not expired, and a payload that matches the schema. --print writes the payload.

With --detail-dir, every version's detail document must be in the folder, with the SHA-256 and size the index pins, and read as a listing whose compact form is the version's generated part, as an index's site checks.

## Usage

```bash
oz0 index verify <index.json> [flags]
```

## Flags

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

<tbody>
  <tr>
    <td>
      <code>
        --detail-dir
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      
    </td>
    
    <td>
      also check the versions' detail documents in this folder, as index sign wrote them
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --print
      </code>
    </td>
    
    <td>
      bool
    </td>
    
    <td>
      
    </td>
    
    <td>
      print the verified payload
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --root-key
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      
    </td>
    
    <td>
      the root key: base64, or the root's key file; several separated by commas
    </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.
