A simple CLI app to quickly create new Deno sandbox/playground projects.
deno install --global -RWE --allow-run jsr:@mcnull/deno-box# Clone the repository
git clone https://github.com/mcnull/deno-box.git
cd deno-box
# Install the main entrypoint
deno task install# Clone the repository
git clone https://github.com/mcnull/deno-box.git
cd deno-box
# Compile the binary
deno task compile
# Optional: Move the binary to a directory in your PATH
mv deno-box ~/.local/bin/deno-box [options] [name]If no name is provided, a random name in the format of adjective-animal-number will be generated.
-h, --help: Show help message-r, --root <path>: Root directory for new project (default:~/tmp/deno-box)-c, --copy <name>: Copy an existing project-w, --writeConfig: Write the default config to~/.config/deno-box/config.json-a, --add <lib>: Add a library to the project (can be used multiple times)--vscode: Open the project in VSCode
deno-boxThis creates a new project with a randomly generated name (like blue-elephant-42) in the default root directory.
deno-box my-projectdeno-box --root ~/projects/denodeno-box --add jsr:@std/http --add jsr:@std/encodingdeno-box --copy blue-elephant-42This will create a copy of the blue-elephant-42 project with a name like blue-elephant-42-copy.
deno-box --vscodedeno-box --writeConfigThis writes the default configuration to ~/.config/deno-box/config.json, which you can then customize.
You can customize the default behavior by creating a config file at ~/.config/deno-box/config.json.
Example configuration:
{
"root": "~/projects/deno-sandboxes",
"add": ["jsr:@std/http", "jsr:@std/encoding", "jsr:@std/fmt"],
"vscode": true
}