Loading...
Last updated on
The gensx new
command creates a new GenSX project with a predefined structure and dependencies.
gensx new <project-directory> [options]
Argument | Description |
---|---|
<project-directory> | Directory to create the project in. If it doesn’t exist, it will be created. |
Option | Description |
---|---|
-t, --template <type> | Template to use. Currently supports ts (TypeScript). |
-f, --force | Overwrite existing files in the target directory. |
--skip-ide-rules | Skip IDE rules selection. |
--ide-rules <rules> | Comma-separated list of IDE rules to install. Options: cline , windsurf , claude , cursor . |
-d, --description <desc> | Optional project description. |
-h, --help | Display help for the command. |
This command scaffolds a new GenSX project with the necessary files and folder structure. It sets up:
package.json
, tsconfig.json
)# Create a basic project
gensx new my-gensx-app
# Create a project with a specific template and description
gensx new my-gensx-app --template ts --description "My AI workflow app"
# Create a project with specific IDE rules
gensx new my-gensx-app --ide-rules cursor,claude
# Force create even if directory has existing files
gensx new my-gensx-app --force
ts
(TypeScript) is used by default.gensx start
.