# CLI Auth Node

The `pf9ctl authorize-node` command authorizes the node on which the command is run. When a node is deauthorized, it is marked as offline until the user re-authorizes it. This works similar to the `authorize node` command located in the UI.

## Syntax Example

{% tabs %}
{% tab title="Bash" %}

```bash
pf9ctl authorize-node
```

{% endtab %}
{% endtabs %}

## All Available Commands and Flags

{% tabs %}
{% tab title="Bash" %}

```bash
# pf9ctl authorize-node --help
Authorizes this node.

Usage:
  pf9ctl authorize-node [flags]

Flags:
  -h, --help         help for authorize-node
      --mfa string   MFA token

Global Flags:
      --no-prompt   disable all user prompts
      --verbose     print verbose logs
```

{% endtab %}
{% endtabs %}

## Command Example

{% tabs %}
{% tab title="Bash" %}

```bash
# pf9ctl authorize-node
 ✓ Loaded Config Successfully
Node authorization started....This may take a few minutes....Check the latest status in UI
```

{% endtab %}
{% endtabs %}
