Appearance
Create New Project
The lamapress:new command automates the entire setup process for a new LamaPress project. It creates a WordPress installation, installs plugins, sets up the theme, and optionally initializes a Git repository.
Usage
bash
clli lamapress:new [project-name]Arguments
project-name(optional) - The name of your project. If not provided, you'll be prompted to enter it.
Options
-v, --verbose- Enable verbose output for debugging. Shows detailed output from all commands.
Examples
Create a project with a name:
bash
clli lamapress:new my-projectInteractive mode (prompts for project name):
bash
clli lamapress:newVerbose mode for debugging:
bash
clli lamapress:new my-project -vWhat It Does
The command performs the following steps:
- Verifies directory - Checks that the target directory doesn't already exist
- Creates WordPress installation - Downloads WordPress core and creates database
- Configures WordPress - Sets up optimal WordPress settings
- Adds users - Creates admin users
- Installs plugins - Installs and activates required plugins
- Sets up theme - Clones LamaPress boilerplate and configures it
- Creates project config - Initializes project configuration file
- Initializes Git (optional) - Creates Git repository and pushes to GitHub
- Builds assets - Installs dependencies and builds production assets
What Gets Installed
WordPress Plugins
Activated Plugins:
- Advanced Custom Fields Pro (premium)
- WP Migrate DB Pro (premium)
- Yoast SEO
- ACF Content Analysis for Yoast SEO
- Classic Editor
- Intuitive Custom Post Order
- User Switching
- WP Mail SMTP
- Tiny Compress Images
- Duplicate Post
- Redirection
Inactive Plugins:
- Wordfence
- Restricted Site Access
- WP Rocket (premium)
WordPress Configuration
The command configures WordPress with these settings:
- Front Page: Sets up a "Home" page as the front page
- Timezone: Europe/Amsterdam
- Date Format:
d/m/Y - Time Format:
H:i - Permalink Structure:
/%postname%/ - Pingbacks: Disabled by default
- Comments: Disabled by default
- Default Content: Removes Hello World post and sample pages
Theme Setup
- Clones the LamaPress boilerplate from GitHub
- Installs Composer dependencies
- Installs npm dependencies
- Builds production assets
- Activates the theme
- Removes default WordPress themes (Twenty Twenty Three, Four, Five)
After Running
Once the command completes, you'll see output like:
LamaPress ready on [http://my-project-name.test]. Build something unexpected.
Admin ready on [http://my-project-name.test/wp-admin]. Manage your website here.
Username: lamalama
Password: [generated-password]Important: Save the admin password shown in the output, as it's randomly generated.
Git Repository Setup
If you choose to initialize a Git repository:
- A new private GitHub repository is created under the
lamalamaNLorganization - The initial commit is pushed to the
mainbranch - A
developbranch is created and pushed
Requirements:
- GitHub CLI (
gh) must be installed - You must be authenticated with GitHub (
gh auth login) - You must have access to the
lamalamaNLorganization
If GitHub CLI is not available, the command will skip this step with a warning and continue.
Configuration Requirements
The following configuration keys are used (if available):
wp_migrate_license_key- Automatically configures WP Migrate DB Pro with your license key
See Configuration for details on setting up these keys.
Troubleshooting
Theme Clone Fails
If the theme clone fails:
- Check your internet connection
- Verify GitHub access: https://github.com/lamalamaNL/lamapress
- Check if you're behind a corporate firewall
- Try running manually:
git clone https://github.com/lamalamaNL/lamapress.git test - Set up SSH keys:
ssh-keygen -t ed25519 -C "your_email@example.com" - Authenticate with GitHub CLI:
gh auth login
GitHub Repository Creation Fails
If GitHub repository creation fails:
- Verify GitHub CLI is installed:
gh --version - Authenticate with GitHub:
gh auth login - Verify you have access to the
lamalamaNLorganization - The command will continue without creating the repository if GitHub CLI is not available
Build Errors
If asset building fails:
- Check Node.js version:
node --version(should be v24 LTS) - Try running manually:
cd wp-content/themes/my-project && npm install && npm run build - Check for error messages in verbose mode:
clli lamapress:new my-project -v
Related Documentation
- CLLI Overview - Introduction to CLLI
- Configuration - Setting up credentials
- Development Environment Setup - Setting up Herd