Update


1Overview

Temma's source code evolves over time, and it's important to get the latest versions, whether to benefit from bug fixes or to take advantage of new features.

Updating is done on the command line, using the comma tool. Here's the easiest way to update an existing project:

$ bin/comma Temma update

The command is run from the project root.


2Options

The update command can take several options, in order to choose the version deployed and the update behavior.


2.1version

The version option can take several possible values:

  • stable: (default value) Updates with files from the latest released version of Temma.
  • latest : Updates with Temma's latest commited sources. This allows you to retrieve the latest developments, but takes a risk as these files may not have been thoroughly tested.
  • A version number in the form X.Y.Z: Allows you to specify the precise version to be retrieved.

Examples:

$ bin/comma Temma update --version=stable
$ bin/comma Temma update --version=latest
$ bin/comma Temma update --version=2.4.0

2.2force

The update is performed in a way that respects your use of Temma. By default, certain files or directories are not updated if they are not present in your file tree.

With the force option, you can request a more aggressive update, which may go as far as deleting files and replacing them with Temma files (in the requested version).

Three identical examples:

$ bin/comma Temma update --force
$ bin/comma Temma update --force=true
$ bin/comma Temma update --force=yes

3Current version number

To find out the current version number of Temma, simply run the following command:

$ bin/comma Temma info

You'll get the Temma version, as well as the Smarty version (if Smarty is installed):

Temma version:  2.4.0
Smarty version: 5.4.1