---
title: "Getting started"
description: "Install the RankControl CLI, authorize it against your workspace, and run your first commands."
---

> Documentation Index
> Fetch the complete documentation index at: https://rctrl.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Getting started

RankControl publishes ranking content to your own site and tracks whether AI
engines cite you. This documentation covers the three developer surfaces:
the **CLI**, the **MCP server** for AI agents, and the **REST API** they both
sit on.

## Install

```sh
npm install -g rankcontrol
```

The package ships two binaries, `rankcontrol` and the shorter `rctrl`. One-off
use without installing works too: `npx rankcontrol <command>`.

## Authorize

1. **Start the login**

```sh
rankcontrol login
```
   The CLI prints a confirmation code and opens your browser.
2. **Approve in the dashboard**

   The approval page shows the same code and the exact permissions being
   granted. Check the codes match, then approve. The key is scoped to the
   workspace you are signed into.
3. **Done**

   A scoped API key is saved to `~/.rankcontrol/config.json` (file mode
   `0600`). The key appears in **Settings → API** in your dashboard, named
   after your machine, and can be revoked there at any time.

Prefer explicit keys? Create one in **Settings → API** and export it instead:

```sh
export RANKCONTROL_API_KEY=rctrl_pk_...
```

## First commands

```sh
rankcontrol funnel     # AI pipeline, last 30 days: crawls, AI visits, AI leads
rankcontrol ideas      # scored content-idea backlog
rankcontrol report     # executive summary, last 30 days vs the 30 before
rankcontrol --help     # everything
```

Every command prints JSON, so output pipes cleanly into `jq` or any script.

## Default scopes

`rankcontrol login` requests read access to citations, content, leads, and
analytics, plus `write:content` and `write:publish`. Pass
`--scopes read:content,write:content` to request less. Team, backlink, and
social write scopes are opt-in.

> **Note**
>
> Anything publicly visible defaults to a dry run: publishing an article,
> pushing a social post, sending an outreach email, changing Link Network
> membership. The real action needs an explicit `--confirm`.

## Where next

- **CLI reference** — Every command, grouped by area, with flags and examples.
- **MCP server** — Give Claude, Cursor, or any MCP client your workspace as tools.
- **REST API** — Endpoints, scopes, rate limits, and the dry-run pattern.

Source: https://rctrl.com/getting-started/index.mdx
