• Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Equalize Digital Home

Equalize Digital

Website Accessibility Consulting, Training, and Development

  • My Account
  • Support
  • Checkout
  • Software
    • Accessibility Checker
      • Features: Accessibility Checker
      • Documentation: Accessibility Checker
      • Buy Accessibility Checker
      • Start Free
    • ArchiveWP
      • Documentation: ArchiveWP
      • Buy ArchiveWP
      • Demo All Plugins
  • Services
    • Accessibility Audits
    • User Testing
    • Accessibility Remediation
    • VPAT & ACR Preparation
    • Accessibility Monitoring
    • Web Accessibility Training
    • Accessibility for Agencies
  • Company
    • About Us
    • Our Team
    • Industry Expertise
    • Accessibility Statement
    • Contact Sales
    • Become An Affiliate
  • Learn
    • Online Courses
    • Accessibility Meetup
    • Articles & Resources
    • Accessibility Craft Podcast
    • Upcoming Events
    • Office Hours
    • Custom Accessibility Training
    • Global Accessibility Awareness Day
  • Contact Sales
  • My Account
  • Support
  • Checkout
Home / ArchiveWP / Documentation / ArchiveWP WP-CLI Commands

ArchiveWP WP-CLI Commands

ArchiveWP bundles a set of WP-CLI helpers that make it easier to manage plugin settings and archived content from the command line. The commands automatically load whenever WP-CLI runs in a WordPress install where the plugin is active.

Usage

All ArchiveWP commands are registered under the archivewp namespace. Run wp help archivewp <command> to view contextual help directly in the terminal.

wp archivewp <command> [<args>] [--<flag>=<value>]

Available commands

wp archivewp restore-defaults

Restores the plugin option set to the built-in defaults. This is useful when you want to clear custom configuration and start over.

  • No arguments or flags are accepted.
  • Rebuilds the option stored under the ArchiveWP settings key, resetting:
    • archive_post_types to ['post', 'page']
    • preserve_taxonomies to true
    • archive_category_public to true
    • archive_template_option to theme
    • enable_archive_redirects to true
    • delete_data_on_uninstall to false
    • archive_disclaimer_text to the default message supplied by Helpers::get_default_disclaimer_text()
  • Prints a success message once the settings have been replaced.

wp archivewp reset-wizard

Resets the first-time configuration wizard so it can be run again from a clean state.

  • No arguments or flags are accepted.
  • Deletes wizard tracking options (archive page ID and saved block pattern).
  • Removes wizard-managed settings from the ArchiveWP options array.
  • Clears the stored admin notice that advertises the wizard.

wp archivewp migrate-posts <post_id> [<post_id> ...]

Moves published content into the ArchiveWP archive post type.

  • Accepts one or more numeric WordPress post IDs.
  • Skips IDs that are invalid, already archived, or belong to disallowed post types.
  • Uses the ArchiveWP archive service to migrate each eligible post.
  • Emits a summary that reports successful migrations and any problems encountered.

wp archivewp restore-posts <post_id> [<post_id> ...]

Restores archived posts back to their original post type and status.

  • Accepts one or more numeric post IDs that currently reside in the ArchiveWP archive post type.
  • Skips IDs that are invalid or reference content that is not archived.
  • Uses the ArchiveWP restore service to rebuild the original post data.
  • Emits a summary that reports successful restorations and any problems encountered.

Tips

When running in a multisite network, execute the commands from the directory of the site whose content you want to manage and supply the --url flag if necessary.

Combine these commands with standard WP-CLI global arguments such as --url=<site> or --user=<id> to target a specific site or run under a particular user context.

Use --quiet or --no-color if you need machine-readable output for automation scripts.

Primary Sidebar

ArchiveWP: Take control of your legacy content. Buy ArchiveWP Today.

Starter guide

  • Downloading and Installing ArchiveWP
  • How to Activate Your License Key
  • First-Time Configuration
  • ArchiveWP Settings
  • ArchiveWP Blocks
  • ArchiveWP Shortcodes

General Usage

  • How to Archive a Post
  • How to Archive Posts in Bulk
  • How to Control Which Taxonomy Terms Persist when Posts are Archived
  • How to Restore Archived Posts

FAQs

  • Is ArchiveWP accessible?
  • What languages is ArchiveWP available in?

Developer Docs

  • ArchiveWP Developer Guide
  • ArchiveWP Hooks Reference
  • ArchiveWP WP-CLI Commands

Easier, Faster Accessibility Testing

Equalize Digital Accessibility Checker gives you real-time accessibility feedback in the WordPress editor. Learn accessibility and make fixes earlier in the dev and content creation process. Full-site accessibility scanning without the per page fees.

Get Accessibility Checker

Footer

Equalize Digital Websites for Everyone

Your WordPress accessibility team. Accessibility plugins, rapid audits, and consulting to help you make your website usable by people of all abilities.

  • Facebook
  • GitHub
  • LinkedIn
  • YouTube

Company

  • About Equalize Digital
  • WordPress Accessibility Meetup
  • Accessibility Statement
  • Blog
  • Events
  • Contact Us

Services

  • Accessibility Audits
  • User Testing
  • Remediation
  • Ongoing Monitoring
  • VPAT & ACR Preparation
  • Accessibility Training
  • For Agencies
  • Website Development

Accessibility Checker

  • Features
  • Pricing
  • Documentation
  • How to Get Support
  • My Account
  • Affiliate Dashboard
  • Become an Affiliate

© 2026 Equalize Digital · Privacy Policy · Terms of Service · Software Terms & Refund Policy

International Association of Accessibility Professionals member

Small Business Accessibility Playbook

Learn how to make your website accessible.

Free Ebook: The Small Business Accessibility Playbook for WordPress by Equalize Digital and WP Buffs.

Get a copy of the free e-book via email.

This field is for validation purposes and should be left unchanged.
Name(Required)
This field is hidden when viewing the form
This field is hidden when viewing the form
Privacy Policy(Required)
This field is hidden when viewing the form