---
title: "oz0 index keygen"
description: "Make an Ed25519 key in a new file, readable only by you, and print its public key."
canonical_url: "https://docs.oz0.ai/reference/cli/oz0/index/keygen"
---
# oz0 index keygen

> Make an Ed25519 key in a new file, readable only by you, and print its public key.

For: Operators and developers looking up a command.

Make an Ed25519 key in a new file, readable only by you, and print its public key. An index has two: the root key, kept offline, which certifies the online key that signs each version of the index. Keep both outside any repository.

## Usage

```bash
oz0 index keygen <file> [flags]
```

## 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.
