Prerequisites
- macOS or Linux with Git installed.
- Node.js 22.12+ and pnpm (the
major appcommands enforce these versions automatically).
Step 1 — Install the CLI
major --version.
Step 2 — Authenticate and set your org
major user whoami verifies your session and shows the org that scoped env variables and deployments will use.Step 3 — Create or clone an application
Pick whichever best matches your workflow:Create from a template
Create from a template
- Choose a template (Vite is the default).
- Major provisions a GitHub repo, wires up the template, and invites you as a collaborator.
- Select the resources (databases, APIs) the app should reach. We store the mapping for deployments and local dev.
Clone an existing app
Clone an existing app
- Choose from your organization’s applications.
- We clone (or pull) the repo, invite you if needed, and regenerate
.env+ your resource clients so that you’re ready to run.
Step 4 — Run locally
- Calls the Major API to mint a new JWT and writes every required variable into
.env. - Runs
pnpm installto keep dependencies in sync with the template baseline. - Starts
pnpm devso your local server proxies requests through the Major control plane.
Step 5 — Configure Resources
Configure the resources you want your app to interact with.Step 6 — Deploy
- Prompt for a commit message if it sees unstaged work, then stage/commit/push for you.
- Create a new version through the API and stream deployment status (bundling → building → deploying).
- Print the production URL when the status flips to
DEPLOYED.