ahrefs-cli

Automates SEO data retrieval and site audit management via the Ahrefs API.

3|1|Updated May 19, 2026
One-click install
npx skills add https://github.com/adbertram/cli-tools --skill ahrefs-cli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ahrefs-cli
Source: https://github.com/adbertram/cli-tools/tree/main/_repo/skills/ahrefs-cli
Command: npx skills add https://github.com/adbertram/cli-tools --skill ahrefs-cli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill removes the friction of manual browser-based SEO reporting by providing a direct, command-line interface for Ahrefs site audits and domain explorer metrics.

Core Features & Use Cases

  • Site Audit Automation: Retrieve comprehensive site audit reports and crawl status directly from the terminal.
  • Domain Intelligence: Quickly fetch domain rating, organic traffic, and top-performing pages for any target domain.
  • Use Case: Use this tool to programmatically pull organic traffic data for a list of competitor domains and export the results for a weekly SEO performance review.

Quick Start

Use the ahrefs cli to fetch the site explorer overview metrics for the domain example.com.

Frequently Asked Questions about ahrefs-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Ahrefs site audits from the command line?

Fetch domain metrics like domain rating and organic traffic by executing Ahrefs CLI queries against the Ahrefs API. The CLI tool returns domain-level performance analysis and identifies top-performing pages for any specified target domain.

Can I pull organic traffic data for multiple competitor domains programmatically?

You need authenticated access to the Ahrefs API via the provided CLI tool to execute queries. This authenticated API access is required to manage site audit requests, retrieve domain metrics, and handle response caching during your SEO workflows.

What is the best way to retrieve domain rating and top-performing pages for a target domain?

Retrieve domain rating and top-performing pages by executing Ahrefs CLI queries against the Ahrefs API. The CLI tool returns domain-level performance analysis and identifies top-performing pages for any specified target domain.

Do I need an Ahrefs API key to run site audit reports via the terminal?

You need authenticated access to the Ahrefs API via the provided CLI tool to execute queries. This authenticated API access is required to manage site audit requests, retrieve domain metrics, and handle response caching during your SEO workflows.

How does response caching work when fetching SEO data through the Ahrefs CLI?

Response caching manages retrieved SEO data by storing API query results locally during execution. The Ahrefs CLI tool handles this caching mechanism to streamline repeated domain metrics retrieval and site audit management workflows.