jafa init
Create a new Jafa workspace.
jafa init [target-directory] [-y|--yes] [-n|--name <project-name>] [--common]
target-directory— where to create the workspace. Defaults to the current directory (.).-n, --name— the name of the first project. Without it,initasks.-y, --yes— don't ask anything: use the default first project name (project-name) and rungit init,rokit install, andwally install.--common— also create a sharedcommonproject.--yesdoesn't turn this on, since it's optional extra structure.
Fails if the target is already a Jafa workspace.
What it does
- Asks what the first project should be called (skipped with
--nameor--yes). - Asks whether to run
git init(only when there isn't a git repository already),rokit install, andwally install, and whether to create acommonproject. All of these default to yes exceptcommon. - Copies the workspace scaffolding (
rokit.toml,wally/wally.toml,jafa.code-workspace,.gitignore,.vscode/,README.md,asset-updater.luau) into the target directory.asset-updater.luauis the Lune scriptjafa pullruns to pull published Roblox assets into a project. - Runs the tools you agreed to:
git init,rokit install(installs Rojo, Wally, StyLua, Lune, Mantle, Selene, wally-package-types, and darklua — the last one powersjafa obscure), andwally install --project-path ./wally. If one fails,initwarns and carries on, so you can run it yourself later. - Creates
commonfirst if you asked for it, then your first project insideprojects/— this is wheredefault.project.json,selene.toml, andstylua.tomlcome from; seejafa new. The project is also added tojafa.code-workspace.
See Workspaces for details on what gets created.
When the command isn't run in a terminal (for example in CI), it uses the default answers instead of asking.
Examples
jafa init
jafa init my-game
jafa init my-game --name lobby --common
jafa init my-game --yes --name lobby