@web-resurrect/cli
v1.2.0
Published
CLI tool for the Web Resurrect API
Readme
@web-resurrect/cli
Command-line interface for the Web Resurrect API. Resurrect expired domains from your terminal.
Installation
npm install -g @web-resurrect/cli🤖 AI Agent Skill (Claude Code, Codex, Cursor, etc.)
Un skill agent-agnostic est disponible pour piloter la CLI depuis ton agent IA préféré. Il couvre tout le pipeline : création projet → enrichissement SEO → scraping Wayback → réécriture → catégorisation AI → publication WordPress → redirections, avec toutes les astuces et pièges connus.
Compatible avec Claude Code, Codex, Cursor, Cline, Copilot, OpenCode, Windsurf et 40+ autres agents via npx skills :
# Install globalement pour tous tes projets
npx skills add MattiooFR/web-resurrect-skill -g
# Ou uniquement pour le projet courant
npx skills add MattiooFR/web-resurrect-skillUne fois installé, tu peux simplement demander à ton agent :
"Ressuscite le domaine exemple.com"
Et il suivra automatiquement tout le pipeline documenté dans le skill.
Source du skill : github.com/MattiooFR/web-resurrect-skill
Quick Start
# Authenticate with your API key
wr login
# Check credit balance
wr credits
# Create a project for an expired domain
wr projects create example.fr --name "My Project"
# Wait for URL fetching to complete
wr jobs wait <job_id>
# Enrich with SEO data
wr enrich <project_id> --sources haloscan,majestic
# List pages sorted by traffic
wr pages list <project_id> --sort total_traffic
# Scrape all pending pages
wr scrape-bulk <project_id>
# Rewrite all scraped pages (add --wisewand for premium quality)
wr rewrite-bulk <project_id> --wisewand
# Generate images
wr image-bulk <project_id>
# Publish to WordPress
wr wp configure https://mysite.com --mode plugin
wr wp publish <page_id> --domain mysite.com --status draftCommands
Authentication & Account
| Command | Description |
|---------|-------------|
| wr login | Authenticate with your API key |
| wr credits | Show credit balance |
Projects
| Command | Description |
|---------|-------------|
| wr projects list | List all projects |
| wr projects create <domain> [--name] | Create a project |
| wr projects get <id> | Project details + stats |
| wr projects delete <id> | Delete project (with confirmation) |
Pages
| Command | Description |
|---------|-------------|
| wr pages list <project_id> [--status] [--sort] [--limit] | List pages |
| wr pages get <id> | Page details |
Content Processing
| Command | Cost | Description |
|---------|------|-------------|
| wr scrape <page_id> [--type] | 1 credit | Scrape a page |
| wr scrape-bulk <project_id> [--status] [--limit] | 1/page | Scrape pages in bulk |
| wr enrich <project_id> [--sources] | 0-10 | SEO enrichment |
| wr rewrite <page_id> [--wisewand] [-w key] | 1-10 credits | Rewrite (basic default, premium Wisewand with --wisewand; Haloscan-origin pages are Wisewand-only) |
| wr rewrite-bulk <project_id> [--wisewand] [--haloscan-only] [--limit] | 1-10/page | Bulk rewrite. --wisewand also covers Haloscan-origin pages; --haloscan-only limits to those |
| wr image <page_id> | 1 credit | Generate featured image |
| wr image-bulk <project_id> [--limit] | 1/page | Bulk image generation |
| wr categorize <page_id> --domain=<wp> | Free | Suggest category |
WordPress
| Command | Description |
|---------|-------------|
| wr wp check <domain> | Check plugin status |
| wr wp configure <url> [--mode] | Configure connection |
| wr wp validate <domain> | Validate connection |
| wr wp categories <domain> | List categories |
| wr wp authors <domain> | List authors |
| wr wp publish <page_id> --domain=<wp> | Publish page (original URLs preserved in plugin mode) |
| wr redirects push <project_id> -d <domain> | Push all URL mappings to WP plugin (published → original URL, rest → homepage) |
| wr redirects export <project_id> [-f format] | Export URL mappings to file (Basic Auth mode only) |
Jobs
| Command | Description |
|---------|-------------|
| wr jobs list [--status] [--type] | List jobs |
| wr jobs get <id> | Job details |
| wr jobs cancel <id> | Cancel a job |
| wr jobs wait <id> [--timeout=300] | Wait for completion |
Credit Costs
| Action | Cost | |--------|------| | Create project + URL fetch | Free | | Haloscan enrichment | Free | | Majestic enrichment | 10 credits | | Scrape a page | 1 credit | | Rewrite (basic) | 1 credit | | Rewrite (Wisewand) | 10 credits (1 with own key) | | Image generation | 1 credit | | Categorization | Free | | WordPress publish | Free |
Configuration
Config is stored at ~/.config/wr/config.json. You can also set:
WR_API_KEYenvironment variableWR_BASE_URLto override the API base URL
Development
npm install
npm run build
node dist/index.js