Download the PHP package wp-packagist/wp-cli-gdrive-command without Composer

On this page you can find all versions of the php package wp-packagist/wp-cli-gdrive-command. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wp-cli-gdrive-command

WP-CLI Google Drive Command

Use Google Drive Storage in WordPress WP-CLI Command line for Backup/Restore Files.

Build Status GitHub GitHub repo size GitHub release


WP-CLI Google Drive

Installation

you can install this package with:

Installing this package requires WP-CLI v2 or greater. Update to the latest stable release with wp cli update.

Authenticate Users

Step 1: Go to Google Developers console and Create a new project

Create new Project in Google Console

Step 2: Create an OAuth client ID

OAuth client ID in Google developer

You can select Other types for the project.

OAuth client ID in Google developer

Then copy your Client Id and Client secret.

Get Client Id and Client Secret

Step3 : run command and enter your Client id and Client secret.

if you want change gmail account that saved before. use 'wp gdrive auth --force'.

Structure

Commands

List of WP-CLI gdrive Commands :

List of files and folder

For show list all files and folder in root dir :

For show list of files from custom path e.g /wordpress/backup

Create a folder in Google Drive

For creating a folder use :

create backup folder in the root directory:

Nested Directory

you can also create nested dir. for example:

Download File

Download backup.zip file from root dir in Google Drive:

Download backup.zip file and save to custom dir with package.zip name:

Auto Extract after download

Automatic unzip file after download: (use --e flag) Download Backup.zip file and extract to /folder/.

Copy files or Folder

new-path is only new dir path.

for example copy file:

or copy folder:

Move files or Folder

or

For example:

Remove Files or folder

or

Path: files or folder path e.g. /backup/wp.zip --trash: Move file to trash. --force: Force removing file and folder without question.

For example remove wordpress.zip file in root directory and move to trash:

Rename a file or folder

or

For example, rename wp.zip files that stored in backup folder to wordpress.zip:

Rename a folder:

Get Share Link For a files or folder

If you want to share files or folder and get public link use:

for example, get download link /backup/wp.zip file:

Private a files or folder

after download files or folder by others, you can private again file or folder:

for example, disable download link /backup/wp.zip file:

List of files and folder in the trash

For showing list of all files and folders in Google Drive Trash:

Clear all files in the trash

Restore Files or folder

Use this command:

for example, restore backup folder from Google drive trash:

Get Your Storage

For getting your Storage:

or

Upload Files or Folder

path : The path of file or folder for Upload. default is current path

UploadTo : The path dir where the file will be saved in Google Drive.

--name : New file name to save.

--zip : Create Zip file before uploading.

--force : Force upload even if it already exists.


Automatic create zip file archive file from all root directory and files and upload to GDrive:

Upload backup.zip file to root dir in Google Drive:

Automatic create zip archive from the /wp-content/ folder and upload to custom dir:

Upload All files from /wp-content/plugins/my-plugin/docs to wordpress/plugin directory in Google Drive

Number Max files in One Request is 100 files

Upload with a custom name.

Get Backup From WordPress Database and Upload to Google Drive:

Author

Contributing

We appreciate you taking the initiative to contribute to this project.

Contributing isn’t limited to just code. We encourage you to contribute in the way that best fits your abilities, by writing tutorials, giving a demo at your local meetup, helping other users with their support questions, or revising our documentation.

Reporting a bug

Think you’ve found a bug? We’d love for you to help us get it fixed. Before you create a new issue, you should search existing issues to see if there’s an existing resolution to it, or if it’s already been fixed in a newer version.

Creating a pull request

Want to contribute a new feature? Please first open a new issue to discuss whether the feature is a good fit for the project.

Once you've decided to commit the time to seeing your pull request through, please follow our guidelines for creating a pull request to make sure it's a pleasant experience:

  1. Create a feature branch for each contribution.
  2. Submit your pull request early for feedback.
  3. Follow PSR-2 Coding Standards.

All versions of wp-cli-gdrive-command with dependencies

PHP Build Version
Package Version
Requires php Version ^5.5 || ^7.0
wp-packagist/wp-cli-helper Version >=1.0.2
ext-json Version *
ext-curl Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package wp-packagist/wp-cli-gdrive-command contains the following files

Loading the files please wait ....