amazeelabs / silverback-cli
Scaffolder for Amazee Silverback projects.
Installs: 45 872
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 12
Forks: 0
Open Issues: 0
Type:package
Requires
- ext-json: *
- drush/drush: ^10 || ^11 || ^12 || ^13
- nelexa/zip: ^4.0.2
- vlucas/phpdotenv: ^5.6.0
- dev-master
- 2.10.0
- 2.9.14
- 2.9.13
- 2.9.12
- 2.9.11
- 2.9.10
- 2.9.9
- 2.9.8
- 2.9.7
- 2.9.6
- 2.9.4
- 2.9.3
- 2.9.2
- 2.9.1
- 2.9.0
- 2.8.2
- 2.8.1
- 2.8.0
- 2.7.10
- 2.7.9
- 2.7.8
- 2.7.7
- 2.7.6
- 2.7.5
- 2.7.3
- 2.7.2
- 2.7.1
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.0
- 2.2.0
- 2.1.0
- 2.0.1
- 2.0.0
- 1.0.17
- 1.0.16
- 1.0.15
- 1.0.14
- 1.0.13
- 1.0.12
- 1.0.11
- 1.0.10
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
This package is auto-updated.
Last update: 2024-11-22 14:51:01 UTC
README
This project is maintained in the silverback monorepo
Silverback CLI
amazeelabs/silverback-cli
is a composer package adding tooling and
configuration scaffolding to Amazee Drupal projects.
Features:
- 🚀 Install Drupal in seconds.
- 📸 Create/restore Drupal state snapshots instantly.
Installation
Important: Make sure your project is already under a version control system. Otherwise, it will be a mess.
- Make sure you have
all dependencies
installed.
direnv
is an important one. - Add
amazeelabs/silverback-cli
toallowed-packages
incomposer.json
. It should be the last one in the list. Example:"extra": { "drupal-scaffold": { "allowed-packages": [ "amazeeio/drupal-integrations", "amazeelabs/silverback-cli" ] } }
- Make sure
sites/default/settings.php
exists. If it does not, copy it fromsites/default/default.settings.php
. - Run
composer require amazeelabs/silverback-cli direnv allow
- Check the VCS changes.
Usage
# To setup a fresh Drupal installation: silverback setup --profile=minimal # To restore a cached installation: silverback setup # To see other use cases: silverback list silverback help [command_name]
How it works
Silverback makes Drupal use an SQLite database in local environment. The database is located in the Drupal files directory. This means that the whole Drupal state is stored in a single directory.
Silverback puts this directory into install-cache.zip
and reuses it the next
time silverback setup
is fired.
Snapshots work in the same way. They are just copies of the Drupal files directory.