2.4 KiB
2.4 KiB
| title | description | sidebar | ||
|---|---|---|---|---|
| Command-line interface reference | Reference for the ShulkerScript command-line tool |
|
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.--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--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 commands (cli subcommands or shell commands) to execute in the project when changes have been detected [multi-arg, default:build]
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]