This is the reference for the
context object that is passed to some of the callbacks and methods.
Contains information about the current preset.
The name of the preset. It is determined, in order, by:
nameproperty of the preset file,
nameproperty of the
- the command line argument corresponding to the preset name name or path.
The absolute path to the templates directory of the current preset.
The absolute path to the directory of the current preset.
The absolute path to the current preset file. A preset file is either
preset.js in the preset directory, or the path specified in the
A value indicating whether or not the preset directory is temporary. A preset directory is considered temporary when it has been fetched from an external source, such as a remote repository, or a GitHub gist.
The absolute path to the current target directory. It is either the current working directory—that is, the directory in which the
use-preset command has been ran—or the directory that has been specified with the
--in command line flag.
An array containing the raw command line arguments.
An object containing parsed additional command line arguments, without the flags.
An object containing parsed command line flags. See
C.C. sama for information on the syntax.
An object containing the answers to the prompts actions.
A value indicating whether or not the preset is ran in debug mode.
listr2 object representing the current task.
An object containing two properties,
Contains the local Git option.
An instance of