jafa new
Create a new project inside an existing Jafa workspace.
jafa new <project-name> [target-directory]
project-name— required. Name of the project, and the folder created underprojects/. Use letters, numbers,-and_only.target-directory— workspace root to create the project in. Defaults to the current directory (.).
What it does
Adds projects/<project-name>, scaffolded with the standard
client/server/shared/ui folder structure and a Rojo project tree
wired up to ReplicatedStorage, ServerScriptService, and Workspace. See
Project structure for the full layout.
It also:
- adds the project to
.vscode/.jafa-workspace, and to thefolderslist injafa.code-workspace(next to the other projects) so it appears in VS Code. Comments and formatting in that file are kept. - links the project to the shared
commonproject, if the workspace has one. Creating a project namedcommonsets it up as the shared project instead — see the common project.
Fails if target-directory isn't a Jafa workspace (no projects/ folder), or
if a project with the same name already exists.
Examples
jafa new my-experience
jafa new my-experience ./my-game
jafa new common