Getting started
Install from this repository
Section titled “Install from this repository”Wiz uses Bun for installation, builds, and tests:
git clone https://github.com/wiz-sh/wiz.gitcd wizbun installbun run buildbun link --cwd apps/cliConfirm the linked executable is the checkout you built:
wiz --versionwiz --helpCreate a project
Section titled “Create a project”Run wiz init in an empty project directory. The optional name becomes the
package name; it does not create another nested directory.
mkdir hello-wizcd hello-wizwiz init hello-wizThe command creates manifest.json, config.wiz.json, .gitignore, and an
executable src/index.sh. Existing files are preserved.
Create src/main.wiz:
#!/usr/bin/env bash
greet(string name="world"): void { printf 'Hello, %s!\n' "$name"}
greet "Wiz"Check, build, and execute it:
wiz checkwiz c buildbash dist/main.shThe output is Hello, Wiz!. Use wiz c build --target zsh or
wiz c build --target sh to select another supported backend.
Add editor support
Section titled “Add editor support”Install the VS Code package built from apps/vscode, open the project folder,
and open src/main.wiz. The extension launches wiz c lsp --stdio; set
wiz.server.path when the editor process cannot find wiz on PATH.
Formatting is enabled on save. Hover greet, invoke completion at a command
position, or add source "./helpers.wiz" to navigate and complete symbols from
another file without opening it first.
Continue with Wiz syntax, package-manager commands, or the runnable examples.