Skip to main content

Wordfence CLI

Wordfence CLI is an open source, high performance, multi-process security scanner, written in Python, that quickly scans network filesystems to detect PHP/other malware and WordPress vulnerabilities. CLI is parallelizable, can be scheduled, can accept input via pipe, and can pipe output to other commands.

Installation

We have a number of installation methods to install Wordfence CLI in our installation documentation which we'd recommend reviewing to get you scanning for malware in as few steps as possible.

We recommend installing using pip:

pip install wordfence

If you'd like to install Wordfence CLI manually or use CLI for development, you can clone the GitHub repo to your local environment:

git clone git@github.com:wordfence/wordfence-cli.git
cd ./wordfence-cli
pip install .
python main.py version

Requirements

  • Python >= 3.8
  • The C library libpcre >= 8.38
  • Python packages:
    • packaging >= 21.0
    • requests >= 2.3
    • mysql-connector-python >= 8.0

Usage

You can run wordfence help for a full list of options that can be passed to Wordfence CLI. Read more about the configuration options that can be passed to Wordfence CLI.

Scanning a directory for malware

Recursively scanning the /var/www directory for malware:

wordfence malware-scan /var/www

A full list of examples for the malware scan is included in our documentation.

Scanning a WordPress installation for vulnerabilities

Scanning the /var/www/wordpress directory for vulnerabilities.

wordfence vuln-scan /var/www/wordpress

A full list of examples for the vulnerability scan is included in our documentation.

Documentation

The full documentation for Wordfence CLI can be found here which includes installation instructions, configuration options, detailed examples, and frequently asked questions.

License

Wordfence CLI is open source, licensed under GPLv3. The license can be found here.

Contributing

See our contribution guidelines.

Metadata

Release files for wordfence 5.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wordfence 5.0.6
File Size Uploaded
wordfence-5.0.6.tar.gz 162.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for wordfence 5.0.6
File Interpreter ABI Platform
wordfence-5.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 347.7 kB

Release files / wordfence-5.0.6.tar.gz

Download URL wordfence-5.0.6.tar.gz
Size 162.0 kB
Tags Source
SHA-256 checksum
How to use checksums
bbd2cb17cecf24c54bb30bde8b2b0c957fd19d321882da37388e097474dc2633
BLAKE2b-256 checksum
How to use checksums
bfe46fa9a59f7774497acf1b776bad4c9cc9e0bba4161d5e3d7581e7ec60246f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.18

Release files / wordfence-5.0.6-py3-none-any.whl

Download URL wordfence-5.0.6-py3-none-any.whl
Size 185.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
802ff2dd0f7da5f244511f34a5fecee37082cc62b0431e96c32121ff3b51f5ac
BLAKE2b-256 checksum
How to use checksums
6e45c5f25314a971d670deaeff79073609dee7a00ed5965963d2ff6fe6d0d772
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.18

Release history Release notifications | RSS feed

This release

5.0.6 This release

2 release files

5.0.4

2 release files

5.0.3

2 release files

5.0.2

2 release files

5.0.1

2 release files

4.0.3

2 release files

4.0.2

2 release files

4.0.1

2 release files

3.0.2

2 release files

3.0.1

2 release files

2.1.0

2 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.1

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page