Skip to main content

What Are Sites?

Sites are Rafter’s live-application security monitoring feature. Instead of scanning your source code (that’s what rafter run / rafter scan do — see CLI Basics), Sites continuously monitor a live, deployed domain for:
  • Exposed backends and misconfigured services
  • DNS misconfiguration
  • SEO issues
  • Accessibility issues
Register a site once, then re-scan it any time — after a deploy, on a schedule, or before a launch.
Your API key starts with RF and should be kept secure. Never commit it to version control (e.g. GitHub). Use environment variables instead.
Sites require an API key with the read-and-scan scope to create sites or trigger scans, or the read scope to list and check them. A read-and-scan key can do both — that scope implies read.

Basic Commands

Make sure you configure an environment variable or pass in your RAFTER_API_KEY with the flag --api-key or -k (more details below).

Register a Site with rafter sites create

Registers a site and kicks off its first scan:

Re-Scan a Site with rafter sites scan

Accepts either the site’s id (from rafter sites list or rafter sites create) or its URL:
--sections takes a comma-separated subset of flight, security, dns (default: all). An invalid value is rejected locally before any request is made.

List Your Sites with rafter sites list

Check a Site’s Status with rafter sites get

Returns the site’s status, latest run, and a findings summary:

Command Reference

All rafter sites commands support:

Output Formats

Sites only outputs JSON today. The Sites API has no Markdown representation to render, so --format md is rejected up front with an error (exit code 1) rather than silently falling back to JSON.

Error Handling

Unlike rafter run/rafter get — which inspect the response body to tell a quota-exhausted 403 (exit 3) apart from a wrong-scope 403 (exit 4) — the Sites API returns 403 for both wrong API-key scope and plan/site limits with no structured signal to distinguish them, so the CLI maps any 403 to a single exit code and surfaces the API’s free-text error message for the detail.

Example Workflow

API Reference

For the underlying REST API, see the Sites endpoints in the API reference.

Next Steps

CLI Basics

Learn the fundamentals of using the Rafter CLI.

Advanced CLI

Master advanced CLI features and automation.

API Reference

Build custom integrations with the REST API.

CI/CD Integration

Set up automated scanning in your pipelines.