exp:expstatictargets
Available since Exponential 6.0.15 (in development, not in a release yet).
Summary
List the targets of static publishing (staticcache.ini [Target_<id>]) with their siteaccess, links and folder, and check each one
Usage
./console exp:expstatictargets [options] php bin/php/expstatictargets.php [options] ./console exp:static:targets [options]
Aliases
exp:static:targets
Help
The output of ./console help exp:expstatictargets (the script run with --help), without the standard options:
Usage: bin/php/expstatictargets.php [OPTION]... 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: --format=VALUE text (default) or json (the machine output exp-static/1) --export=VALUE print these targets (ids separated by commas, or all) as an INI migration and change nothing
Options
| Option | Value | Description |
|---|---|---|
| --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 |
Standard options
Every script also takes the standard options of the script framework: --help, --quiet, --siteaccess, --debug, --colors, --no-colors, --logfiles, --no-logfiles, --verbose and --allow-root-user.
Source
bin/php/expstatictargets.php, kernel/private/classes/commands/expstatictargets.php
See also
Generated example: exp:expstatictargets
Added to the reference for Exponential 6.0.15.
Contributors
- Graham Brookins Updated
Comments
Add a comment