create-rwsdk
create-rwsdk is a command line tool for creating new RedwoodSDK projects
npx create-rwsdk my-projectAt Redwood, we try to reduce the magic as much as possible. So, even though we have a command line tool for creating new projects, it’s important to us that we share what’s happening under the hood.
At it’s core, the create-rwsdk command looks at the most recent GitHub release, downloads the attached tar.gz file, and extracts it to the current directory.
Usage
npx create-rwsdk [project-name] [options]Commands
create: Create a new project (default command when no command is specified)list: List and interactively select from available templates
Arguments
[project-name]: Name of the project directory to create (optional, will prompt if not provided)
Options
-f, --force: Force overwrite if directory exists-t, --template <template>: Starter template to use (standard, minimal) [default: “standard”]-h, --help: Display help information-V, --version: Display version number
Examples
Create a new project with the default (standard) template:
npx create-rwsdk my-awesome-appCreate a new project with an interactive prompt for the project name:
npx create-rwsdk# You will be prompted: What is the name of your project?List and interactively select from available templates:
npx create-rwsdk list# You will see a list of templates to choose from and then be prompted for a project nameCreate a project with the minimal template:
npx create-rwsdk my-awesome-app --template minimalForce overwrite an existing directory:
npx create-rwsdk my-awesome-app --forceNext steps after creating a project
cd <project-name>pnpm installpnpm dev