Edit

Share via


vcpkg format-manifest

Synopsis

vcpkg format-manifest [--all] [--convert-control] [<path>...]

Description

Formats manifest (vcpkg.json) files and converts control (CONTROL) files into the manifest format. If both CONTROL and vcpkg.json file are present in the same directory, the command will exit with an error.

Examples

To format a specific manifest or control file:

vcpkg format-manifest /path/to/vcpkg.json

To format all manifest files in the ${VCPKG_ROOT}/ports directory:

vcpkg format-manifest --all

Options

All vcpkg commands support a set of common options.

--all

Formats all manifest files in the ${VCPKG_ROOT}/ports directory.

--convert-control

Converts CONTROL files into vcpkg.json format when found in the ports directory.