Skip to main content
Replace directorynamehere with your actual installation directory name.

Command Breakdown

Common Installation Directories

If you’re unsure of your installation directory, common path include:
  • /var/www/spartan
You can check your installation directory by running:

Example

If your installation is in /var/www/spartan, your update command would be:

What the update keeps

The update replaces the application files. Your .env, storage/, uploads in public/, the database and which modules are switched on always survive. On top of that: In interactive mode the updater asks which of these to keep. Custom modules and themes are restored before the frontend is rebuilt, and the updater restarts Octane and the queue workers when it finishes, so there’s nothing to rebuild or reload afterwards.

Before You Update

Always back up your data before updating. The update script takes a backup automatically and restores it if something goes wrong, but it’s better to be safe than sorry.