This page lists the environment variables of all PagibleAI packages, the Artisan commands they provide and the entries of the audit log. The guides linked from each section explain the features in detail. The facades for your own Laravel code are described in the PHP API.
PagibleAI Configuration and Command Reference
Configuration
Most settings read an environment variable, so you can change them in .env without copying configuration files. Settings without a variable, like the roles or the admin colors, require a published copy of the configuration file:
php artisan vendor:publish --tag=cms-config
The core settings are in config/cms.php and the settings of each package in config/cms/<package>.php, e.g. config/cms/ai.php. Published files aren't updated by later releases, so compare them with the package versions after an upgrade. Run php artisan optimize:clear after changing the configuration if it's cached.
Core
CMS_LOCALESAPP_LOCALEen,de,fr; APP_LOCALE is the default language if it's in the list, otherwise the first one, and the admin hides the translation features if there is only oneCMS_TRANSLATE_FALLBACKhidehide leaves them out of menus, breadcrumbs and lists, source shows them in their source languageCMS_MULTIDOMAINfalseCMS_NAVDEPTH2CMS_DB_CONNECTIONDB_CONNECTIONCMS_DISKpublicCMS_PRIVATE_DISKlocalCMS_PRIVATE_TTL300CMS_UPLOAD_FILESIZE50upload_max_filesize and post_max_size in php.ini and the request size limit of the web server, e.g. client_max_body_size of nginx, must allow at least this sizeCMS_UPLOAD_MAXPIXELS16777216CMS_UPLOAD_MIMETYPESimage/,application/pdfCMS_IMAGE_DRIVERgdimagickCMS_IMAGE_QUALITY75cms:previews --force after changing itCMS_ALLOW_INTERNALfalseCMS_LOCK30CMS_VERSIONS10CMS_PRUNE30model:prune, false disables pruningCMS_QUEUE_CONNECTION, CMS_QUEUECMS_LOG_CHANNEL, CMS_WATCH_SAMPLE, CMS_WATCH_ANONYMIZE1.0, trueThe roles are defined in the roles array of config/cms.php and the language fallbacks of regional languages, e.g. 'de-CH' => ['de'], in translate.chains. See Authorization and Permissions for the roles.
The image previews are generated in the sizes listed in image.preview-sizes, by default with a maximum of 480 x 270, 720 x 405, 960 x 540 and 1920 x 1080 pixels. Run cms:previews after changing the list to create the new sizes and remove the old ones.
Frontend theme
CMS_THEME_CACHEfile, array if APP_DEBUG is setCMS_THEME_TTL86400, 0 if APP_DEBUG is set0 disables the cacheCMS_THEME_LOCK5CMS_THEME_STALE10CMS_THEME_DISKCMS_PAGEROUTE{}{"prefix":"pages"}CMS_SEARCH_MIN2CMS_SITEMAPsitemap/sitemap.xml, /sitemap-news.xml and /sitemap-{page}.xmlCMS_CSP_MEDIA_SRCCMS_CSP_STYLE_SRC, CMS_CSP_SCRIPT_SRC, CMS_CSP_CONNECT_SRCCMS_CSP_FRAME_SRChttps://www.openstreetmap.orgCMS_THEME_WATCHfalseHCAPTCHA_SITEKEY, HCAPTCHA_SECRETlocal environment if they are set; cms:install:theme adds them to config/services.phpAdmin panel
CMS_ADMIN_LOGINhttps://example.com/login?redirect=_url_; _url_ is replaced by the admin URLCMS_PROXY_MAXSIZE10CMS_PROXY_TIMEOUT30CMS_PROXY_TTL3600The colors of the light and dark admin theme are in the colors array of config/cms/admin.php.
AI
CMS_AI_LIMIT100 for no limitCMS_AI_RATELIMIT60CMS_AI_TIMEOUT300CMS_AI_MAXTIME9000 for no limitCMS_AI_MAXSTEPS25CMS_AI_MAXTOKEN00 uses the default of the modelCMS_AI_MAXINPUT1048576CMS_AI_MAXDEPTH20CMS_AI_MAXMEDIA200 for no limitEach AI function uses its own provider, model and API key. Set them with CMS_AI_<FUNCTION>, CMS_AI_<FUNCTION>_MODEL and CMS_AI_<FUNCTION>_API_KEY, e.g. CMS_AI_WRITE=openai. Without a model, the default model of the provider is used. The translation function also reads the provider URL from CMS_AI_TRANSLATE_URL, e.g. for the DeepL Free API.
WRITEgeminiREFINEopenaiDESCRIBEgeminiTRANSLATEdeeplIMAGINEgeminiINPAINTgeminiREPAINTgeminiERASEclipdropISOLATEclipdropUNCROPclipdropUPSCALEclipdropTRANSCRIBEopenaiSee Configure PagibleAI and the provider guides for the API keys.
APIs
CMS_GRAPHQL_MAXDEPTH15CMS_GRAPHQL_MAXCOMPLEXITY10000CMS_JSONAPI_MAXDEPTH12 allows include=children,children.childrenCMS_JSONAPI_WATCHfalseThe MCP package has no settings of its own. Its route is added to routes/ai.php by cms:install:mcp, and requests are limited by the cms-mcp rate limiter, see Rate limits below.
Search
The aimeos/pagible-search package is a Laravel Scout engine that stores the index in the cms_index table of the CMS database connection. It uses the full-text search of SQLite (FTS5), MySQL and MariaDB, PostgreSQL and SQL Server, and a LIKE search for other databases and for languages without spaces between words, like Chinese or Japanese. cms:install:search publishes config/scout.php and sets the default driver to cms.
The search uses the Scout settings:
SCOUT_DRIVER=cms
# index changes in queued jobs instead of during the request
SCOUT_QUEUE=true
Enable SCOUT_QUEUE in production and run a queue worker. External Scout engines like Meilisearch, Typesense or Algolia work as well, but need the langs, langs_trashed, lang, stale and editor fields as filterable attributes of the page index. The frontend search accepts at least CMS_SEARCH_MIN characters and 60 requests per minute and IP address.
Metrics
ANALYTICS_DRIVERnonecloudflare, ga4 or matomoCLOUDFLARE_SITETAG, CLOUDFLARE_TOKENcloudflare driverGOOGLE_PROPERTYIDga4 driverMATOMO_URL, MATOMO_TOKEN, MATOMO_SITEIDmatomo driverGOOGLE_AUTHga4 driver and for the Google Search queries, see Configure Google Search ConsoleCRUX_API_KEYKEYWORDS_DRIVERnonegoogle, ahrefs or semrushGOOGLEADS_CUSTOMER_ID, GOOGLEADS_LOGIN_CUSTOMER_ID, GOOGLEADS_DEVELOPER_TOKENgoogle driverGOOGLEADS_CLIENT_ID, GOOGLEADS_CLIENT_SECRET, GOOGLEADS_REFRESH_TOKENgoogle driver, see Configure Google AdsGOOGLEADS_VERSIONv26AHREFS_API_KEY, AHREFS_COUNTRYusahrefs driverSEMRUSH_API_KEY, SEMRUSH_DATABASEussemrush drivercms:install:metrics publishes config/analytics-bridge.php. The keyword research of the get-keyword-volume and get-related-keywords MCP tools needs the package of the driver and the configuration of the keywords bridge, which you have to publish yourself:
composer require aimeos/laravel-keywords-google
# or aimeos/laravel-keywords-ahrefs, aimeos/laravel-keywords-semrush
php artisan vendor:publish --provider="Aimeos\KeywordsBridge\ServiceProvider"
Page metrics are cached for one hour and keyword data for seven days. Users need the page:metrics permission to see the Metrics tab of the page editor and to use the metrics in GraphQL and MCP, see GraphQL Page Metrics. The Metrics tab is an admin plugin, so run php artisan vendor:publish --tag=cms-admin --force after each update of the package.
CDN
CMS_CDN_URLAPP_URLhttps://www.example.comCMS_CDN_DELAY00 purges each change immediatelyCMS_CDN_LIMIT5000 always purges the URLsCMS_CDN_MAXAGECMS_CDN_STALE0CMS_CDN_TIMEOUT10CMS_CDN_CLOUDFLARE_TOKEN, CMS_CDN_CLOUDFLARE_ZONECMS_CDN_FASTLY_TOKEN, CMS_CDN_FASTLY_SERVICECMS_CDN_FASTLY_SOFTtrueCMS_CDN_VARNISH_SERVERS10.0.0.1:6081,10.0.0.2:6081; enables the Varnish clientHost limits per client, bans, refreshes and the order of stacked caches are set in the clients array of config/cms/cdn.php. See CDN Cache Purging.
Webhooks
CMS_WEBHOOKS_ENABLEDfalseCMS_WEBHOOKS_QUEUE_CONNECTION, CMS_WEBHOOKS_QUEUEcms-webhooksCMS_WEBHOOK_INDEXER_URL, CMS_WEBHOOK_INDEXER_SECRETconfig/cms/webhooks.php, which is commented out by defaultThe response timeout (10 seconds), the subscriptions per tenant (25), the operator endpoints that receive the events of all tenants and the blocked IP ranges are set in config/cms/webhooks.php. Operator secrets start with whsec_; use a list of the new and the previous secret to rotate them. See Webhooks.
Payments
The aimeos/pagible-cashier package has no settings of its own. The API keys and webhook secrets are configured as described in the README of the provider package for Stripe, Paddle or Mollie, and cms:cashier:check shows what's still missing. See Paid Page Access.
Pulse dashboard
The aimeos/pagible-pulse package has no environment variables of its own, and Laravel Pulse itself is switched off with PULSE_ENABLED=false. The cards of the CMS dashboard are listed in the cards array of config/cms/pulse.php. Reorder the entries to change the layout or remove one to hide a card. Cards of packages that aren't installed stay hidden.
cms:install:pulse publishes the dashboard to resources/views/vendor/pulse/dashboard.blade.php, but doesn't overwrite an existing file. In that case, add the CMS cards to your dashboard yourself as described in the package README.
Running in production
Queues and scheduler
PagibleAI runs slow or repeated work in queued jobs. With the sync queue connection, they run during the request, which makes saving and publishing slower. With any other connection, nothing happens until a queue worker processes the jobs:
CMS_QUEUE_CONNECTION, CMS_QUEUESCOUT_QUEUE=trueCMS_QUEUE_CONNECTION, CMS_QUEUECMS_CDN_DELAY requires a queue other than syncCMS_WEBHOOKS_QUEUE_CONNECTION, cms-webhooksThe webhook deliveries use their own queue, so the worker has to process it too, and the retry_after setting of the queue connection must be greater than the webhook timeout plus 13 seconds:
php artisan queue:work --queue=default,cms-webhooks
The command uses the default queue names. If you set CMS_QUEUE, CMS_WEBHOOKS_QUEUE or a queue for Scout in config/scout.php, list these names instead, otherwise their jobs are never processed.
The Laravel scheduler runs cms:publish every 30 minutes for scheduled versions and model:prune daily to remove deleted pages, elements and files after CMS_PRUNE days. The Mollie package also schedules cashier:run for the recurring payments. Add the scheduler to the crontab of the server:
* * * * * cd /path/to/app && php artisan schedule:run >> /dev/null 2>&1
Versions scheduled for 10:05 are therefore published at 10:30 at the latest. If they must go live sooner, schedule cms:publish more often in the routes/console.php file of your application, e.g. Schedule::command('cms:publish')->everyFiveMinutes()->withoutOverlapping();.
Route middleware
The middleware of some routes is set in the configuration. In multi-tenant setups, e.g. with stancl/tenancy, add the middleware that initializes the tenant to the broadcasting and chat routes. Otherwise, the channels are authorized and the AI tools in the chat run without the right tenant. See Multi-Tenancy Setup.
broadcast-middleware in config/cms.phpweb, auth, throttle:cms-broadcast/broadcasting/authmiddleware in config/cms/ai.phpweb, throttle:cms-aicmsapi/chatproxy.middleware in config/cms/admin.phpweb, auth, throttle:cms-proxyRate limits
The packages register Laravel rate limiters, which answer with HTTP status 429 if a limit is exceeded. Limits per user count by IP address for guests. To change a limit, register a limiter with the same name in the boot() method of your AppServiceProvider, e.g.:
use Illuminate\Cache\RateLimiting\Limit;
use Illuminate\Support\Facades\RateLimiter;
RateLimiter::for('cms-graphql', fn($request) => Limit::perMinute(300)->by($request->user()?->id ?: $request->ip()));
cms-graphqlcms-logincms-aiCMS_AI_LIMIT (10) per usercms-copycms-mcpcms-jsonapicms-searchcms-contactcms-sitemapcms-broadcastcms-proxycms-asset, cms-admin-assetcms-cashierIn addition to cms-login, failed logins are limited separately: after three failed attempts with the same email address from one IP address, the login is blocked for a minute.
Behind a CDN, load balancer or reverse proxy, configure the trusted proxies of Laravel, e.g. with $middleware->trustProxies(at: [...]) in bootstrap/app.php. Otherwise, all requests seem to come from the IP address of the proxy, so all visitors share one limit and the audit log contains the proxy address instead of the visitor's.
Production checklist
- Set
APP_DEBUG=false, which also enables the page cache of the theme. - Use a
CMS_PRIVATE_DISKthat isn't reachable from the web and keepCMS_ALLOW_INTERNAL=false. - Remove the
CMS_CSP_*sources your pages don't use, e.g. the Unsplash and Iconify hosts. - Set
SCOUT_QUEUE=true, run a queue worker for the default andcms-webhooksqueues and add the scheduler to the crontab. - Configure the trusted proxies if a CDN, load balancer or reverse proxy forwards the requests.
- With several application servers, use a shared cache store with locks, like Redis, Memcached or the database, for
CACHE_STOREandCMS_THEME_CACHE. The locks of the page tree, files, page cache, sitemaps and CDN purges and the scheduler only work across servers this way. - Raise
upload_max_filesize,post_max_sizeand the request size limit of the web server to at leastCMS_UPLOAD_FILESIZE. - Set the hCaptcha keys if you use the contact form.
- Set
CMS_LOG_CHANNELto record content changes and logins. - In multi-tenant setups, add the tenancy middleware to the broadcasting and chat routes.
- Run
php artisan optimizeafter each deployment andphp artisan vendor:publish --tag=cms-admin --forceafter updating the packages. - Schedule
cms:backupwith--keepto create regular backups.
Artisan commands
Run php artisan <command> --help to see all options of a command. cms:publish, cms:previews and cms:description work on all tenants if --tenant is missing. The other commands use one tenant, which is described in their rows. Pass --tenant= without a value for the default tenant.
Installation
cms:installcomposer.json; --seed adds example pagescms:install:<package>cms:install:core, cms:install:theme or cms:install:webhooks; cms:install calls them for all installed packagescms:install:cashier--no-migrate only publishes the migrations, --webhook creates the Stripe webhook without askingcms:demo--theme selects the theme, --tenant the tenant (default: the theme name) and --all adds every registered theme to its own tenantcms:servephp artisan serve, but serves uploaded files and allows uploads up to 100 MBUsers and content
cms:user <email>cms:publishcms:indexcms:previews--force replaces all previews, --id limits it to the given file IDs and can be used several timescms:descriptionOptions of cms:user:
-a,--add: adds roles or permissions, e.g.-a editoror-a "page:*". Can be used several times.-r,--remove: removes roles or permissions. Permissions not assigned directly are denied with a!entry.--langs: limits the languages the user may change, e.g.--langs=de --langs=fr. It replaces the current languages,--langs=*allows all languages again.-l,--list: shows the permissions of the user.--rolesshows all roles.-e,--enableand-d,--disable: enable or disable the user.-p,--password: sets the password of a new user instead of asking for it.
Backup and restore
cms:backuppagible-<tenant>-<date>.zip with the CMS data and files of one tenant; --tenant selects the tenant (default: the current one), --disk the storage disk (default local), --keep deletes the oldest backups of the tenant and --no-media skips the filescms:restore [file]--tenant; --list shows the available backups, --verify only checks them, --merge updates existing data instead of replacing it, --media-only or --no-media restore only the files or only the data and --force skips the confirmation and accepts backups from other installationsWithout --merge, cms:restore deletes all pages, elements and files of the target tenant before restoring the backup. The backups are signed with APP_KEY, so backups from an installation with another key are only restored with --force. They aren't encrypted, so store them on a private disk.
Checks
cms:schema:check [themes...]schema.json files of the given themes, or of all registered themes, for errorscms:cdn:check--send also purges a test URLcms:cdn:purge [urls]--all removes all content and --client selects the CDN clientscms:webhooks:checkcms:cashier:checkImports
The importers read the database of the other system through a Laravel database connection, which is set with --connection. All of them accept --dry-run to show the changes first and --since=2026-01-31 to import only the content changed since that date. The steps and options all importers share are described in Migrate to PagibleAI.
Audit logging
PagibleAI writes structured log entries of content changes, logins, permission changes and AI requests to a Laravel log channel. Logging is off by default and costs nothing while it's disabled. Enable it by naming the log channel:
CMS_LOG_CHANNEL=cms
# keep 10% of the search and JSON:API entries
CMS_WATCH_SAMPLE=0.1
# log email addresses, IP addresses and user agents unmasked
CMS_WATCH_ANONYMIZE=false
If the channel isn't defined in config/logging.php, PagibleAI creates a daily channel that writes JSON lines to storage/logs/cms.log and keeps them for 14 days. Define the channel yourself to send the entries to another destination, e.g. a log management service.
CMS_WATCH_ANONYMIZE is enabled by default and replaces email addresses, IP addresses and user agents by an HMAC-SHA256 hash keyed with APP_KEY. Equal values result in the same hash, so you can still group the entries of a user. CMS_WATCH_SAMPLE (0.0-1.0) only reduces the high-volume search and JSON:API entries; all other entries are always written.
cms.page, cms.element, cms.filetype, action, ids, editor, source, published, tenant_id and path and domain for pages, langs for changes of several languagescms.authaction, email, ip, user_agent, tenant_idcms.useraction, actor, target, target_id, assignments, langs, ip, user_agent, tenant_idcms.aimutation, provider, model, duration_ms, editor, success, error, input_tokens, output_tokens, tenant_idcms.searchCMS_THEME_WATCH=truequery, results, page, duration_ms, domain, lang, tenant_idcms.contactCMS_THEME_WATCH=trueemail, ip, duration_ms, tenant_idcms.jsonapiCMS_JSONAPI_WATCH=trueaction, duration_ms, domain, includes, tenant_idEvery entry contains a request_id, which is taken from a valid X-Request-Id header or generated, so you can find all entries of one request. The source field of content changes is graphql for the admin panel and GraphQL clients, mcp for MCP clients and cli for commands and queued jobs. Empty fields are left out.
The cms.user entries are warnings. They are written to the default log channel if CMS_LOG_CHANNEL isn't set, so permission changes are always recorded. Logging errors never break a request; they are written to the PHP error log instead.
Benchmarks
The aimeos/pagible-benchmark package measures the performance of the packages during development. Install it with composer require --dev aimeos/pagible-benchmark. The benchmarks write to and delete from the CMS database, so never run them against production data.
cms:benchmark--domain is required, --seed generates the benchmark data first (--pages, default 10000) and --unseed removes it againcms:benchmark:<package>core, graphql, jsonapi, mcp, search or theme; requires the data seeded by cms:benchmark --seedThe benchmarks use the benchmark tenant unless you pass --tenant, and --tries sets the iterations of each benchmark (default 100). Each one prints the minimum, maximum, average, median and 90th percentile time and the peak memory usage. Add -v, -vv or -vvv to see the SQL timings, statements and query plans.