---
title: "oz0 tenant temporal-namespace"
description: "Map a tenant's namespace to a namespace of the Temporal backend, such as an existing Temporal Cloud namespace <name>.<account>."
canonical_url: "https://docs.oz0.ai/reference/cli/oz0/tenant/temporal-namespace"
---
# oz0 tenant temporal-namespace

> Map a tenant's namespace to a namespace of the Temporal backend, such as an existing Temporal Cloud namespace \<name>.\<account>.

For: Operators and developers looking up a command.

Map a tenant's namespace to a namespace of the Temporal backend, such as an existing Temporal Cloud namespace \<name>.\<account>. Nodes and the web UI keep the tenant's own name; the edge rewrites it on every call. Without a mapping a tenant's namespace has its own name, or \<namespace>.\<account> on Temporal Cloud. Jobs that run keep running in the namespace they started in only while it is the mapped one: change it between jobs.

Without a namespace it shows the mapping; --default removes it.

## Usage

```bash
oz0 tenant temporal-namespace <tenant> [namespace] [flags]
```

## Flags

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

<tbody>
  <tr>
    <td>
      <code>
        --default
      </code>
    </td>
    
    <td>
      bool
    </td>
    
    <td>
      
    </td>
    
    <td>
      remove the mapping: the namespace gets its default name on the backend
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --json
      </code>
    </td>
    
    <td>
      bool
    </td>
    
    <td>
      
    </td>
    
    <td>
      print JSON instead of a table
    </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.
