# 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 open-appsec-ctl 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 open-appsec 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><tr><td>-lc &#x3C;serivce name></td><td>reload policy</td><td>orders a serivce (orchestrator, http-transaction-handler, etc) to reload it's policy</td></tr><tr><td>--info</td><td>generate logs for support</td><td>this command will generate a tar file including all relevant logs needed for support cases. <br>The locaction of the file is found at the end of the script's output. You also have an option to upload it directly to open-appsec's cloud. For Docker And K8S please run the conmmand from the agent Pod / Container (exec) </td></tr></tbody></table>


---

# 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://docs.openappsec.io/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.
