This document outlines the programmatic interfaces available within ForgeTS.
The primary API is the Command Line Interface.
Creates a new project from a template.
Usage:
forgets new <name> [options]Options:
--template <id>: Specify the template to use (e.g.,react-vite).--skip-install: Do not install dependencies after generation.--dry-run: Preview files to be generated.
Display help information for any command.
Usage:
forgets help [command]Note: This API is currently internal to the monorepo and subject to change.
The core class responsible for scaffolding.
import { CoreGenerator } from '@forge-ts/core';
const generator = new CoreGenerator({
templateDir: './templates/react',
targetDir: './my-app'
});
await generator.run();