Skip to content
WP-CLI commands for the Shifter
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
bin
features
lib
tests
utils
.editorconfig
.gitignore
.travis.yml
README.md
cli.php
composer.json
composer.lock
phpunit.xml

README.md

Warning: Compatibility issue with Shifter V2

Due to Shifter's update, this plugin doesn't work properly with Shifter V2 environment.

wp shifter

Build Status

The Shifter is a serverless hosting solution for WordPress.

https://getshifter.io/

wp shifter is a WP-CLI command that enables you to deploy/import/export your WordPress site for the Shifter.

Requires

  • WP-CLI 0.23 or later

Getting Started

$ 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

Subcommands

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-config.php.

$ 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

Help

$ 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.

Installing manually

$ mkdir -p ~/.wp-cli/commands && cd -
$ git clone git@github.com:getshifter/wp-cli-shifter.git

Add following into your ~/.wp-cli/config.yml.

require:
  - commands/wp-cli-shifter/cli.php

Upgrade

$ wp package update
You can’t perform that action at this time.