Command-line interface reference
The Shulkerscript CLI is a command-line tool for managing Shulkerscript projects.
init
Initalize a project at the specified path. Creates project files and directories.
shulkerscript init [OPTIONS] [PATH]PATH: The path to the directory where the project should be created. Defaults to the current directory.
Options:
--force: Allow initalizing in a non-empty directory.--name: The name of the project. Defaults to the name of the directory.--description: The description of the project.--pack-format: The format of the pack. Defaults to26.--icon: The path to the icon file. Leave empty for default icon.--batch: Do not prompt for input, use default values instead if possible or fail.--vcs: The version control system to use. Defaults togit.
build
Build the project at the specified path to the dist folder.
shulkerscript build [OPTIONS] [PATH]PATH: The path to the directory where the project is located. Defaults to the current directory.
Options:
--assets <ASSETS>The path to the assets directory [default:./assets]--output <OUTPUT>The output directory, overrides theDATAPACK_DIRenvironment variable--no-validateSkip validation of the pack format--zipPackage the output into a zip file
Environment variables:
DATAPACK_DIRThe output directory [default:./dist]
watch
shulkerscript watch [OPTIONS] [PATH]PATH: The path of the project folder to watch [default:.]
Options:
--no-initialDo not run the command initially--debounce-time <DEBOUNCE_TIME>The time to wait in ms after the last change before running the command [default:2000]--execute <COMMAND>The shulkerscript commands to execute in the project when changes have been detected [multi-arg, default:build .]--no-executeDo not execute any predefined shulkerscript commands--shellThe shell commands to execute in the project when changes have been detected [multi-arg]
clean
Clean the output directory of the project at the specified path.
shulkerscript clean [OPTIONS] [PATH]PATH: The path of the project folder to clean [default:.]
Options:
--output <OUTPUT>The output directory, overrides theDATAPACK_DIRenvironment variable--allClean all files in the output directory, not only the ones generated by shulkerscript--forceRequired for--allto prevent accidental deletion of files
Environment variables:
DATAPACK_DIRThe output directory [default:./dist]