Create Form-Data projects with a single command.
# npm create
npm create @formdata/project@latest my-project
# or, using npx
npx @formdata/create-project my-project
# or, install globally
npm install -g @formdata/create-project
create-project my-project
- 🚀 Quick Setup: Create a new Form-Data project with a single command
- 🔐 Authentication: Automatic login to Form-Data service
- 🏢 Workspace Selection: Select which workspace to use for your project
- 📁 Project Structure: Creates proper directory structure and configurations
- 📋 Guided Setup: Interactive prompts for project setup
When you run this tool, it will:
- Create a new directory for your project
- If you're already logged in to Form-Data:
- Display a list of workspaces to choose from
- Allow you to log in with a different account
- If you're not logged in, guide you through the login process
- Create the
form-data.config.json
file with the selected workspace - Create the
forms
folder for your form definitions - Install necessary dependencies
- Provide instructions for next steps
The created project will have the following structure:
my-project/
├── package.json
├── form-data.config.json
└── forms/
Once your project is created, you can:
- Create a new form:
fd form create --name my-form --template contact
- Edit the form in
forms/my-form.fd
- Preview your form:
fd preview --name my-form
- Deploy your form:
fd deploy
For more detailed instructions on how to use the cli, check out @formdata/cli package.
- Node.js 14 or higher
- npm 6 or higher
MIT