Workflows
Workflow B: Start a New Project
You want to start from scratch with scaffolded files.
Step 1: Init
grid init app my-dashboard --type nextjs
This:
- Creates the entity on the server (status:
charged) - Scaffolds starter files in
./my-dashboard/ - Writes
.cloudgrid/link.json
Available types: node, nextjs, python, static.
For an agent:
grid init agent daily-digest --type node
Step 2: Build your app
cd my-dashboard
# Write your code...
Step 3: Run locally
grid dev
Starts the dev server with grid services tunneled to your machine. MongoDB, Redis, and other declared dependencies are available via injected environment variables.
Step 4: Deploy
grid plug
The entity transitions from charged to running.