Skip to main content

d2 app scripts pack

Create a .zip archive of a built application.

NOTE: This command is currently unsupported for libraries

> d2 app scripts pack --help
d2-app-scripts pack [source]

Create a .zip archive of a built application

Positionals:
source The source directory to pack relative to cwd.
[string] [default: ./build/app]

Global Options:
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
--verbose Enable verbose messages [boolean]
--debug Enable debug messages [boolean]
--quiet Enable quiet mode [boolean]
--config Path to JSON config file

Options:
--cwd working directory to use (defaults to cwd)
--destination, --dest, -d Directory to save the packed archive to.
[string] [default: ./build/bundle]
--filename Override the filename of the archive.
[string] [default: {app-name}-{version}.zip]
--app-name The name of the app to replace in filename
[string] [default: ${config.name}]
--app-version The version of the app to replace in filename
[string] [default: ${config.version}]