30 Days FREE. PatchstackPowered Security for WordPress

Start Free Trial
All posts
Manage your servers with ease using our new cli tool 2

FlyWP Server CLI: Simplify Server Management for WordPress Sites

Managing WordPress servers just got easier with FlyWP. The new FlyWP Server CLI is a powerful command-line tool is here to help you manage, troubleshoot, and automate your WordPress sites without needing deep Docker expertise.

What’s New?

With simple commands, you can control server services, site management, and debugging, saving time and ensuring consistency across all your servers inside FlyWP.

  • Easier Server Management – Start, stop, and restart sites and services with quick commands.
  • No Docker expertise required: Manage containers, databases, and services with simple commands.
  • Preconfigured stacks: MySQL, Redis, Nginx Proxy, and Ofelia are automatically set up and managed.
  • Automated WP-CLI Commands – Run WP-CLI in a single command.
  • Centralized Site Control – Apply all CLI commands on all sites from one place, whether on staging, or production.
  • Instant Debugging – Access logs, restart containers, and check system status instantly.

How to Use FlyWP Server CLI

Follow these steps to quickly get started with FlyWP Server CLI:

1. Install FlyWP CLI

Before installing, ensure you have:

  • Docker installed (container management).
  • Docker Compose (for multi-container orchestration).

Run this command in your terminal:

Terminal window
curl -sL https://raw.githubusercontent.com/flywp/server-cli/main/install.sh | sudo bash

To check if it’s installed correctly, run:

Terminal window
fly --help

2. Check System Status

If you want to check how your server is performing? Get an overview with:

Terminal window
fly status

3. Manage Server Services (Base Docker Compose)

FlyWP includes MySQL, Redis, Nginx Proxy, and Ofelia as core services. You can control them easily with the following commands.

To start services:

Terminal window
fly base start

To stop services:

Terminal window
fly base stop

To restart services:

Terminal window
fly base restart

4. Manage Your Sites

You can start, stop, restart, and check logs for your WordPress site by using the commands mentioned below:

To start site:

Terminal window
fly start --domain example.com

To stop site:

Terminal window
fly stop --domain example.com

To restart the site:

Terminal window
fly restart --domain example.com

To check logs:

Terminal window
fly logs --domain example.com

To run WP-CLI commands:

Terminal window
fly wp --domain example.com

Note: If you’re inside the site folder, you don’t need to specify –domain. Just use the commands as follows:

Terminal window
fly start
fly wp
fly logs

5. Handy Global Commands

If you are willing to manage all sites on a server at once, you can follow the commands below:

To start all sites:
Terminal window
fly sites start
To stop all sites:
Terminal window
fly sites stop
To restart all sites:
Terminal window
fly sites restart

To discover in-depth guidance for FlyWP Server CLI, please read the documentation below.

With FlyWP Server CLI, you get an easy way to handle your sites, services, and debugging right from your terminal. Give it a try and see how much time you save.

If you have any questions, we’re here to help. Feel free to reach us on Live Chat or send us an email at [email protected].