2.17.0 β€’ Published 23 days ago

@triggerfishab/lisa-cli v2.17.0

Weekly downloads
-
License
ISC
Repository
-
Last release
23 days ago

lisa-cli ⚑️

πŸ’β€β™€οΈ Lisa CLI is a command 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

πŸ“š Table Of Contents

πŸ”§ Prerequisites

You will need to install and configure the following stuff to use Lisa CLI:

πŸͺš Installation

npm i -g @triggerfishab/lisa-cli

πŸƒβ€β™‚οΈ Usage

Create a new site

  1. Setup a new site on Kinsta, with both staging and production environments.
  2. Configure your Lisa path
  3. Configure your services API keys
  4. Generate Kinsta template file

    4.1 Fill your template

  5. Run lisa init --config-file <kinsta-config-file.yml>

✏️ Commands

clone

Use this command to setup a local Lisa site that already has been configured.

Example: lisa clone

Β 

configure

Use this command to configure all the necessary API keys.

Example: lisa configure [service]

If you've entered incorrect values or need to change them, use the --reset option below. πŸ’‘ Pass an argument for which service to configure to not reset all of them.

--reset

Use this option with the configure command to reset your previously configured API keys.

Example: lisa configure --reset

[service]

Use this argument for which service to configure, available services: aws, godaddy, sendgrid

Β 

db import

Use this command to import a database from the production/staging environment of your site.

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.

Β 

init

Use this command to create a new Lisa site.

The following will be included:

  • GitHub repos
  • Amazon AWS S3 bucket for media handling
  • Amazon AWS Cloudfront CDN for media files
  • GoDaddy records for DNS
  • Sendgrid subuser for email sending

When the command is done, you will have the following on your computer:

-c, --config-file

Specify the location of your Kinsta config file that you have created via the command lisa kinsta

Β 

kinsta

Use this command to create a site on Kinsta or get a template file for all your Kinsta configuration values.

Example: lisa kinsta [action]

create After the site has been created, an email will be sent to the provided email address.

show-config After the file has been created, update all existing values with the corresponding values from the site at Kinsta that you created earlier.

Β 

path

Use this command to set (or get) your global sites path.

Example: lisa path [path]

[path]

Specify a path to set that as your Lisa path. If not specified, you will be given your current Lisa path as output instead.

Β 

status

Use this command to show your Lisa status.

Example: lisa status

Β 

page-component create

Use this command to create a new page component in a Lisa project.

Alias: pcc

It will create basic ACF fields in the api, create a GraphQL fragment, type definitions and a base component in the app.

Example: lisa page-component create

Β 

cdn create

Use this command to create services for S3, CloudFront & GoDaddy without all the other Lisa stuff.

Example: lisa cdn create

Β 

sendgrid create

Use this command to create user account and generate api key for SendGrid

Example: lisa sendgrid create

Β 

wp update

Update WordPress and Composer dependencies.

lisa wp update
lisa wp update --fast

commands that will be run:

without --fast

composer require composer/installers -W
composer require roots/acorn -W
composer require roots/wordpress -W
composer require rector/rector -W --dev
composer require squizlabs/php_codesniffer -W --dev
composer require johnbillion/query-monitor -W --dev

with --fast

composer require composer/installers roots/acorn roots/wordpress -W
composer require rector/rector squizlabs/php_codesniffer johnbillion/query-monitor -W --dev

Β 

godaddy create

Use this command to create DNS-records in GoDaddy. I.e. for validation and pointing in Kinsta.

Example: lisa godaddy create

aws user create

This command creates an aws iam user that's restricted to specific bucket(s).

Example: lisa aws user create

Β 

s3 bucket set-lifecycle-policy

This command creates lifecycle rule for objects in the bucket

Example: lisa s3 bucket set-lifecycle-policy

Β 

vault-pass-generate

Generate a new .vault_pass file for the project.

Example:

lisa vault-pass-generate

Β 

2.17.0

23 days ago

2.16.1

2 months ago

2.16.0

2 months ago

2.12.0

8 months ago

2.11.1

10 months ago

2.15.6

6 months ago

2.15.7

6 months ago

2.15.4

6 months ago

2.15.5

6 months ago

2.15.2

7 months ago

2.15.3

6 months ago

2.15.0

7 months ago

2.14.1

7 months ago

2.15.1

7 months ago

2.14.2

7 months ago

2.13.0

7 months ago

2.12.1

8 months ago

2.11.2

10 months ago

2.14.0

7 months ago

2.11.0

11 months ago

2.10.1

12 months ago

2.10.2

11 months ago

2.10.0

12 months ago

2.9.0

1 year ago

2.8.1

1 year ago

2.8.0

1 year ago

2.7.4

1 year ago

2.7.3

1 year ago

2.7.5

1 year ago

2.7.0

1 year ago

2.7.2

1 year ago

2.7.1

1 year ago

2.5.0

1 year ago

2.4.0

1 year ago

2.6.0

1 year ago

2.3.0

2 years ago

2.3.1

1 year ago

2.2.1

2 years ago