> For the complete documentation index, see [llms.txt](https://docs.pynt.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pynt.io/documentation/api-security-testing/pynt-cli-modes/pynt-command-cli-mode.md).

# Pynt Command CLI Mode

{% hint style="success" %}
🚀 **At a Glance**:

* **Pynt Command Mode**: Run automated API security tests alongside your CLI-based functional tests, integrating security seamlessly into your workflow.
  {% endhint %}

The Pynt command is a mode within the Pynt CLI that enables you to run API security tests seamlessly alongside any CLI-based functional tests. It integrates directly into your existing testing workflow without requiring changes to your test scripts.

To use the Pynt command, simply wrap your existing functional test command with pynt. This allows Pynt to intercept and analyze API traffic generated by your tests in real time, automatically identifying potential security issues.

## Basic usage

```bash
pynt command --cmd <your command line>
```

## Optional arguments

{% code overflow="wrap" fullWidth="true" %}

```bash
    --cmd - The command that runs the functional tests
    --captured-domains - Pynt will scan only these domains and subdomains. For all domains write "*"
    --test-name - A name for your Pynt scan
    --port - Set the port pynt will listen to (DEFAULT: random)
    --allow-errors - If present will allow command to fail and continue execution
    --ca-path - The path to the CA file in PEM format
    --proxy-port - Set the port proxied traffic should be routed to (DEFAULT: 6666)
    --report - If present will save the generated report in this path.
    --insecure - Use when target uses self signed certificates
    --self-signed - Use when the functional test verify SSL
    --no-proxy-export - Pynt will not export the proxy settings to the environment
    --application-id - Attach the scan to an application, you can find the ID in your applications area at app.pynt.io
    --application-name - Attach the scan to an application, application will be created automatically if it does not exist.
    --host-ca - Path to the CA file in PEM format to enable SSL certificate verification for pynt when running through a VPN.
    --severity-level - 'all', 'medium', 'high', 'critical', 'none' (default) 
    --tag - Tag the scan. Repeat for multiple tags
    --verbose - Use to get more detailed information about the run
```

{% endcode %}

## Examples

* [Pynt with pytest](/documentation/security-testing-integrations/pynt-with-testing-frameworks/pynt-for-pytest.md)
* [Pynt with Rest Assured](/documentation/security-testing-integrations/pynt-with-testing-frameworks/pynt-for-rest-assured.md)
* [Pynt with Jest](/documentation/security-testing-integrations/pynt-with-testing-frameworks/pynt-for-jest.md)
* [Pynt with curl](/documentation/security-testing-integrations/advanced-pynt-examples/pynt-with-curl.md)
* [Pynt with ReadyAPI testrunner](/documentation/security-testing-integrations/pynt-with-api-testing-clis/pynt-for-testrunner-readyapi-cli.md)

#### How Pynt command works

<figure><img src="/files/EXbaNvNbvvWK7VG0MqOz" alt=""><figcaption><p>Pynt command architecture</p></figcaption></figure>

***

{% hint style="info" %}
For additional support, visit [Pynt Community Support](https://www.pynt.io/community).
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.pynt.io/documentation/api-security-testing/pynt-cli-modes/pynt-command-cli-mode.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
