Skip to main content

jafa init

Create a new Jafa workspace.

jafa init [target-directory]
  • target-directory — where to create the workspace. Defaults to the current directory (.).

What it does

  1. 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.luau is the Lune script jafa pull runs to pull published Roblox assets into a project.
  2. Initializes a git repository, unless one already exists.
  3. Runs rokit install to install Rojo, Wally, StyLua, Lune, Mantle, Selene, and wally-package-types.
  4. Runs wally install --project-path ./wally.
  5. Creates a starter project inside projects/ — this is where default.project.json, selene.toml, and stylua.toml come from; see jafa new.

See Workspaces for details on what gets created.

Examples

jafa init .
jafa init my-game