How the kickstarter and the console use packages
This page is for administrators and hosting teams who install from the command line, in scripts, CI or containers. It answers: how you name the site package, where it is fetched from, how that differs from the web wizard, and how to check the packages before a real run.
Contents
- Same steps, no browser
- Naming the site package
- How the package is found
- Differences from the web wizard
- Dry runs check the packages
- Installing a package that is not on the server
- Getting a fresh copy
- Related pages
Same steps, no browser
The kickstarter (php bin/php/console exp:kickstarter run --apply, also php bin/php/kickstarter.php run --apply) runs the steps of
kernel/setup/steps/ezstep_data.php from Welcome to Final, each step reading its section of kickstart.ini in the
installation root. exp:install (bin/php/install.php) turns its options into the same sections and runs the same
steps. The package code is therefore the code of the web wizard, described in
How the setup wizard uses packages; only the choice of the package and the
fetching rules differ.
Naming the site package
kickstart.ini:
[site_types]
Continue=true
Site_package=sevenx_multisiteSite_package is required; its value is the <name> of a site package (kickstart.ini-dist documents it as "Which
site package to install, package identifier"). php bin/php/console exp:kickstarter ini --yes writes
sevenx_multisite (kernel/classes/expkickstarterini.php).
exp:install:
php bin/php/console exp:install --apply --package=sevenx_multisite
php bin/php/console exp:install --apply --package=cjw_multisite --languages=ger-DE--package=<name> defaults to sevenx_multisite and becomes [site_types] Site_package of the generated
configuration. Without any option, exp:install installs sevenx_multisite on SQLite.
Note
The kernel still has a SitePackages step (ezstep_site_packages.php) that would read a [site_packages] Packages key, but the step is commented out of StepTable, and kickstart.ini-dist does not mention it.
Additional packages cannot be chosen this way; list them as requirements of the site package instead. From 6.0.15
on their own requirements are downloaded too, down the whole chain. The step stays off: see
How the setup wizard uses packages.
How the package is found
In kickstart mode eZStepSiteTypes::init() does this:
- Read the remote index (
[RepositorySettings] RemotePackagesIndexURL,index.xml), falling back tovar/storage/packages/7x/index.xmlwhen the server cannot be reached. - Read the local site packages and the status of their requirements.
- Merge the two lists preferring the remote entry (
createSitePackagesList( ..., true )): the index'sversioncannot be compared with a local package's version, so the remote entry is kept whenever both exist. - Find the entry named by
Site_package. - The entry has a URL (it is in the index): call
downloadAndImportPackage()without force. A package of that name that is already imported is used as it is; only a missing one is downloaded and imported. ThendownloadDependantPackages()fetches requirements that are missing or older than theirmin-version. - The entry has no URL (only local, for example in an offline install with a local index that does not list it): go on only when every requirement is imported; otherwise the step stops and asks.
- Select the package and continue with the next step.
The installation itself happens in Create sites, exactly as in the wizard: the required packages are installed in
the order of the site package's <require> list.
Differences from the web wizard
| Web wizard | Kickstarter and exp:install | |
|---|---|---|
| Choice | radio button, preselected first imported package | Site_package / --package |
| Remote and local entry both exist | the newer by version | always the remote entry |
| Remote entry chosen, package already imported | removed and downloaded again (force) | the imported copy is used |
| Requirements | missing or too old: downloaded | the same |
Upload of an .ezpkg | on the page | not offered: import first with ezpm import |
| Dry run | none | --dry-run |
So with the command line front ends an imported package is never replaced by a run. This is what makes an offline or pinned install repeatable, and it is also why an old imported package keeps being used after the server has a newer one; see Getting a fresh copy.
Dry runs check the packages
php bin/php/console exp:kickstarter run --dry-run
php bin/php/console exp:install --package=sevenx_multisite --dry-runIn a dry run SiteTypes imports into a temporary repository, var/storage/packages/dryrun, and in "skip existing"
mode downloads the site package and all its requirements from the server, so the whole chain is verified even
when copies are already imported. The temporary repository is removed when the step is done and at the start of
every run (expKickstarter::cleanupDryRun()). A dry run stops after Site details and writes no database and no
settings. Its last line on success:
Dry-run completed: database and remote packages verified. Stopped after SiteDetails, nothing written.Run it before every real install on a server, and after you change RemotePackagesIndexURL.
Installing a package that is not on the server
Import the archive into the local repository (from the installation root):
php ezpm.php import my_site.ezpkg php ezpm.php import my_site_classes.ezpkgImport every package it requires too.
Name it in
kickstart.inior with--package=my_site.When the server's index does not list it, the step takes the local copy and goes on as long as every requirement is imported (step 6 above).
To let every installation offer such a package, publish it on a package server and point the installations at it: see Running your own package server and Pointing a site at your package server, or contribute it to the shared server.
Getting a fresh copy
Because an imported package is reused, remove the imported directory before a run when you want the server's
current archive (the kickstarter documentation says the same: "To force a fresh copy of a package, remove its
imported directory first"). Use the package list's Remove in Setup > Packages, or php ezpm.php delete <name>;
both delete only the repository copy, not what an install put on a site. See
Import versus install.
Related pages
- Site package basics
- Site packages: start here
- The kickstarter, 6.4.2 Sections and keys
- The kickstarter, 6.7 Dry runs
- The console install, 7.3 Options
- Install in one command
- Offline installs and mirrors
- Contribute your site package
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.