This project is maintained in the silverback monorepo
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.
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.
# 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]
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.