Warning: Compatibility issue with Shifter V2
Due to Shifter's update, this plugin doesn't work properly with Shifter V2 environment.
The Shifter is a serverless hosting solution for WordPress.
wp shifter is a WP-CLI command that enables you to deploy/import/export your WordPress site for the Shifter.
- WP-CLI 0.23 or later
$ wp package install shifter/cli:@stable
Fatal error: Allowed memory size exhausted
Override PHP memory limits inline with the following.
$ php -d memory_limit=256M /usr/local/bin/wp package install shifter/cli:@stable
Upload an archive to the Shifter.
archive- Create a .zip archive as a archive for the Shifter.
delete- Delete an archive from the Shifter.
extract- Extract the WordPress site from a .zip archive.
list- Get a list of archives from the Shifter.
upload- Upload an archive to the Shifter.
version- Prints current version of the shifter/cli.
Backup your WordPress files and database.
$ wp shifter archive create [<file>] [--exclude=<files>]
You can exclude
$ wp shifter archive create /path/to/archive.zip --exclude=wp-config.php
Extract from backup.
$ wp shifter archive extract <file> [--delete] [--exclude=<files>]
If you add
--delete option, this command will remove all files before extracting.
$ wp shifter archive extract /path/to/archive.zip --delete
You can exclude specific files from archive.
$ wp shifter archive extract /path/to/archive.zip --exclude=wp-config.php
$ wp help shifter NAME wp shifter DESCRIPTION WP-CLI commands for the Shifter. SYNOPSIS wp shifter <command> SUBCOMMANDS archive Create a .zip archive as a archive for the Shifter. version Prints current version of the shifter/cli.
$ mkdir -p ~/.wp-cli/commands && cd - $ git clone firstname.lastname@example.org:getshifter/wp-cli-shifter.git
Add following into your
require: - commands/wp-cli-shifter/cli.php
$ wp package update