Quickstart
Get NAT running locally and scanning your first API in under five minutes.
Prefer NAT Cloud? Skip the CLI entirely β see the API Quickstart for the hosted REST API path.
Want the fastest local proof? Run nat demo after installation for a sandboxed walkthrough with no external target configuration.
Prerequisites
- Python 3.10 or later
- An OpenAPI/Swagger or Postman specification for the API you want to test, or use demo mode
- The API base URL when running against your own target
A NAT Cloud account or NAT Cloud API key is not required for this local CLI path.
Local CLI onboarding
Install the CLI
pip install nat-engineVerify the installation:
nat --versionTry demo mode first
nat demoDemo mode is the shortest way to confirm the installation and see NAT execute without configuring a real target.
Initialize a project
From your project directory, let NAT detect supported project metadata and generate a starter .natrc:
nat initReview the generated configuration before using it in CI or against a shared environment.
Run your first real scan
Provide the API specification and base URL explicitly:
nat scan \
--spec ./openapi.yaml \
--base-url https://api.example.com \
--watchFor a Postman collection, add --format postman.
Save a report when needed
The default output is terminal text. To write HTML output:
nat scan \
--spec ./openapi.yaml \
--base-url https://api.example.com \
--output html \
--output-file nat-report.htmlAuthentication for the system under test
Authentication flags on nat scan configure access to your target API. For example:
nat scan \
--spec ./openapi.yaml \
--base-url https://api.example.com \
--auth-token "$TARGET_BEARER_TOKEN"or:
nat scan \
--spec ./openapi.yaml \
--base-url https://api.example.com \
--api-key "$TARGET_API_KEY" \
--api-key-header X-API-KeyThese flags are separate from NAT Cloud account authentication.
Next steps
- API Quickstart β hosted NAT Cloud flow
- Your First Scan β deeper scan walkthrough
- Pipeline Quickstart β Ingest β Scan β Export pipeline
- Dashboard Guide β account, usage, results, and settings
- CLI Reference β command reference
- CI/CD Integration β add NAT to your pipeline
Having trouble? Check the onboarding troubleshooting guide for common setup problems.