---
title: "oz0 tenant oidc publish"
description: "Usage and flags for oz0 tenant oidc publish."
canonical_url: "https://docs.oz0.ai/reference/cli/oz0/tenant/oidc/publish"
---
# oz0 tenant oidc publish

> Usage and flags for oz0 tenant oidc publish.

For: Operators and developers looking up a command.

For a cluster whose edges the internet cannot reach: the edges' public address (--public-edge-url) names a web server or bucket the clouds can reach, and this copies the tenant's discovery document and key set there, under the issuer's path (oidc/\<tenant>/.well-known/openid-configuration and oidc/\<tenant>/jwks.json). --to is a folder a web server serves, or s3://bucket[/prefix][?region=R&endpoint=URL] with credentials from the AWS_* variables or --credentials-file, never the command line.

The key set holds the next key ahead of a rotation; publish again after every rotation, before the next one, and at once after an emergency rotation, whose new key is in no published set. Nothing is sent anywhere until you run this.

## Usage

```bash
oz0 tenant oidc publish <tenant> --to <folder | s3://bucket/prefix> [flags]
```

## Flags

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

<tbody>
  <tr>
    <td>
      <code>
        --credentials-file
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        the AWS_* variables
      </code>
    </td>
    
    <td>
      an AWS shared credentials file for an s3:// target
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --dry-run
      </code>
    </td>
    
    <td>
      bool
    </td>
    
    <td>
      
    </td>
    
    <td>
      check the documents and say where they would go, without writing
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --from
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      <code>
        the CLI context's edge API
      </code>
    </td>
    
    <td>
      the edge to read the documents from, https://&lt;edge>:&lt;port>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --to
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      
    </td>
    
    <td>
      a folder a web server serves, or s3://bucket[/prefix][?region=R&endpoint=URL&path-style=true]
    </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.
