wp-manager
Manage WordPress sites with cookie-based authentication, content CRUD, duplicate page detection, and batch cleanup. Use when managing WordPress pages, cleaning duplicates, or syncing content.
Requirements
- curl (HTTP requests)
- python3 (JSON parsing)
- WordPress site with REST API enabled
Configuration
Set WP_URL environment variable or defaults to https://bytesagain.com.
WordPress credentials read from .env file automatically.
Commands
login
scripts/script.sh login [password]
# Auto-reads WP_PASS from .env if no password given
status
scripts/script.sh status
# Shows site health + session age
list-pages
scripts/script.sh list-pages [count] [page]
# Paginated page listing with ID, slug, date, status
list-all-pages
scripts/script.sh list-all-pages
# Fetches ALL pages to local cache (all-pages.jsonl)
create-page
scripts/script.sh create-page "Title" "Content" "slug" "publish"
delete-page
scripts/script.sh delete-page <page-id>
delete-batch
scripts/script.sh delete-batch <ids-file>
# Delete multiple pages from a file of IDs (one per line)
find-duplicates
scripts/script.sh find-duplicates
# Scans all pages, finds slug-2/slug-3 copies, saves IDs for deletion
clean-duplicates
scripts/script.sh clean-duplicates
# Interactive: deletes duplicate pages found by find-duplicates
clean-blacklisted
scripts/script.sh clean-blacklisted [blacklist-file]
# Finds WP pages matching blacklisted skill slugs
search
scripts/script.sh search <query>
Data Storage
Session cookies and page cache stored in ~/.local/share/wp-manager/.
Powered by BytesAgain | bytesagain.com | hello@bytesagain.com