Create Keystone app
A CLI for Keystone to help generate starter apps.
yarn create keystone-app my-app
and follow the prompts.
A non-interactive Keystone app creation could be useful in unattended app generation. One such example is creating a Docker image with a generated Keystone app built in. See the list of possible arguments in the Arguments section below.
npm init keystone-app --name "My App" --template "starter" --database "MongoDB" --connection-string mongodb://localhost/MyApp --test-connection false my-app
The app generation will fall back to interactive prompts if any of the arguments are missing or have incorrect values.
Note: By the time this documentation was written,
yarn createwas not working because the CLI arguments were not passed to the
|The Keystone app name visible in the Admin UI and page titles.|
|One of the existing app templates (folder name). For example: |
|One of the databases listed in the app template. One of: |
|The connection string to connect to your database.|
|Test the database connection before setting up the project.|
|Will go through the app generation process validating the user inputs or CLI arguments but in the end no app will be generated.|
cd my-app # Change directory yarn dev # Start the development server