@bluecadet/bcdb

2020-02-15

@bluecadet/bcdb

Easily pull databases and files from Pantheon to a local MAMP instance.

BCDB

Easily pull databases and files from Pantheon to a local MAMP instance.

Installation

install mamp">Install MAMP

install terminus">Install Terminus

In Terminal, run:

$ cd ~

$ curl -O https://raw.githubusercontent.com/pantheon-systems/terminus-installer/master/builds/installer.phar && php installer.phar install

If you do not have a Pantheon Machine token, generate one. Copy the machine token to your clipboard

Authenticate Terminus in Terminal:

$ terminus auth:login --machine-token=[MACHINE_TOKEN_VALUE]

Additionally, generate and/or add an SSH key. This will allow you to easily pull files from a site.

Install BCDB

$ npm install -g @bluecadet/bcdb

Usage

config

After installing BCDB, run bcdb config. You will be asked to enter your Pantheon Machine Token.

init

In a project root directory, run bcdb init. This will ask a series of questions to initialize project configuration.

pull [--force] [-f] [--exclude=file/path]

Run bcdb pullto pull a database or files from a specfic Pantheon enviornment

To override the backup expiration and force a new database backup to be created, use the --forceor -fflag:

$ bcdb pull -f

You can optionally pass directories or other rsync excludeparameters with the --exclude=argument. Seperate excludes with a comma:

$ bcdb pull --exclude=files/path
$ bcdb pull --exclude=files/path,another/path

以上是 @bluecadet/bcdb 的使用教程帮助文档。


上一篇:@bluecadet/cadet
下一篇:@additive/colt
相关教程
关注微信

扫码加入 JavaScript 社区

相关文章
暂无相关文章

首次访问,需要验证
微信扫码,关注即可
(仅需验证一次)

欢迎加入 JavaScript 社区

号内回复关键字:

回到顶部