Skip to content
  • Pricing
  • Products & Services
      Save 25%

      Solid Suite

      Secure your sites, keep them safely backed up, and grow your business… all while saving time and money.

      • Solid Security
      • Solid Backups
      • Solid Central
      • Solid Academy
      See pricing

      Protect

      Shield your site from cyberattacks and prevent security vulnerabilities

      A cloud-first solution for rocket fast backups and one-click restore.

      Repair

      Hacked website? Let our WordPress security experts clean up malicious code, remove threats and restore your site.

      Manage

      Maximize and amplify your admin with remote multi-site management.

      Ensure delivery of every email sent from your site.

      Free Plugins

  • Resources
      Save 25%

      Solid Suite

      Secure your sites, keep them safely backed up, and grow your business… all while saving time and money.

      • Solid Security
      • Solid Backups
      • Solid Central
      • Solid Academy
      See pricing

      Academy

      Solid Academy

      For anyone who wants to start or grow a business around WordPress.

      Guides

      Dive deeper into our free WordPress and business guides.

      Livestreams

      Free livestreams to help you discover new tools and work more efficiently

      Tutorials Academy

      Learn WordPress with our beginner WordPress tutorials

      Resources

      Blog

      Catch up on the latest news from our WordPress security experts

      Vulnerability Report

      Keep track of every new plugin and theme vulnerability

      Support

      Your success with Security, Backups and Central is our highest priority.

      Documentation

      Learn everything you need to know about our products & services.

Sign In Get Solid Suite
SolidWP Logo Black
  • Pricing
  • Products & Services
    • Solid Security Pro
    • Solid Backups — NextGen
    • Solid Fix
    • Solid Central
    • Free Plugins
    • Solid Security
    • Solid Performance
    • Solid Mail
  • Resources
    • Solid Academy
    • Guides
    • Livestreams
    • Tutorials
    • Blog
    • Vulnerability Report
    • Support
    • Documentation

Setup Guide

1
  • Getting started with Solid Security

Learn More

8
  • List of Solid Security Pro Action Hooks
  • How Do I Integrate My Plugin with Solid Security Pro reCAPTCHA?
  • Solid Security Pro WP-CLI Integration
  • Help! My Site’s Been Hacked!
  • All about Solid Security’s Debug Mode
  • Frequently Asked Questions
  • What are Passkeys for WordPress Websites?
  • Understanding Trusted Devices in Solid Security

How It Works

17
  • All About Solid Security’s Tools
  • Using Solid Security’s CAPTCHA
  • All about Firewall with Solid Security
  • Solid Security Two-Factor Authentication (2FA) Settings Guide
  • Releasing Site Lockouts in Solid Security
  • Diagnosis Tips: Raw Details of Site Scanner Logs
  • SolidWP Licensing: How to Make sure your site is licensed correctly
  • All about Solid Security’s Debug Mode
  • Frequently Asked Questions
  • Vulnerability Protection with Solid Security
  • Security Logs
  • All about User Security with Solid Security
  • All about Solid Security Site Scans
  • Solid Security Dashboard
  • What are Passkeys for WordPress Websites?
  • All about the Solid Security Settings
  • Understanding Trusted Devices in Solid Security
View Categories
  • Home
  • SolidWP Documentation
  • Solid Security
  • Learn More
  • Solid Security Pro WP-CLI Integration

Solid Security Pro WP-CLI Integration

3 min read

Overview #

Solid Security Pro provides WP-CLI commands to manage security settings, monitor activity, and configure various protection features directly from the command line. This document outlines the available commands, their usage, and options.

Prerequisites #

  • Ensure WP-CLI is installed. – https://wp-cli.org/
  • Verify Solid Security Pro is active on your WordPress installation. (Solid Security Basic does not support WP-CLI)
  • Use an administrator-level WordPress user account to execute commands.

Commands #

General Commands #

While in your WordPress installation, run wp itsec <command> in the command line. Below are the subcommands to manage Solid Security Pro functionality:

ban                      

  browser                  Analyse the User-Agent with the Browser library.

  change-admin-user        Changes the "admin" username and/or the user id of 1.

  dashboard                Configure dashboards.

  events                   View events scheduled by Solid Security.

  feature-flag             

  firewall                 

  generate-password        Generates a random password.

  geo                      Access geolocation functionality.

  getlockouts              Retrieve active lockouts.

  getrecent                List the most recent log items

  import-export            

  lockout                  

  log                      

  map                      Access the static map image API.

  modules                  Enable and disable Solid Security modules.

  nc                       Manage and configure all the notifications sent by Solid Security. View any errors that arise during the sending of notifications.

  network-brute-force      Manage the Brute Force Network.

  releaselockout           Release a lockout using one or more ID's provided by getlockouts.

  remote-messages          

  reset                    Resets all Solid Security data and settings.

  scaffold-entry           Scaffold a JavaScript entry.

  schema                   Create the database schema.

  settings                 Class ITSEC_Settings_Command

  site-scanner             

  tool                     

  two-factor               

  upgrade                  Run the upgrade routine.

  user-group               

  zxcvbn                   Evaluates a password's strength.

Check Available Modules #

wp itsec modules list

Lists all available Solid Security modules.

Activate/Deactivate Modules #

wp itsec modules activate <module>

wp itsec modules deactivate <module>

Enables or disables specific security modules.

Reset Solid Security Settings #

wp itsec reset

It resets all settings to factory defaults. Logging into the WordPress admin panel and navigating to Solid Security prompts you to reconfigure the plugin.

Security and Lockouts #

Check Active Lockouts #

wp itsec getlockouts

Displays a list of current lockouts due to security restrictions.

Release Lockout #

wp itsec releaselockout [<id>...] [--id=<id>]

Releases a locked-out user or IP using one or more ID’s provided by the `getlockout` command.

Evaluate Password Strength #

wp itsec zxcvbn <password> [--fields=<fields>] [--field=<field>] [--format=<format>]

Analyzes a password’s strength using security heuristics.

Security Configuration #

Whitelist an IP address #

wp itsec settings set global lockout_white_list X.X.X.X

Adds an IP address to the Authorized Hosts list in Solid Security Global Settings. For whitelisting multiple IPs, separate them using commas (ex. wp itsec settings set global lockout_white_list 73.73.73.73,74.74.74.74)

View/Edit reCAPTCHA Settings #

wp itsec settings list recaptcha

wp itsec settings edit recaptcha

wp itsec settings set recaptcha <settings> [<value>]

Displays and modifies using built-in editor to edit a module’s settings as JSON or update a specific reCAPTCHA setting.

Disable All Notifications #

wp itsec settings get notification-center notifications --format=json

Outputs notification settings in JSON format. You can modify the JSON and apply updates using:

wp itsec settings set notification-center notifications --format=json

Miscellaneous Commands #

Check Browser Information #

wp itsec browser <user-agent> [--fields=<fields>] [--format=<format>]

Retrieves security-related information about a given user-agent.

Modify Admin User #

wp itsec change-admin-user [--username=<username>] [--change-id]

Changes the default WordPress admin username.

Generate a Secure Password #

wp itsec generate-password [<length>]

Generates a secure password of specified length.

Manage Feature Flags #

wp itsec feature-flag <command>

Enables or disables experimental security features.

View Geo-Related Security Data #

wp itsec geo <command>

Handles geolocation-based security settings.

Manage Log Entries #

wp itsec log <command>

Manages security logs and stored event data.

View and Modify Notification Center #

wp itsec nc <command>

Handles notification center settings.

Manage Network Brute Force Protection #

wp itsec network-brute-force <command>

Configures network-wide brute force protection settings.

Manage Remote Messages #

wp itsec remote-messages <command>

Handles security messages received from external sources.

Scaffold Security Module Entries #

wp itsec scaffold-entry <module> <name> [--as-plugin]

Scaffold a JavaScript entry.

View Database Schema #

wp itsec schema

Creates the database schema for Solid Security.

Perform a Site Security Scan #

wp itsec site-scanner <command>

Runs a security scan on the WordPress site.

Updating the Plugin #

To update Solid Security Pro to the latest version, use:

wp plugin update ithemes-security-pro

This command does not support rollbacks to specific versions.

Manage Solid Security Plugin Version #

wp itsec upgrade [--build=<build>]

Upgrades Solid Security to a specified build version.

Getting More Information #

For detailed information about any command, you can use the built-in help command:

wp help itsec <command>

This will display usage details, available subcommands, and options for the specified command.


This document ensures comprehensive coverage of WP-CLI commands for Solid Security. If you have further questions or need additional details, feel free to reach out to support.

Updated on March 14, 2025

Was this doc helpful?

  • Happy
  • Normal
  • Sad
How Do I Integrate My Plugin with Solid Security Pro reCAPTCHA?
Table of Contents
  • Overview
  • Prerequisites
  • Commands
    • General Commands
      • Check Available Modules
      • Activate/Deactivate Modules
      • Reset Solid Security Settings
    • Security and Lockouts
      • Check Active Lockouts
      • Release Lockout
      • Evaluate Password Strength
    • Security Configuration
      • Whitelist an IP address
      • View/Edit reCAPTCHA Settings
      • Disable All Notifications
    • Miscellaneous Commands
      • Check Browser Information
      • Modify Admin User
      • Generate a Secure Password
      • Manage Feature Flags
      • View Geo-Related Security Data
      • Manage Log Entries
      • View and Modify Notification Center
      • Manage Network Brute Force Protection
      • Manage Remote Messages
      • Scaffold Security Module Entries
      • View Database Schema
      • Perform a Site Security Scan
  • Updating the Plugin
    • Manage Solid Security Plugin Version
  • Getting More Information
SolidWP
  • Pricing
  • Products
    • Solid Suite – save 25%
    • Solid Security
    • Solid Backups — NextGen
    • Solid Central Pro
  • Resources
    • Blog
    • Academy
    • Guides
    • Tutorials
    • Vulnerability report
  • Support
    • Documentation
  • My account
  • Contact us
    • Terms
    • Refund policy
    • Privacy policy
  • About SolidWP
    • FAQ
    • Looking for iThemes?
    • Affiliates
    • Press
  • Our Partner Brands
    • GiveWP
    • Iconic
    • KadenceWP
    • LearnDash
    • MemberDash
    • Orderable
    • The Events Calendar

Get Solid Suite bundled with hosting.

Explore StellarSites
  • X
  • YouTube
  • Facebook

A Liquid Web Brand
Hosting for WordPress
© 2025 All Rights Reserved

StellarWP logo
Liquid Web logo