Global install
Install the script once and get a drupalaibp command:
bash <(curl -fsSL https://aibp.drupalstarforge.ai/install.sh) install
Afterwards:
drupalaibp # set up a site
drupalaibp delete # tear one down
drupalaibp --help # all commands and flags
man drupalaibp # same reference as a man page
What install puts on your machine
| Path | Contents |
|---|---|
~/.local/bin/drupalaibp |
The installer script itself |
~/.local/share/man/man1/drupalaibp*.1 |
Man pages for the command and each subcommand |
~/.drupalaibp/configs/ |
Saved configs used by the "Use a config" run mode and the pull command |
| Your shell rc file | One export PATH="$HOME/.local/bin:$PATH" line, marked with # added by one-line-installer (drupalaibp) |
The PATH line is written once, to ~/.zshrc, ~/.bashrc,
~/.bash_profile, or ~/.profile depending on your shell, and skipped if
~/.local/bin is already on your PATH. Restart your shell (or source the
rc file) after the first install.
man finds the pages without extra setup: with ~/.local/bin on your PATH,
man searches ~/.local/share/man automatically on Linux and macOS.
The global command unlocks saved configs
With the global command installed, the run-mode question gains a Use a
config option that builds a site from a saved config without prompting.
Saved configs live at ~/.drupalaibp/configs/<name>/.drupalaibp/<name>.json
and arrive in one of three ways:
- Create one from the same menu: answer the normal questions once and save them under a name.
drupalaibp pull <repo> [name]clones a config repo into~/.drupalaibp/configs/<name>/, useful for a team config kept in git. See the pull reference.- Hand-edit or copy a
.drupalaibp/directory into place yourself.
Build from a saved config with drupalaibp <name> or
drupalaibp --global-config <name>.
Updating
Re-run the remote one-liner; it downloads the latest release and overwrites the installed copy and man pages:
bash <(curl -fsSL https://aibp.drupalstarforge.ai/install.sh) install
Running drupalaibp install from the already-installed copy does not
update anything: it detects it is already installed and leaves the file as
is.
Uninstalling
See Uninstall and cleanup for the full list of what to remove.