Skip to content

Wiring and bindings

Bind things together.

Terminal window
grid wire <subcommand>
Subcommand Usage Description
folder grid wire folder [entity] Bind the current folder to an existing entity (same as grid link).
repo grid wire repo [github-url] Bind a GitHub repo for auto-deploy on push.
hook grid wire hook [url] Subscribe a webhook URL to entity events.
inspire (not yet supported) Bind an inspiration source to a runtime.
agent-reads (not yet supported) Bind agent read sources.
Terminal window
grid wire repo https://github.com/org/repo
grid wire hook https://hooks.slack.com/...

After wiring a repo, every push to the bound branch triggers a build and deploy on the server automatically — you do not need to run grid plug yourself. Install the CloudGrid GitHub App on the repository first, then:

Terminal window
grid wire repo https://github.com/your-org/your-repo

You can also declare connectors, hooks, and triggers directly in cloudgrid.yaml — see the yaml reference.