# Agent CLI

You can view and control the agent locally via SSH.

## Reference Guide

### cpnano command

The following options are available for usage of the cpnano command:

<table><thead><tr><th width="150">Options</th><th>Action</th><th>Comments</th></tr></thead><tbody><tr><td>-s, --status [--extended]</td><td>Print agent status and versions</td><td></td></tr><tr><td>-u, --uninstall</td><td>Uninstall agent</td><td>Less relevant to a CloudGuard WAF Deployment</td></tr><tr><td>-q, --stop-agent</td><td>Stop the agent functions</td><td></td></tr><tr><td>-r, --start-agent</td><td>Start the agent functions</td><td></td></tr><tr><td>-sp, --set-proxy</td><td>Set proxy</td><td>Relevant when the agent is located behind a proxy and a manual override of the proxy settings is required for troubleshooting purposes.<br>Proxy settings are usually automatically set from the OS configuration</td></tr></tbody></table>

{% hint style="danger" %}
The cpnano command also includes additional options for the rare case of Support requiring advanced information via command line access. It is not recommended to use options that are not explained in this reference guide.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://waf-doc.inext.checkpoint.com/references/agent-cli.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
