---
title: "oz0 user password"
description: "Set a new password and sign the user out everywhere; without --password-stdin one is generated."
canonical_url: "https://docs.oz0.ai/reference/cli/oz0/user/password"
---
# oz0 user password

> Set a new password and sign the user out everywhere; without --password-stdin one is generated.

For: Operators and developers looking up a command.

Set a new password and sign the user out everywhere; without --password-stdin one is generated. A cluster admin sets anyone's. Your own account's password changes, or is removed, only with proof that you are its person: your current password (--current-password-stdin) and, when the account has a second factor, a code from it (--code).

## Usage

```bash
oz0 user password NAME [flags]
```

## Flags

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

<tbody>
  <tr>
    <td>
      <code>
        --code
      </code>
    </td>
    
    <td>
      string
    </td>
    
    <td>
      
    </td>
    
    <td>
      your own account: a code from its second factor (the authenticator app, or a recovery code)
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --current-password-stdin
      </code>
    </td>
    
    <td>
      bool
    </td>
    
    <td>
      
    </td>
    
    <td>
      your own account: read your current password from stdin (the line after the new one with --password-stdin)
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --password-stdin
      </code>
    </td>
    
    <td>
      bool
    </td>
    
    <td>
      
    </td>
    
    <td>
      read the password from stdin instead of generating one
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        --remove
      </code>
    </td>
    
    <td>
      bool
    </td>
    
    <td>
      
    </td>
    
    <td>
      remove the password: the account then signs in only through an identity provider, and its next sign-in there links 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.
