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

> Usage and flags for oz0 tenant region.

For: Operators and developers looking up a command.

Show the region a tenant is pinned to: its jobs run only on that region's nodes, through that region's edges; its Temporal histories are on that region's backend and its payloads in that region's payload store; and its model calls go only to providers in that region unless its data rules name other regions.

--set moves the tenant to another region ("" for the unnamed region): its new work goes there at once, while its running jobs finish in the old region, whose edges then serve nothing else of it. Nothing is copied: its closed histories and payloads stay in the old region until that region's retention removes them, so export the tenant first if you need them.

A node joins only in its tenant's region: join the tenant's nodes through the new region's edges once the move started; its new jobs wait there until one runs. The move ends once nothing of the tenant runs in the old region; --wait waits for that. Moving takes a cluster admin and --reason (or $OZ0_REASON), which the audit log keeps.

## Usage

```bash
oz0 tenant region <tenant> [flags]
```

## Flags

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

<tbody>
  <tr>
    <td>
      <code>
        --json
      </code>
    </td>
    
    <td>
      bool
    </td>
    
    <td>
      
    </td>
    
    <td>
      print JSON instead of a table
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --reason
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      
    </td>
    
    <td>
      why, required for a move (default $OZ0_REASON); the audit log keeps it
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --set
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      
    </td>
    
    <td>
      move the tenant to this region
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --wait
      </code>
    </td>
    
    <td>
      duration
    </td>
    
    <td>
      
    </td>
    
    <td>
      with --set: wait this long for the move to end
    </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.
