webiny-local-development

Deploys, watches, and debugs Webiny serverless projects across AWS environments.

8.0k|673|Updated Jan 9, 2018
One-click install
npx skills add https://github.com/webiny/webiny-js --skill webiny-local-development
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: webiny-local-development
Source: https://github.com/webiny/webiny-js/tree/main/skills/user-skills/local-development
Command: npx skills add https://github.com/webiny/webiny-js --skill webiny-local-development

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Developers working with Webiny need to understand how to deploy serverless applications to AWS, run local development against cloud infrastructure, manage multiple environments, and debug API, Admin, and infrastructure errors without guessing at CLI commands or workflows.

Core Features & Use Cases

  • Deployment Management: Deploy all applications (Core, API, Admin) or individual ones with yarn webiny deploy, target specific environments with --env, and inspect URLs with yarn webiny info.
  • Local Development: Run yarn webiny watch admin for a hot-reloading React dev server, or yarn webiny watch api for Local Lambda Development that forwards AWS events to your local machine for instant backend iteration.
  • Environment & Debugging Workflows: Manage long-lived and short-lived environments, understand dev vs prod deployment modes, and debug API logs, Admin GraphQL requests, and Pulumi infrastructure errors.
  • Use Case: A developer creates a feature branch, deploys a short-lived environment with yarn webiny deploy --env feature-123, watches the API locally to debug a GraphQL resolver, then redeploys the API after stopping watch mode.

Quick Start

Ask the assistant to walk you through deploying your Webiny project and starting local API development with watch mode.

Frequently Asked Questions about webiny-local-development

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy a Webiny project to AWS?

Run yarn webiny deploy to deploy all three applications (Core, API, Admin) to the dev environment by default. Use yarn webiny deploy api to deploy a single app, or add --env prod to target a specific environment.

How do I develop a Webiny API locally without redeploying?

Run yarn webiny watch api to start Local Lambda Development. Lambda stubs forward AWS events to your local machine, so code changes apply instantly and console logs appear in your terminal.

Why must I redeploy the API after stopping webiny watch?

Watch mode replaces real Lambda functions with stubs that forward events locally. After stopping watch, those stubs remain deployed, so you must run yarn webiny deploy api to restore the real function code.

How do I create a temporary environment for a feature branch in Webiny?

Deploy with yarn webiny deploy --env feature-123 to create a short-lived environment for testing or PR previews. When finished, remove it with yarn webiny destroy --env feature-123.

How do I debug Webiny Admin and GraphQL errors?

Use browser DevTools: the Console for logs, the Network tab to inspect GraphQL requests and responses, and React Developer Tools for component state. For API errors during watch mode, check terminal console logs or use the injected Logger for CloudWatch.