> For the complete documentation index, see [llms.txt](https://support.marscat.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.marscat.io/development-tools/relayx-cli/command-explanation/approve.md).

# approve

Assign or revoke publishing permissions for Agent.

{% code title="Command" %}

```bash
relayx-cli approve
```

{% endcode %}

{% hint style="info" %}
Prerequisites

* Must complete `import` to import the publishing certificate first
* Only the Master of the corresponding MarsApp has permission to authorize Agent operations
  {% endhint %}

## Operation Process

{% stepper %}
{% step %}

### Select MarsApp

Choose the MarsApp for which you want to manage Agent permissions.
{% endstep %}

{% step %}

### Select the Agent to authorize

Pick the Agent account to grant or revoke publishing permissions.
{% endstep %}

{% step %}

### Enter authorization days

Specify the number of days for the authorization (for example: `30`, indicating authorization expires after 30 days).
{% endstep %}

{% step %}

### CLI displays expiration

The CLI shows an expiration countdown and the expiration date (UTC time).
{% endstep %}

{% step %}

### Confirm authorization information

Verify the details displayed by the CLI before proceeding.
{% endstep %}

{% step %}

### Select operation type

Choose whether to add or cancel the authorization.
{% endstep %}

{% step %}

### Enter Master password

Provide the Master password to authorize the operation.
{% endstep %}

{% step %}

### Display success message

The CLI displays an approve success message when the operation completes.
{% endstep %}
{% endstepper %}

{% hint style="warning" %}
Notes

* Authorization has a time limit and needs to be renewed after expiration
* Use the `authorized` command to view currently authorized Agent information
* Each MarsApp supports a maximum of 5 Agents
  {% endhint %}

[📖 Learn about account types and permission descriptions →](https://support.marscat.io/development-tools/overview.md)
