# Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

### Grasshopper

# Grasshopper-v2_0-UserGuide

- 1
- 2
…
- 25
- 26
- 27
- 28
- 29
…
- 133
- 134

SECRET//NOFORN
1.3 Build Commands
The following commands are used to build or rebuild Grasshopper executables:
build
build [-l LOG_PATH] [-o OUTPUT_DIR]
[--dll] [--ice] [--x86] [--x64]
[-r RULE_PATH] [-e]
[INSTALLER …]
Build a new Grasshopper executable. The installers included in the
executable are selected using IDs assigned by the add installer command.
The installer ID arguments support Unix shell-style wild cards.
If no installer IDs are specified, the build will include all installers in the
workspace, sorted lexicographically by ID. If there are no installers in the
workspace, the build will use an implicit installer consisting of all components
in the workspace, sorted lexicographically by ID.
The executable may be configured to generate a log at runtime using the
–
l/--log-path flag. An encoded log file will be saved to a file on target specified
by the flag argument.
The output directory may be set using the –o/--output flag. The default output
directory is the value of the environment variable ‘GHBUILDOUTPUT’ or the
current working directory if the variable is not set.
The executable format is selected using the –dll and –ice flags. If none of
these flags is used, the builder will produce all of them.
The executable architecture is selected using the –x86 and –x64 flags. If none
of these flags is used, the builder will produce all of them.
The executable may be assigned a global rule that describes required on-
target conditions. Existing rule files may be added to the global rule using the
–r/--rule flag. If the –e/--edit flag is provided, the global rule files will be
opened in a text editor. If neither the –r or –e flags are used, no global rule
will be generated for the executable.
rebuild
rebuild [-o OUTPUT_DIR] [--dll] [--ice] [--x86] [--x64] RECEIPT
Rebuild a Grasshopper executable from the receipt file generated during a
previous build.
The output directory may be set using the –o/--output flag. The default output
directory is the value of the environment variable ‘GHBUILDOUTPUT’ or the
current working directory if the variable is not set.
The executable format is selected using the –dll and –ice flags. If none of
these flags is used, the builder will produce all of them.
The executable architecture is selected using the –x86 and –x64 flags. If none
of these flags is used, the builder will produce all of them.
ls receipt
27
SECRET//NOFORN

- 1
- 2
…
- 25
- 26
- 27
- 28
- 29
…
- 133
- 134