---
title: "oz0 mfa"
description: "A web UI account with a password can add a second factor: a code from an authenticator app (TOTP), with recovery codes for when the phone is gone."
canonical_url: "https://docs.oz0.ai/reference/cli/oz0/mfa"
---
# oz0 mfa

> A web UI account with a password can add a second factor: a code from an authenticator app (TOTP), with recovery codes for when the phone is gone.

For: Operators and developers looking up a command.

A web UI account with a password can add a second factor: a code from an authenticator app (TOTP), with recovery codes for when the phone is gone. A policy can require one in a tenant or the whole cluster. Identity providers ask for their own second factor.

## Usage

```bash
oz0 mfa [command]
```

## Subcommands

- [`require`](https://docs.oz0.ai/reference/cli/oz0/mfa/require)
- [`reset`](https://docs.oz0.ai/reference/cli/oz0/mfa/reset)
- [`status`](https://docs.oz0.ai/reference/cli/oz0/mfa/status)

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