Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,199 of 9,199 pages
About the help in other languages
All help pages

How the kickstarter and the console use packages

How the kickstarter (kickstart.ini [site_types] Site_package) and the console install (exp:install --package) choose, fetch and install a site package, how they differ from the web wizard, how dry runs check packages…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/site-packages/basics/how-the-kickstarter-and-console-use-packages.md

On this page

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

  1. Same steps, no browser
  2. Naming the site package
  3. How the package is found
  4. Differences from the web wizard
  5. Dry runs check the packages
  6. Installing a package that is not on the server
  7. Getting a fresh copy
  8. 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_multisite

Site_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:

  1. Read the remote index ([RepositorySettings] RemotePackagesIndexURL, index.xml), falling back to var/storage/packages/7x/index.xml when the server cannot be reached.
  2. Read the local site packages and the status of their requirements.
  3. Merge the two lists preferring the remote entry (createSitePackagesList( ..., true )): the index's version cannot be compared with a local package's version, so the remote entry is kept whenever both exist.
  4. Find the entry named by Site_package.
  5. 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. Then downloadDependantPackages() fetches requirements that are missing or older than their min-version.
  6. 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.
  7. 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 wizardKickstarter and exp:install
Choiceradio button, preselected first imported packageSite_package / --package
Remote and local entry both existthe newer by versionalways the remote entry
Remote entry chosen, package already importedremoved and downloaded again (force)the imported copy is used
Requirementsmissing or too old: downloadedthe same
Upload of an .ezpkgon the pagenot offered: import first with ezpm import
Dry runnone--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-run

In 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

  1. 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.ezpkg

    Import every package it requires too.

  2. Name it in kickstart.ini or with --package=my_site.

  3. 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.

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.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x