Workflows

Workflow A: Deploy Existing Code

You already have a project. You want to put it on the grid.

Step 1: Plug it

grid plug

On first run in an unlinked directory, the CLI:

  1. Authenticates you
  2. Creates the entity on the server
  3. Writes .cloudgrid/link.json (gitignored)
  4. Builds and deploys

Output:

my-api is live at https://my-api.your-org.cloudgrid.io

Every subsequent grid plug in the same directory rebuilds and redeploys.

A cloudgrid.yaml file is also created in your project root:

name: my-api
services:
  api:
    type: node
    path: /

Step 2: Verify

grid open

Opens the live URL in your browser. Use --print to print the URL instead.