Bug #7384

Add new CLI --demo option to tools:purge tool for developers working with test sites

Added by Dan Gillean over 7 years ago. Updated about 7 years ago.

Status:VerifiedStart date:10/14/2014
Priority:MediumDue date:
Assignee:Mike Gale% Done:


Category:CLI tools
Target version:Release 2.2.0
Google Code Legacy ID: Tested version:2.1
Sponsored:No Requires documentation:


The php symfony tools:purge command will empty a database of all of its data - current 2.1 documentation of this tool can be found here: https://www.accesstomemory.org/en/docs/2.1/admin-manual/maintenance/cli-tools/#purging-all-data

This new CLI flag or option has been added for developers who are often working with test sites, and needing to regularly purge their test instances of data.

When the --demo flag is added to the purge command, it will do the following:

  • It will NOT ask for confirmation before purging all data (warning is removed)
  • It will repopulate the site with a default demo use (user: pass: demo)
  • It will add a temporary site title to the installation - "Demo site"


#1 Updated by Mike Gale over 7 years ago

  • Status changed from New to Verified

#2 Updated by Dan Gillean over 7 years ago

  • Requires documentation set to Yes

New --demo flag should be documented in the existing section for this tool, in the 2.2 branch.

#3 Updated by Dan Gillean about 7 years ago

  • Requires documentation deleted (Yes)

Documentation added to 2.2 branch.

Also available in: Atom PDF