/webda:webda-deployfrom webda
Deploys Webda apps: manages deployment environments, builds OCI images, packages for AWS Lambda, and deploys via CloudFormation.
Ships in webda. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Adding an environment (deployments/<name>.json), building and pushing an OCI image, packaging the app for AWS Lambda or deploying it with CloudFormation.
Install the deployer package, then build: a generated app does not depend on any deployer, and the deployer types and commands are only discovered from the installed packages.
npm install @webda/oci # Webda/ContainerDeployer
npm install @webda/aws # Webda/LambdaPackager, Webda/CloudFormationDeployer
npm run build # also before every deployer command: lib/ and webda.module.json get packaged
A deployment is a file deployments/<name>.json (.jsonc, .yaml and .yml work too). It has four sections:
parameters and services override webda.config.json (objects deep merged, arrays replaced; see webda-configuration).units lists the deployers: each unit has a name, a type and the deployer parameters.resources holds parameters shared by every unit; a unit overrides them.{
"$schema": "../.webda/deployment.schema.json",
"parameters": {
"supportEmail": "[email protected]"
},
"services": {
"ReminderService": { "delayHours": 48 }
},
"units": [
{
"name": "image",
"type": "Webda/ContainerDeployer",
"image": "ghcr.io/my-org/my-app",
"tags": ["${package.version}", "latest"],
"credentials": {
"ghcr.io": { "username": "${env.GHCR_USER}", "password": "${env.GHCR_TOKEN}" }
}
}
]
}
Select the deployment with -d <name> placed before the command name (after it, -d is silently ignored), --deployment <name> anywhere, or the WEBDA_DEPLOYMENT environment variable. webda is not on the PATH of a generated app: use npx webda (or npm exec -- webda). The same selection applies to serve and debug: they run the app with the overrides of that deployment.
npx webda -d production container build # OCI layout in .webda/oci/<unit>, base layers included
npx webda -d production container push # build and push every tag of the unit
npx webda -d production aws package # Lambda zip (LambdaPackager unit), dist/lambda-<version>.zip by default
npx webda -d production deploy # run `deploy` of every unit that has it (ContainerDeployer, CloudFormationDeployer)
npx webda -d production --service image container push # only the unit named image
WEBDA_DEPLOYMENT=production npm run serve # npm scripts: environment variable
npm run serve -- --deployment production # or --deployment, never -d after the command
Units of other types in the same deployment:
{
"units": [
{ "name": "package", "type": "Webda/LambdaPackager", "zipPath": "dist/app.zip" },
{
"name": "stack",
"type": "Webda/CloudFormationDeployer",
"AssetsBucket": "my-artifacts",
"Lambda": {},
"APIGateway": {}
}
]
}
Webda/LambdaPackager is independent from Webda/CloudFormationDeployer: the latter packages its own Lambda from its LambdaPackager parameter.
Units are not services of the app: a unit is only instantiated by a command its type provides, serve and debug never create it. ${...} templates in unit parameters (${package.version}, ${git.commit}, ${deployment}, ${env.NAME}) are replaced when the command runs.
Deployer config in "services" → it goes in "units"; "services" only overrides app services
A unit named like an app service → DEPLOYMENT_UNIT_CONFLICT, rename the unit
Running a deployer command without -d → DEPLOYMENT_REQUIRED: select the deployment
-d after the command name → ignored silently; put it before, or use --deployment
Deployer package not installed → unit of an unknown type is skipped silently, no command: npm install @webda/oci or @webda/aws, npm run build
Secrets in deployments/*.json → "${env.NAME}" in a unit parameter; parameters/services values are not interpolated, service secrets come from the environment variables the service reads
npx webda -d production container build logs Built sha256:... in <path> (it downloads the base image layers once, so it needs network access). npx webda --help lists the commands of the installed deployers (@webda/oci, @webda/aws).
Written for Webda 4.0.0-beta.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
7 skills in this plugin
/webda-configurationUse when changing webda.config.json, application parameters, the parameters of a service or the per-environment deployments of a Webda app/webda-modelsUse when adding or changing a Webda model, its fields, validation, primary key or relations to other models/webda-operationsUse when exposing behaviour to clients as an operation, or enabling REST, GraphQL, gRPC or MCP in a Webda app/webda-servicesUse when adding or changing a Webda service, its parameters, its lifecycle or when wiring it in webda.config.json/webda-storesUse when reading or writing model data, querying models, or choosing or switching the store (memory, file, MongoDB, PostgreSQL) of a Webda app/webda-testingUse when writing, running or fixing tests of a Webda app, its models, services or operationsnpx claudepluginhub loopingz/webda.io --plugin webdaOther plugins' skills for the same job