11.36. pegasus-version

1 pegasus-version print or match the version of the toolkit.

pegasus-version [-Dproperty=value] [-m [-q]] [-V] [-f] [-l]

11.36.1. Description

This program prints the version string of the currently active Pegasus toolkit on stdout.

pegasus-version is a simple command-line tool that reports the version number of the Pegasus distribution being used. In its most basic invocation, it will show the current version of the Pegasus software you have installed:

$ pegasus-version

If you want to know more details about the installed version, i.e. which system it was compiled for and when, use the long or full mode:

$ pegasus-version -f

11.36.2. Options


The -D option allows an experienced user to override certain properties which influence the program execution, among them the default location of the user’s properties file and the PEGASUS_HOME location. One may set several CLI properties by giving this option multiple times.

The -D option(s) must be the first option on the command line. CLI properties take precedence over the file-based properties of the same key.

-f; –full

The –full mode displays internal build metrics, like OS type and libc version, addition to the version number. It appends the build time as time stamp to the version. The time stamp uses ISO 8601 format, and is a UTC stamp.

-l; –long

This option is an alias for –full.

-V; –version

Displays the version of the Pegasus planner you are using.


is ignored in this tool. However, to provide a uniform interface for all tools, the option is recognized and will not trigger an error.

11.36.3. Return Value

The program will usually return with success (0). In match mode, if the internal version does not match the external installation, an exit code of 1 is returned. If run-time errors are detected, an exit code of 2 is returned, 3 for fatal errors.

11.36.4. Environment Variables


should be set and point to a valid location to start the intended Java virtual machine as $JAVA_HOME/bin/java.

11.36.5. Example

$ pegasus-version

$ pegasus-version -f