Appearance
CLLI Configuration
CLLI stores configuration in ~/.clli/config.json. You'll need to add credentials and license keys for various services to enable full functionality.
Configuration File Location
The configuration file is stored at:
~/.clli/config.jsonThis file is automatically created when you first use CLLI commands that require configuration.
View Current Configuration
Display your current configuration:
bash
clli config:showThis will output the entire configuration file in JSON format.
Update Configuration
Use the interactive command to update configuration values:
bash
clli config:updateThis command will:
- Show all existing configuration keys
- Allow you to select a key to update or create a new one
- Prompt you for the new value
Required Configuration Keys
For full functionality, you should configure these keys:
Local Development
wp_migrate_license_key- WP Migrate DB Pro license key- Available at: https://deliciousbrains.com/my-account/licenses
- Used when creating new projects to automatically configure WP Migrate DB Pro
- Required for:
lamapress:new
Staging & Deployment
forge_token- Laravel Forge API token- Get from: https://forge.laravel.com/user/profile#/api
- Required for:
lamapress:staging
forge_server_id- Forge server ID- Select from your Forge account servers
- Required for:
lamapress:staging
cloudflare_token- Cloudflare API token- Generate at: https://dash.cloudflare.com/profile/api-tokens
- Required for:
lamapress:staging
cloudflare_zone_id- Cloudflare zone ID- Found in the Overview tab of your domain on Cloudflare
- Required for:
lamapress:staging
Optional
openai_api_key- OpenAI API key- Required for:
ai:storycommand
- Required for:
Example Configuration
You can manually edit ~/.clli/config.json or use the config:update command:
json
{
"created_at": "2024-01-01 00:00:00",
"updated_at": "2024-01-01 00:00:00",
"wp_migrate_license_key": "your-license-key-here",
"forge_token": "your-forge-token-here",
"forge_server_id": "12345",
"cloudflare_token": "your-cloudflare-token-here",
"cloudflare_zone_id": "your-zone-id-here",
"openai_api_key": "your-openai-key-here"
}Note: The wp_migrate_license_key is the most important for local development. Other keys are primarily used for staging environment management.
Configuration Commands
For detailed information about configuration commands, see the Configuration Commands documentation.
Troubleshooting
Configuration Issues
If configuration is not working:
- Check if the config file exists:
cat ~/.clli/config.json - Verify JSON syntax is valid
- Use
clli config:updateto interactively update values - Ensure you have write permissions to
~/.clli/directory
Missing Configuration Keys
If a command fails due to missing configuration:
- Run
clli config:showto see what's currently configured - Use
clli config:updateto add the missing key - Refer to the command documentation for required keys
Next Steps
- Create a new project - Use CLLI to create your first LamaPress project
- Create staging environment - Set up staging environments on Laravel Forge
- Pull staging environment - Pull staging environments to your local machine