Home | Index

r3 Reference Guide

r3 var save

Saves vars in a simple XML file.

This command has three sub-commands.

usage:r3 [-c <arg>] var save
save various var data to file

all [-f]              save all var data to file
only [-f]             save only explicit location data to file
inherited [-f]        save inherited location data to file

An example of the saved xml file is shown here:

<?xml version="1.0" encoding="UTF-8"?>
<vars version='1'>
    <var id='1'
         location='cheese/fr/generic'
         name='key variable A'>value to substitute for A</var>
    <var id='2'
         location='cheese/fr/generic'
         name='key variable B'>value to substitute for B</var>
    ...
</vars>

For all these sub-commands, the filename is optional. If it is not provided, the output is sent to STDOUT.

r3 var save all

r3 var save all [ file ]

Saves all vars across the project workspace.

aliases
  • none

flags
  • -f: forces overwrite of existing file.

r3 var save only

r3 var save only location [ file ]

Saves the vars for the supplied location only.

aliases
  • none

flags
  • -f: forces overwrite of existing file.

r3 var save inherited

r3 var save inherited location [ file ]

Saves the vars for the supplied location and for all inherited locations.

aliases
  • none

flags
  • -f: forces overwrite of existing file.