Skip to content

Build your Box config file

As there are no legacy commands to realize this operation, we present here only the new pipeline syntax.

Tip

We recommend to use the *.json.dist suffix file for writing the final Box configuration file. But you're free to use whatever naming strategy you want.

Warning

If you want to use the -d|--working-dir option of make command to change current working directory at runtime, you should disable the dump-autoload setting, due to BOX issue 580.

{
    "main": "index.php",
    "compression": "GZ",
    "directories": ["bin", "src", "vendor"]
}
box-manifest make --output-conf my-box.json.dist configure
{
    "files-bin": [
        "console-table.txt",
        "manifest.txt",
        "sbom.json",
        ".box.manifests.bin"
    ],
    "map": [
        {
            "console-table.txt": ".box.manifests/console-table.txt"
        },
        {
            "manifest.txt": ".box.manifests/manifest.txt"
        },
        {
            "sbom.json": ".box.manifests/sbom.json"
        }
    ],
    "stub": null
}
box-manifest make -c my-box.json --output-conf my-box.json.dist configure
{
    "main": "index.php",
    "compression": "GZ",
    "directories": [
        "bin",
        "src",
        "vendor"
    ],
    "files-bin": [
        "console-table.txt",
        "manifest.txt",
        "sbom.json",
        ".box.manifests.bin"
    ],
    "map": [
        {
            "console-table.txt": ".box.manifests/console-table.txt"
        },
        {
            "manifest.txt": ".box.manifests/manifest.txt"
        },
        {
            "sbom.json": ".box.manifests/sbom.json"
        }
    ],
    "stub": null
}