---
title: "oz0 region name"
description: "Give the unnamed region a name, for a cluster that starts to use regions: every tenant and node that is in no region moves to <region> at once."
canonical_url: "https://docs.oz0.ai/reference/cli/oz0/region/name"
---
# oz0 region name

> Give the unnamed region a name, for a cluster that starts to use regions: every tenant and node that is in no region moves to \<region> at once.

For: Operators and developers looking up a command.

Give the unnamed region a name, for a cluster that starts to use regions: every tenant and node that is in no region moves to \<region> at once. Start the edges with --region \<region> too, before or after: while the names differ, those tenants' work waits (Temporal keeps it; nothing is lost). Refused when tenants are pinned to that name already, and while a region move drains. Takes a cluster admin and --reason (or $OZ0_REASON).

Naming the region pins its tenants, and a pinned tenant whose data rules name no region may call only model providers in its region: a provider in another region, or one whose record names no region, is refused from then on, in running jobs too. Run with --dry-run first: it lists, per tenant, the providers and aliases that would be refused, and changes nothing.

Then set the tenants' rules (oz0 model rules --tenant \<t> --region \<regions>) or say where a provider runs (oz0 provider set \<id> --region \<region>) before you name the region.

## Usage

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

## Flags

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

<tbody>
  <tr>
    <td>
      <code>
        --dry-run
      </code>
    </td>
    
    <td>
      bool
    </td>
    
    <td>
      
    </td>
    
    <td>
      say what naming the region would do, including the model calls its tenants would lose, and change nothing
    </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>
        --reason
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      
    </td>
    
    <td>
      why, required (default $OZ0_REASON); the audit log keeps 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.
