Creating a New Project
Learn how to quickly create a new Argon project!
Project Initialization
To create a new Argon project, you can use either the Visual Studio Code extension or the CLI.
- VS Code
- CLI
- Open new folder in Visual Studio Code
- Open the command palette by pressing Ctrl/⌘ + Shift + P and run
Argon: Open Menu
>Init
- Choose the name of the project file or leave it
default
(recommended) - Select the Template you want to use
- Select all Additional Options you want to use
- Review the Project File (
*.project.json
) and Start using Argon!
- Open your terminal
- Type the following command to initialize a new project:
argon init <project-name>
- Add desired Additional Options and run the command
- Review the Project File (
*.project.json
) and Start using Argon!
Project Templates
Argon provides a few templates to help you get started with your project. Here are the available templates:
- Place - For creating Roblox games
- Plugin - For writing Roblox Studio plugins
- Package - For writing Wally packages and Roblox libraries
- Model - For creating Roblox models and assets
- Empty - Describes empty
DataModel
and contains only necessary files to get started - Quick - Just like the Place but with most services already included in the Project File, recommended for beginners
You can create your own template by creating a folder with the desired name and contents in this directory:
- Windows:
%USERPROFILE%\.argon\templates
- macOS & Linux:
~/.argon/templates
Additional Options
When initializing a new project, you can choose to include optional files and use other tools. Here are the available options:
- VS Code
- CLI
Option | Description |
---|---|
Include docs | Include documentation files: README, LICENSE and CHANGELOG (if present in the template) |
Configure Git | Initialize a new Git repository in the project folder |
Setup Wally | Add Wally manifest to use various packages in the project (if present in the template) |
Use roblox-ts | Initialize roblox-ts project to use TypeScript language |
info
Argon will remember your last selected options and use them as default for the next project.
Short | Long | Description |
---|---|---|
-T | --template | Choose the template to use for the project (default: place ) |
-l | --license | License to include in the project, set using SPDX identifier (requires --docs ) |
-g | --git | Initialize a new Git repository in the project folder |
-w | --wally | Add Wally manifest to use various packages in the project (if present in the template) |
-d | --docs | Include documentation files: README, LICENSE and CHANGELOG (if present in the template) |
-t | --ts | Initialize roblox-ts project to use TypeScript language |
tip
All of this settings can be saved in the Global Configuration file to use them as default for the next project.