Crates.io | wpe |
lib.rs | wpe |
version | 0.0.19 |
source | src |
created_at | 2023-02-17 18:38:26.505991 |
updated_at | 2023-03-14 01:08:41.068591 |
description | A CLI tool for the wpengine API. |
homepage | https://github.com/thesandybridge/wpengine-cli |
repository | https://github.com/thesandybridge/wpengine-cli |
max_upload_size | |
id | 787719 |
size | 88,244 |
Built with Rust, this tool will allow you to control your sites, installs, users and more from your terminal or within a pipeline using headless mode. I have also opted to not use async which will speed up performance. I work on this in my spare time, features may be added and removed randomly until I push a version 1.0.0 release.
You may be wondering why does this need to exist. Well it is a two part answer...
I have some big goals for this tool and I hope you find it as useful as I do!
Warning
This project is not constantly worked on and is unstable. Use at your own risk. As long as the version is below 1.0.0 you may experience breaking changes.
You will need Rust installed in order to install this from Crates.io.
cargo install wpe
The downloaded file will be located in ~/.local/bin/
curl -s https://thesandybridge.github.io/scripts/install.sh | bash -s wpengine-cli wpe
Running the CLI for the first time will prompt you to add a username and password for the wpengine API.
You can also use the auth
command to update the credentials or manually add them.
The sites
command will allow you to list, add, update, or delete existing sites. Passing the
-H
flag will enable headless mode for using the CLI in a pipeline or as part of a script.
Headless mode will enable list, add, update, and delete sub commands.
Examples
wpe -H sites add <NAME> <Account_ID> # adds a site with the name provided.
wpe -H sites list # lists all sites for page 1.
wpe -H sites 1 list # lists all sites for page 2.
wpe -H sites list <Site_ID> # list a single site from page 1.
wpe -H sites 1 list <Site_ID> # list a single site from page 2.