MyBacklinks CLI: Manage Backlinks and SEO Data from the Command Line
2026/03/20

MyBacklinks CLI: Manage Backlinks and SEO Data from the Command Line

The official npm CLI `@mybacklinks/cli` is here! Manage projects, track backlinks, and analyze competitor domains without leaving your terminal. Fast API key authentication, JSON & Markdown dual output.

MyBacklinks CLI: Your Terminal Backlink Management Tool

MyBacklinks now offers an official command-line interface @mybacklinks/cli that lets you manage backlinks, track projects, and analyze competitors without opening a browser.

Whether you're a developer who prefers the terminal or a marketer who needs to process SEO data in bulk, the CLI makes your workflow more efficient.

Why Choose the CLI Tool?

🚀 Faster Workflow

  • Complete operations with a single command — no browser tab switching
  • Support for scripts and automation — batch process data and tasks
  • Faster response times than web interfaces

🔄 Seamless Automation Integration

  • Perfect compatibility with AI agents for intelligent workflows
  • CI/CD pipeline integration for continuous monitoring
  • Unified API ensures data consistency

💡 Flexible Use Cases

  • Direct server environment access
  • Build custom scripts and tools
  • Integrate with other development tools

What Can You Do?

With MyBacklinks CLI, you can easily:

  • ✅ Quickly check account balance and subscription status
  • ✅ List all projects and backlink resources
  • ✅ Add or update backlink records
  • ✅ Query any domain's backlinks, Domain Rating (DR), and traffic data
  • ✅ Analyze competitor backlink strategies
  • ✅ Export data for in-depth analysis

Quick Start

1. Install the CLI Tool

npm install -g @mybacklinks/cli

2. Log In

Choose your preferred authentication method:

Method 1: API Key (Recommended, Quick Login)

mybacklinks login --api-key mbk_xxxxx

Method 2: OAuth Browser Authorization

mybacklinks login

3. Start Using

# Check account status
mybacklinks status

# List all projects
mybacklinks list-projects

# View project details
mybacklinks fetch-project-info --project-id <your-project-id>

# Get indexed backlinks
mybacklinks fetch-project-backlinks --project-id <your-project-id> --status indexed

Output Formats: JSON or Markdown

By default, the CLI outputs JSON format for easy programmatic processing and scripting:

mybacklinks status

Output example:

{
  "auth": {
    "credentialType": "api_key",
    "hasApiKey": true
  },
  "subscription": {
    "status": "active",
    "interval": "month"
  },
  "credits": {
    "current": 10073
  }
}

For human-readable format, add the --md flag to get structured Markdown output:

mybacklinks status --md

Output example:

### auth
- **credentialType**: api_key
- **hasApiKey**: yes

### subscription
- **status**: active
- **interval**: month

### credits
- **current**: 10,073

Common Commands

Account Management

# View account status and balance
mybacklinks status

Project Operations

# List all projects
mybacklinks list-projects

# View project details
mybacklinks fetch-project-info --project-id proj_abc

# Get project backlinks (filter by status, domain)
mybacklinks fetch-project-backlinks --project-id proj_abc --status indexed --limit 20

Domain Research

These commands consume Credits as they query external data:

# View domain backlinks
mybacklinks fetch-backlinks-by-domain --domain competitor.com --limit 100

# View only Dofollow backlinks
mybacklinks fetch-backlinks-by-domain --domain competitor.com --dofollow

# Check Domain Rating (DR)
mybacklinks fetch-dr-by-domain --domain competitor.com

# Check domain traffic
mybacklinks fetch-traffic-by-domain --domain competitor.com

Get Help

Every command supports the --help option to view detailed usage and examples:

mybacklinks fetch-project-backlinks --help

Output:

mybacklinks fetch-project-backlinks

Fetch backlinks for a project with optional filters

Usage:
  mybacklinks fetch-project-backlinks [options]

Options:
  --project-id <string>         Project ID (required)
  --status <string>             Filter by status (e.g. indexed, pending)
  --resource-domain <string>    Filter by resource domain
  --limit <number>              Max number of backlinks to return
  --cursor <string>             Pagination cursor from a previous response
  --json                        Output as JSON
  --md                          Output as Markdown
  --base-url <string>           Override server URL  [default: https://mybacklinks.app]

Examples:
  mybacklinks fetch-project-backlinks --project-id proj_abc
  mybacklinks fetch-project-backlinks --project-id proj_abc --status indexed --limit 20

About Credits

Understanding which operations consume Credits helps you plan usage:

No Credits Required:

  • Check account status
  • List projects and resources
  • Add/update backlink records
  • Query your own project data

Credits Consumed:

  • Research any domain's backlinks
  • Query Domain Rating (DR)
  • Query domain traffic

Recommendation: Run mybacklinks status before bulk research to check your balance.

Technical Consistency Guarantee

The CLI tool is not a "side channel" or separate branch — it uses the same backend services as other MyBacklinks products:

  • 🔐 Unified Authentication: API Key and OAuth work across all platforms
  • 📊 Consistent Data Model: Identical definitions for projects, backlinks, and domains
  • Same Billing Rules: Credit consumption logic remains consistent
  • 🤖 AI Agent Native Support: Shares tool interfaces with MCP server

This means you can freely switch between the web dashboard, terminal scripts, and AI agent workflows without relearning or adjusting data formats.

Next Steps

Install the CLI tool and start managing your backlinks more efficiently:

npm install -g @mybacklinks/cli
mybacklinks login --api-key <your-api-key>

Questions or suggestions? Please open an issue on GitHub.