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.
npx create-rwsdk [project-name] [options]Arguments
Section titled “Arguments”- [project-name]: Name of the project directory to create (optional, will prompt if not provided)
Options
Section titled “Options”- -f, --force: Force overwrite if directory exists
- --release <version>: Use a specific release version (e.g.,- v1.0.0-alpha.1)
- --pre: Use the latest pre-release (e.g., alpha, beta, rc)
- -h, --help: Display help information
- -V, --version: Display version number
Examples
Section titled “Examples”Create a new project:
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?Force overwrite an existing directory:
npx create-rwsdk my-awesome-app --forceCreate a project from the latest pre-release:
npx create-rwsdk my-awesome-app --preCreate a project from a specific release version:
npx create-rwsdk my-awesome-app --release v1.0.0-alpha.10Next steps after creating a project
Section titled “Next steps after creating a project”cd <project-name>pnpm installpnpm dev