
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/cli2. Log In
Choose your preferred authentication method:
Method 1: API Key (Recommended, Quick Login)
mybacklinks login --api-key mbk_xxxxxMethod 2: OAuth Browser Authorization
mybacklinks login3. 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 indexedOutput Formats: JSON or Markdown
By default, the CLI outputs JSON format for easy programmatic processing and scripting:
mybacklinks statusOutput 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 --mdOutput example:
### auth
- **credentialType**: api_key
- **hasApiKey**: yes
### subscription
- **status**: active
- **interval**: month
### credits
- **current**: 10,073Common Commands
Account Management
# View account status and balance
mybacklinks statusProject 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 20Domain 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.comGet Help
Every command supports the --help option to view detailed usage and examples:
mybacklinks fetch-project-backlinks --helpOutput:
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 20About 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.
Categories
More Posts

Getting Started with MyBacklinks MCP: Connect AI to Your Backlink Management
Learn how to connect Claude Code, Cursor, and other AI assistants to MyBacklinks using MCP (Model Context Protocol) for automated project and backlink management.

Snowball Backlink Strategy: How to Systematically Build Your Link Empire
Learn how MyBacklinks.app helps you build a snowball-effect backlink system through personal resource libraries, automated project discovery, and competitor analysis.

MyBacklinks.app - All-in-One Project Management & Growth Tracking Platform for Indie Hackers
Manage your side projects, backlinks, domains, and servers in one place. Integrate multi-platform analytics and automate your workflow with AI-powered tools.