Set up your environment, run a Glue locally, debug fast, deploy, monitor, and share.
Glue is designed to feel like normal TypeScript development: you edit code locally, your Glue hot reloads, you trigger real events, and you debug with your editor (or console.log) like any other program.
Your environment
The Glue CLI
The glue command powers local development (glue dev), deployment (glue deploy), and monitoring (glue logs, glue describe).Follow the install steps in the Quickstart:
The beauty of Glue is that you bring your own editor. All the tooling you’re normally used to just works. For best results, make sure to use an editor that supports TypeScript and Deno so that you get autocomplete, formatting, linting, etc.Here are instructions for setting up your editor for Glue:
LLM’s can write Glue code really well. The Glue runtime is fully documented with TSDoc and this documentation site has a LLM friendly single markdown file for the entire site.
Running your Glue locally
You can run a Glue locally so that you can have a fast iteration loop. When running Glues locally, you receive real events from the triggers you’ve registered. Our Glue servers register and listen for these events and will tunnel them to your local machine when you are running your Glue locally using glue dev.
glue dev path/to/your-glue.ts
For example, if you’ve registered a trigger that listens for new emails in your Gmail inbox, when an actual email hits your inbox, we’ll tunnel that real event to your locally running Glue so you can test with real data.What glue dev actually does:
Runs your Glue locally in a watched process so that code changes are hot reloaded.
Registers your Glue + triggers with Glue’s backend so trigger events can be routed to you.
Streams trigger events to your local machine.
Opens a debugger port by default so you can attach a debugger.
Sample Events
The best “sample event” is a real event.If you’ve registered a webhook trigger, simply visit or cURL the URL that glue dev prints out so that you can see the real event data. If you’ve registered a trigger to listen for new emails in your Gmail inbox, simply send an email to that address. The only exception is for CRON triggers which you can trigger manually in the CLI when using glue dev.There is no support for generating fake data, we think that is an anti-pattern. However, we do provide helpers to let you replay real events to make iterating and testing fast.
Replay the last event (fast loop)
While glue dev is running, you can iterate extremely quickly:
Write your Glue code
Run glue dev
Trigger the event manually in whatever service you registered a trigger for
Edit your code (it’ll hot reload on save)
Return to the glue dev terminal
Press r to replay the last trigger event you received
Repeat
This makes it easy to run the same event through your updated code without re-triggering the external system.
Replay a production event
If you’ve deployed your Glue to production, you can replay a specific event by ID. This is useful for debugging production issues or for testing your Glue against real data.
glue dev --replay <executionId> path/to/your-glue.ts
This will start your Glue locally and immediately replay the event you specified. This lets you test or debug a production issue locally. Even better, once you find the issue, you can modify your code, hot reload it, then press r to replay the event again and test your fix.
Debugging
Glue doesn’t require special debugging tooling, you can:
Use console.log like you would in any TypeScript program.
attach a Chrome DevTools debugger to your local Glue process
attach your editor debugger (if supported)
By default, glue dev runs your Glue with the debugger enabled. It prints out the debugger URL to connect to:
glue dev path/to/your-glue.ts
Output:
EXAMPLE HERE
You can disable the debugger with --no-debug. If you want your Glue to wait until your debugger is attached, start dev with:
glue dev --inspect-wait path/to/your-glue.ts
Deploying and monitoring
Deployment is a single command that takes your locally running Glue, bundles it, uploads it, sets up the same triggers (including webhooks) and hosts your Glue in the cloud:
glue deploy path/to/your-glue.ts
To deploy an update, simply run glue deploy again. Glues with the same name are treated as an update.
Monitoring Glues
Glue creates a new execution every time your Glue runs. Each execution has a unique ID and its own log lines (including your console.logs). A failure is simply an execution where your Glue throws an exception. You can monitor these executions in several ways:
Aggregate stats about all Glues
glue describe <glue-name-or-id>
This tells you how many times your Glue has run, how many times it has failed, when it was last run and more info about its history. You’ll also get a daily email summary for all your Glues with these same statistics.You may also want to watch events as they happen and see their output:
glue logs --tail <glue-name-or-id>
You can run this command without the --tail flag to see historic executions. By default, this will only show the first few lines of output for each execution. You can control this and other options, see the glue logs reference for more details.
Viewing specific executions
glue describe <execution-id>
This will show you the input data that triggered the event, the timestamp, the run time, the status and any console logs outputted by your Glue.
Versioning and sharing your Glues
Every deploy creates a new immutable deployment. Subsequent deployments override the previous deployment and you can see a history of all your deployments with glue describe.Since a Glue is just a single TypeScript file, you can version and share it like any other file:
Put it in a Git repo
Share it as a Gist (try glue share path/to/your-glue.ts)
Send it over Drive, email, etc.
It’s important you do not hardcode account credentials in the Glue itself (or in an .env file). Use the runtime provided triggers and account fetchers instead. Doing so will let others run your Glue, and Glue will ask them to authenticate with their credentials.
Was this page helpful?
⌘I
{"docsConfig":{"theme":"linden","$schema":"https://mintlify.com/docs.json","name":"Glue","colors":{"primary":"#16A34A","light":"#07C983","dark":"#15803D"},"logo":{"light":"https://mintcdn.com/glue/UUBR8k7kyyyUP0z6/logo/light.svg?fit=max\u0026auto=format\u0026n=UUBR8k7kyyyUP0z6\u0026q=85\u0026s=cb2dd4abbf547c1bc2dc2a2fd2516b94","dark":"https://mintcdn.com/glue/UUBR8k7kyyyUP0z6/logo/dark.svg?fit=max\u0026auto=format\u0026n=UUBR8k7kyyyUP0z6\u0026q=85\u0026s=60d2d8a757dbe2b27283e3c33b59c511"},"favicon":{"light":"https://glue.wtf/favicon-light.svg","dark":"https://glue.wtf/favicon-dark.svg"},"navbar":{"links":[{"href":"mailto:support@glue.wtf","label":"Support"}],"primary":{"type":"button","label":"Install Glue CLI","href":"https://docs.glue.wtf/getting-started/quickstart"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"background":{"color":{"light":"#f8fcfa","dark":"#090f0f"}},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"glue","hasAudioNarration":false,"actualSubdomain":"glue","customDomains":["docs.glue.wtf"],"gitSource":{"type":"github","owner":"streakyc","repo":"glue-docs","deployBranch":"master","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6aa02bfd48020d1f74845af6","clientVersion":"0.0.4344","searchFilterCounts":[{"language":"default","tag":"Docs","count":18},{"language":"default","tag":"Examples","count":7},{"language":"default","tag":"Get started","count":4},{"language":"default","tag":"Reference","count":4},{"language":"default","tag":"Advanced","count":3}]},"assistantConfig":{"enableAskAiButton":true,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"getting-started/development-workflow","slug":"/getting-started/development-workflow","pageMetadata":{"title":"Development workflow","description":"Set up your environment, run a Glue locally, debug fast, deploy, monitor, and share.","href":"/getting-started/development-workflow"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Set up your environment, run a Glue locally, debug fast, deploy, monitor, and share.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Glue is designed to feel like normal TypeScript development: you edit code locally, your Glue hot reloads, you trigger real events, and you debug with your editor (or `,_jsx(_components.code,{children:`console.log`}),`) like any other program.`]}),`\n`,_jsx(Heading,{level:`2`,id:`your-environment`,children:`Your environment`}),`\n`,_jsx(Heading,{level:`3`,id:`the-glue-cli`,children:`The Glue CLI`}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`glue`}),` command powers local development (`,_jsx(_components.code,{children:`glue dev`}),`), deployment (`,_jsx(_components.code,{children:`glue deploy`}),`), and monitoring (`,_jsx(_components.code,{children:`glue logs`}),`, `,_jsx(_components.code,{children:`glue describe`}),`).`]}),`\n`,_jsx(_components.p,{children:`Follow the install steps in the Quickstart:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/getting-started/quickstart`,children:`Quickstart: Install the CLI`})}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`editor`,children:`Editor`}),`\n`,_jsx(_components.p,{children:`The beauty of Glue is that you bring your own editor. All the tooling you’re normally used to just works. For best results, make sure to use an editor that supports TypeScript and Deno so that you get autocomplete, formatting, linting, etc.`}),`\n`,_jsx(_components.p,{children:`Here are instructions for setting up your editor for Glue:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/getting-started/editor-setup/cursor`,children:`Cursor`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/getting-started/editor-setup/vscode`,children:`VS Code`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/getting-started/editor-setup/zed`,children:`Zed`})}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`use-your-favorite-llm`,children:`Use your favorite LLM`}),`\n`,_jsxs(_components.p,{children:[`LLM’s can write Glue code really well. The Glue runtime is fully documented with TSDoc and this documentation site has a `,_jsx(_components.a,{href:`/llms.txt`,children:`LLM friendly single markdown file`}),` for the entire site.`]}),`\n`,_jsx(Heading,{level:`2`,id:`running-your-glue-locally`,children:`Running your Glue locally`}),`\n`,_jsxs(_components.p,{children:[`You can run a Glue locally so that you can have a fast iteration loop. When running Glues locally, you receive real events from the triggers you’ve registered. Our Glue servers register and listen for these events and will tunnel them to your local machine when you are running your Glue locally using `,_jsx(_components.code,{children:`glue dev`}),`.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`glue`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` dev`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` path/to/your-glue.ts`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`For example, if you’ve registered a trigger that listens for new emails in your Gmail inbox, when an actual email hits your inbox, we’ll tunnel that real event to your locally running Glue so you can test with real data.`}),`\n`,_jsxs(_components.p,{children:[`What `,_jsx(_components.code,{children:`glue dev`}),` actually does:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Runs your Glue locally in a watched process so that code changes are hot reloaded.`}),`\n`,_jsx(_components.li,{children:`Registers your Glue + triggers with Glue’s backend so trigger events can be routed to you.`}),`\n`,_jsx(_components.li,{children:`Streams trigger events to your local machine.`}),`\n`,_jsx(_components.li,{children:`Opens a debugger port by default so you can attach a debugger.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`sample-events`,children:`Sample Events`}),`\n`,_jsx(_components.p,{children:`The best “sample event” is a real event.`}),`\n`,_jsxs(_components.p,{children:[`If you’ve registered a webhook trigger, simply visit or `,_jsx(_components.code,{children:`cURL`}),` the URL that `,_jsx(_components.code,{children:`glue dev`}),` prints out so that you can see the real event data. If you’ve registered a trigger to listen for new emails in your Gmail inbox, simply send an email to that address. The only exception is for CRON triggers which you can trigger manually in the CLI when using `,_jsx(_components.code,{children:`glue dev`}),`.`]}),`\n`,_jsx(_components.p,{children:`There is no support for generating fake data, we think that is an anti-pattern. However, we do provide helpers to let you replay real events to make iterating and testing fast.`}),`\n`,_jsx(Heading,{level:`3`,id:`replay-the-last-event-fast-loop`,children:`Replay the last event (fast loop)`}),`\n`,_jsxs(_components.p,{children:[`While `,_jsx(_components.code,{children:`glue dev`}),` is running, you can iterate extremely quickly:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Write your Glue code`}),`\n`,_jsxs(_components.li,{children:[`Run `,_jsx(_components.code,{children:`glue dev`})]}),`\n`,_jsx(_components.li,{children:`Trigger the event manually in whatever service you registered a trigger for`}),`\n`,_jsx(_components.li,{children:`Edit your code (it’ll hot reload on save)`}),`\n`,_jsxs(_components.li,{children:[`Return to the `,_jsx(_components.code,{children:`glue dev`}),` terminal`]}),`\n`,_jsxs(_components.li,{children:[`Press `,_jsx(_components.strong,{children:_jsx(_components.code,{children:`r`})}),` to replay the `,_jsx(_components.strong,{children:`last`}),` trigger event you received`]}),`\n`,_jsx(_components.li,{children:`Repeat`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`This makes it easy to run the `,_jsx(_components.em,{children:`same`}),` event through your updated code without re-triggering the external system.`]}),`\n`,_jsx(Heading,{level:`3`,id:`replay-a-production-event`,children:`Replay a production event`}),`\n`,_jsx(_components.p,{children:`If you’ve deployed your Glue to production, you can replay a specific event by ID. This is useful for debugging production issues or for testing your Glue against real data.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`glue`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` dev`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --replay`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`executionI`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`d`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` path/to/your-glue.ts`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`This will start your Glue locally and immediately replay the event you specified. This lets you test or debug a production issue locally. Even better, once you find the issue, you can modify your code, hot reload it, then press `,_jsx(_components.strong,{children:_jsx(_components.code,{children:`r`})}),` to replay the event again and test your fix.`]}),`\n`,_jsx(Heading,{level:`2`,id:`debugging`,children:`Debugging`}),`\n`,_jsx(_components.p,{children:`Glue doesn’t require special debugging tooling, you can:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Use `,_jsx(_components.code,{children:`console.log`}),` like you would in any TypeScript program.`]}),`\n`,_jsx(_components.li,{children:`attach a Chrome DevTools debugger to your local Glue process`}),`\n`,_jsx(_components.li,{children:`attach your editor debugger (if supported)`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`By default, `,_jsx(_components.code,{children:`glue dev`}),` runs your Glue with the debugger enabled. It prints out the debugger URL to connect to:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`glue`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` dev`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` path/to/your-glue.ts`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Output:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`EXAMPLE`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` HERE`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`You can disable the debugger with `,_jsx(_components.code,{children:`--no-debug`}),`. If you want your Glue to `,_jsx(_components.em,{children:`wait`}),` until your debugger is attached, start dev with:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`glue`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` dev`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --inspect-wait`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` path/to/your-glue.ts`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`deploying-and-monitoring`,children:`Deploying and monitoring`}),`\n`,_jsx(_components.p,{children:`Deployment is a single command that takes your locally running Glue, bundles it, uploads it, sets up the same triggers (including webhooks) and hosts your Glue in the cloud:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`glue`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` deploy`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` path/to/your-glue.ts`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`To deploy an update, simply run `,_jsx(_components.code,{children:`glue deploy`}),` again. Glues with the same name are treated as an update.`]}),`\n`,_jsx(Heading,{level:`3`,id:`monitoring-glues`,children:`Monitoring Glues`}),`\n`,_jsxs(_components.p,{children:[`Glue creates a new `,_jsx(_components.strong,{children:`execution`}),` every time your Glue runs. Each execution has a unique ID and its own log lines (including your `,_jsx(_components.code,{children:`console.log`}),`s). A failure is simply an execution where your Glue throws an exception. You can monitor these executions in several ways:`]}),`\n`,_jsx(Heading,{level:`4`,id:`aggregate-stats-about-all-glues`,children:`Aggregate stats about all Glues`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`glue`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` describe`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`glue-name-or-i`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`d`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`This tells you how many times your Glue has run, how many times it has failed, when it was last run and more info about its history. You’ll also get a daily email summary for all your Glues with these same statistics.`}),`\n`,_jsx(_components.p,{children:`You may also want to watch events as they happen and see their output:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`glue`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` logs`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --tail`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`glue-name-or-i`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`d`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`You can run this command without the `,_jsx(_components.code,{children:`--tail`}),` flag to see historic executions. By default, this will only show the first few lines of output for each execution. You can control this and other options, see the `,_jsxs(_components.a,{href:`/cli/logs`,children:[_jsx(_components.code,{children:`glue logs`}),` reference`]}),` for more details.`]}),`\n`,_jsx(Heading,{level:`4`,id:`viewing-specific-executions`,children:`Viewing specific executions`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`glue`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` describe`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`execution-i`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`d`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`This will show you the input data that triggered the event, the timestamp, the run time, the status and any console logs outputted by your Glue.`}),`\n`,_jsx(Heading,{level:`2`,id:`versioning-and-sharing-your-glues`,children:`Versioning and sharing your Glues`}),`\n`,_jsxs(_components.p,{children:[`Every deploy creates a new `,_jsx(_components.strong,{children:`immutable deployment`}),`. Subsequent deployments override the previous deployment and you can see a history of all your deployments with `,_jsx(_components.code,{children:`glue describe`}),`.`]}),`\n`,_jsx(_components.p,{children:`Since a Glue is just a single TypeScript file, you can version and share it like any other file:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Put it in a Git repo`}),`\n`,_jsxs(_components.li,{children:[`Share it as a Gist (try `,_jsx(_components.code,{children:`glue share path/to/your-glue.ts`}),`)`]}),`\n`,_jsx(_components.li,{children:`Send it over Drive, email, etc.`}),`\n`]}),`\n`,_jsxs(Warning,{children:[`It’s important you `,_jsx(_components.strong,{children:`do not`}),` hardcode account credentials in the Glue itself (or in an `,_jsx(_components.code,{children:`.env`}),` file). Use the runtime provided triggers and account fetchers instead. Doing so will let others run your Glue, and Glue will ask `,_jsx(_components.em,{children:`them`}),` to authenticate with `,_jsx(_components.em,{children:`their`}),` credentials.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Development workflow","description":"Set up your environment, run a Glue locally, debug fast, deploy, monitor, and share.","href":"/getting-started/development-workflow"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Your environment","slug":"your-environment","depth":2,"children":[{"title":"The Glue CLI","slug":"the-glue-cli","depth":3,"children":[]},{"title":"Editor","slug":"editor","depth":3,"children":[]},{"title":"Use your favorite LLM","slug":"use-your-favorite-llm","depth":3,"children":[]}]},{"title":"Running your Glue locally","slug":"running-your-glue-locally","depth":2,"children":[]},{"title":"Sample Events","slug":"sample-events","depth":2,"children":[{"title":"Replay the last event (fast loop)","slug":"replay-the-last-event-fast-loop","depth":3,"children":[]},{"title":"Replay a production event","slug":"replay-a-production-event","depth":3,"children":[]}]},{"title":"Debugging","slug":"debugging","depth":2,"children":[]},{"title":"Deploying and monitoring","slug":"deploying-and-monitoring","depth":2,"children":[{"title":"Monitoring Glues","slug":"monitoring-glues","depth":3,"children":[]},{"title":"Aggregate stats about all Glues","slug":"aggregate-stats-about-all-glues","depth":4,"children":[]},{"title":"Viewing specific executions","slug":"viewing-specific-executions","depth":4,"children":[]}]},{"title":"Versioning and sharing your Glues","slug":"versioning-and-sharing-your-glues","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"glue","siteName":"Glue","title":"Development workflow - Glue","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-08T15:39:40.047Z","originalFileLocation":"getting-started/development-workflow.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Set up your environment, run a Glue locally, debug fast, deploy, monitor, and share.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Glue\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/svg+xml\" sizes=\"180x180\" href=\"https://glue.wtf/favicon-light.svg\">\u003clink data-mint-head rel=\"icon\" type=\"image/svg+xml\" sizes=\"32x32\" href=\"https://glue.wtf/favicon-light.svg\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/svg+xml\" sizes=\"16x16\" href=\"https://glue.wtf/favicon-light.svg\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/svg+xml\" href=\"https://glue.wtf/favicon-light.svg\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/svg+xml\" sizes=\"32x32\" href=\"https://glue.wtf/favicon-dark.svg\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/svg+xml\" sizes=\"16x16\" href=\"https://glue.wtf/favicon-dark.svg\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/svg+xml\" href=\"https://glue.wtf/favicon-dark.svg\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Development workflow - Glue\">\u003cmeta data-mint-head property=\"og:description\" content=\"Set up your environment, run a Glue locally, debug fast, deploy, monitor, and share.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Glue\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.glue.wtf/getting-started/development-workflow\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://glue.mintlify.site/_mintlify/api/og/v2?division=Get+started\u0026amp;title=Development+workflow\u0026amp;description=Set+up+your+environment%2C+run+a+Glue+locally%2C+debug+fast%2C+deploy%2C+monitor%2C+and+share.\u0026amp;theme=12ae89e86084bac0c1c93e14\u0026amp;signature=848679053c7a69785ca2d7944b74eb08547876c8fc0a1092686301589346d822\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Development workflow - Glue\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Set up your environment, run a Glue locally, debug fast, deploy, monitor, and share.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://glue.mintlify.site/_mintlify/api/og/v2?division=Get+started\u0026amp;title=Development+workflow\u0026amp;description=Set+up+your+environment%2C+run+a+Glue+locally%2C+debug+fast%2C+deploy%2C+monitor%2C+and+share.\u0026amp;theme=12ae89e86084bac0c1c93e14\u0026amp;signature=848679053c7a69785ca2d7944b74eb08547876c8fc0a1092686301589346d822\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/glue/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Glue\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.glue.wtf/getting-started/development-workflow\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/getting-started/development-workflow.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.glue.wtf/#organization\",\"name\":\"Glue\",\"url\":\"https://docs.glue.wtf\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/glue/UUBR8k7kyyyUP0z6/logo/light.svg?fit=max\u0026auto=format\u0026n=UUBR8k7kyyyUP0z6\u0026q=85\u0026s=cb2dd4abbf547c1bc2dc2a2fd2516b94\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.glue.wtf#website\",\"name\":\"Glue\",\"url\":\"https://docs.glue.wtf\",\"publisher\":{\"@id\":\"https://docs.glue.wtf/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.glue.wtf/getting-started/development-workflow#webpage\",\"url\":\"https://docs.glue.wtf/getting-started/development-workflow\",\"name\":\"Development workflow\",\"description\":\"Set up your environment, run a Glue locally, debug fast, deploy, monitor, and share.\",\"dateModified\":\"2026-09-08T15:39:40.047Z\",\"isPartOf\":{\"@id\":\"https://docs.glue.wtf#website\"},\"breadcrumb\":{\"@id\":\"https://docs.glue.wtf/getting-started/development-workflow#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.glue.wtf/getting-started/development-workflow#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Get started\",\"item\":\"https://docs.glue.wtf/getting-started/quickstart\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Development workflow\",\"item\":\"https://docs.glue.wtf/getting-started/development-workflow\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.glue.wtf/getting-started/development-workflow#article\",\"headline\":\"Development workflow\",\"name\":\"Development workflow\",\"description\":\"Set up your environment, run a Glue locally, debug fast, deploy, monitor, and share.\",\"url\":\"https://docs.glue.wtf/getting-started/development-workflow\",\"mainEntityOfPage\":{\"@id\":\"https://docs.glue.wtf/getting-started/development-workflow#webpage\"},\"dateModified\":\"2026-09-08T15:39:40.047Z\",\"publisher\":{\"@id\":\"https://docs.glue.wtf/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.glue.wtf#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Glue\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Glue\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/getting-started/development-workflow.md","siteName":"Glue","nav":{"global":null,"tabs":[{"tab":"Docs","groups":[{"group":"Get started","pages":[{"title":"Quickstart","href":"/getting-started/quickstart"},{"title":"Write your first Glue","description":"Build a tiny Glue that listens for an event and takes an action.","href":"/getting-started/write-your-first-glue"},{"title":"Development workflow","href":"/getting-started/development-workflow"},{"title":"Architecture","description":"Learn the basic nouns of Glue and how things fit together.","mode":"wide","href":"/getting-started/architecture"}]},{"group":"Advanced","pages":[{"title":"Managing Glues","href":"/advanced/managing-glues"},{"title":"Authentication","href":"/advanced/authentication"},{"title":"Billing","href":"/advanced/billing"}]},{"group":"Examples","pages":[{"title":"Using Examples","href":"/examples/using-examples"},{"title":"Slack Example Glue","sidebarTitle":"Slack","href":"/examples/slack"},{"title":"QuickBooks Online Example Glues","sidebarTitle":"QuickBooks Online","href":"/examples/quickbooks"},{"title":"Streak Example Glue","sidebarTitle":"Streak","href":"/examples/streak"},{"title":"Cron Example Glue","sidebarTitle":"Cron","href":"/examples/cron"},{"title":"Github Example Glue","sidebarTitle":"GitHub","href":"/examples/github"},{"title":"OpenAI Example Glue","sidebarTitle":"OpenAI","href":"/examples/openai"}]},{"group":"Reference","pages":[{"title":"Runtime API","href":"/reference/runtime-api"},{"title":"CLI Reference","sidebarTitle":"CLI","href":"/reference/cli"},{"title":"Client Libraries","href":"/reference/client-libraries"},{"title":"OpenAPI Spec","href":"/reference/openapi-spec"}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/updates"}]}]},"basePath":"","title":"Development workflow - Glue","deploymentId":"dpl_EwfxjeKENdVkfzdag8rM6mKzcTUJ","buildId":"dpl_EwfxjeKENdVkfzdag8rM6mKzcTUJ","dynamics":[],"chunks":[]}