exp:expstatictargets
List the targets of static publishing (staticcache.ini [Target_<id>]) with their siteaccess, links and folder, and check each one.
Script bin/php/expstatictargets.php, code in kernel/private/classes/commands/expstatictargets.php. Run it from the installation root, as the user the web server runs as:
./console exp:expstatictargets --help
./console exp:static:targets --help
php bin/php/expstatictargets.php --helpHelp text
The targets of static publishing
Every target of staticcache.ini [StaticPublishSettings] TargetList[] with its siteaccess, how its links
are written, its public address and its folder, and what is wrong with its settings. Changes nothing;
exit 1 when a target has an error.
./console exp:static:targets
./console exp:static:targets --format=json
./console exp:static:targets --export=all > migrations/20261101120000_static_targets.ini
--export prints targets as an INI migration (also for a site package): their [Target_<id>] blocks and
TargetList[]. Credentials travel as their secret names, never their values.Options
| Option | Value | Help |
|---|---|---|
--format | required | text (default) or json (the machine output exp-static/1) |
--export | required | print these targets (ids separated by commas, or all) as an INI migration and change nothing |
Read from the option definitions in the code (startup(), getOptions(), options() or ezcConsoleOption). Every script also takes the standard options of the script framework (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).
Related
Generated by ./console exp:help:examples from bin/php/expstatictargets.php, kernel/private/classes/commands/expstatictargets.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.