Features Provided

How Can I Manage Logify From Command Line?

Logify also supports command line management for advanced users who prefer working in WP-CLI.

This is not required for normal use, but it can be helpful for fast maintenance tasks.

What Is This Feature?

WP-CLI support lets you manage Logify logs using terminal commands instead of the WordPress dashboard.

It is useful when you want to do tasks quickly or automate them in a development or server workflow.

Who Should Use It?

This feature is mainly for:

  • Developers
  • Site administrators
  • Hosting teams
  • Advanced WordPress users
  • People who already use WP-CLI

How To Use WP-CLI Commands

Open your terminal and run Logify commands in your WordPress environment.

Example commands:

Clear All Logs

wp logify clear --all

Clear Only Login Logs

wp logify clear --event-type=login

Clear Logs For A Specific User

wp logify clear --user-id=42

Combine Filters For A More Specific Cleanup

wp logify clear --user-id=42 --event-type=deleted

Why Should I Use It?

WP-CLI is helpful when you need:

  • Faster maintenance
  • Bulk cleanup
  • Server-side workflows
  • Scripted automation
  • Less dashboard clicking

It is especially useful on development sites, staging sites, or managed hosting setups.

If your Logify setup includes addon commands, those should follow the same WP-CLI pattern and appear in your addon documentation.

When Should I Avoid It?

If you are not comfortable with terminal commands, use the WordPress dashboard instead.

The dashboard is safer and easier for everyday users.

What Should I Do Next?

If you use WP-CLI regularly, you can add Logify cleanup commands to your maintenance workflow.

That can help keep test sites and temporary environments clean.


Was this page helpful?

Previous
How Can I Delete Multiple Activity Logs At Once?