# Agent

> porticol-cli agent: print what a runtime needs to trust Guard's local proxy.

Canonical: https://porticol.app/docs/cli/agent

[View as Markdown](https://porticol.app/docs/cli/agent.md)

## Usage

```
porticol-cli agent setup --print-trust [--data-dir <path>]
```

## Agent

| Option | What it does |
| --- | --- |
| `setup --print-trust makes Guard's local certificate authority on first use, its` | key in the keychain and its certificate in the data folder, and prints the variables that make Node, Python, curl and other runtimes trust it and send through Guard's proxy, plus the line that adds it to Java. |

## Exit codes

| Code | Meaning |
| --- | --- |
| 0 | every request, assertion and threshold passed |
| 1 | an assertion, a schema check or a threshold failed, a flow stopped, or the run was stopped with Ctrl-C |
| 2 | a request could not be made |
| 3 | the command line, a file, the configuration, the token or a variable is wrong |
| 4 | the licence refused the run |
| 5 | the head document breaks the base document, at the level --fail-on names |
| 6 | the document has a lint finding of severity error |

## See also

- [this text, with examples](https://porticol.app/docs/cli.html)
- [a pipeline to copy](https://porticol.app/docs/automation.html)
