lisa-cli v1.6.0
lisa-cli ā”ļø
šāāļø Lisa CLI is a commanded line tool that will help you to automate the process of creating a new site based on the lisa-app and the lisa-api
The features that is included now is the following:
- Setup repos on GitHub based on the lisa-app and the lisa-api repos.
- Setup site with Valet, including dependencies installation and local database creation.
- Reencrypt all vault files with a new password
- Create a development database
- Add all the config needed to be able to deploy the site to Kinsta with Trellis
š§ Prerequisites
You will need to install the following stuff to use lisa-cli:
- Node version >= 12
- GitHub CLI (setup instructions)
- ansible-vault (comes from Ansible)
- WP-CLI
- Trellis CLI
- Valet
- Vercel CLI
šŖ Installation
npm i -g lisa-cli
šāāļø Usage
Set global sites path
Use this command to set your global sites path to prevent you from running other commands from the wrong directory
lisa path
Create a new site
From your generic sites folder (i.e. ~/Sites
) run the following command:
lisa init
You will also need to create a YAML file with all the config from Kinsta, run the following command to get a file template:
lisa kinsta --help
Setup an existing site
If you want to setup an already existing Lisa site for local development, you can just run the following command:
lisa clone
Import database from staging/production
Use this command to import a database from the production/staging environment of the site that you're working on. A prompt will ask you whether you will import it from staging or production
lisa db import
This command will ask for the project name and try to find the correct repos that you should use. If not the correct repos are found, the prompt will let you specify them manually.
lisa destroy
This command will ask for the project name, find the directories for both API and app, find the database and the site linked to valet and remove them.
šØ TODO
- Local Trellis development - S3 bucket - Stackpath domain - Sendgrid
- Stackpath
- Sendgrid
- S3
- GoDaddy