Step-by-step guide for deploying Webflow Code Components to a workspace. Covers authentication, pre-flight checks, deployment execution, and verification.
npx skills add https://github.com/webflow/webflow-skills --skill webflow-code-component:deploy-guide
Guide users through deploying their code component library to Webflow.
Use when:
Do NOT use when:
Note: The CLI command is webflow library share. This skill uses "deploy" as the user-facing term.
npx webflow library share📦 Deploying Code Components
Step 1: Pre-flight checks
├── webflow.json ✅
├── Dependencies ✅
└── Build test ✅
Step 2: Authentication
├── Checking for existing auth...
└── Found valid token ✅
Step 3: Deploying
├── Bundling components...
├── Uploading to workspace...
└── Processing...
Step 4: Verification
├── Library registered ✅
└── 4 components available ✅
🎉 Deployment Complete!
# Set environment variable
export WEBFLOW_WORKSPACE_API_TOKEN=your-token-here
# Deploy without prompts
npx webflow library share --no-input
User prompt:
Deploy my components to Webflow
Response:
🚀 Deploy Guide: Code Components
Let me guide you through deploying your component library.
---
## Step 1: Pre-Flight Checks
Running validation...
✅ webflow.json configured
✅ Dependencies installed
✅ Build succeeds
✅ Bundle size: 2.3MB (under 50MB limit)
All checks passed! Ready to deploy.
---
## Step 2: Authentication
**Option A: Interactive (Recommended for first time)**
Run the deploy command:
npx webflow library share
This will:
1. Open your browser for Webflow login
2. Ask you to authorize the app
3. Save credentials to .env
**Option B: API Token (For CI/CD or returning users)**
1. Get your Workspace API Token:
- Go to Webflow Dashboard
- Navigate to your Workspace Settings
- Find "Apps & Integrations" → "Manage"
- Under "Workspace API Access", click "Generate API Token"
- Copy the token
2. Run with token:
npx webflow library share --api-token YOUR_TOKEN_HERE
Or set environment variable:
export WEBFLOW_WORKSPACE_API_TOKEN=YOUR_TOKEN_HERE
npx webflow library share
---
## Step 3: Deploy
Ready to deploy? Run:
npx webflow library share
Expected output:
✓ Bundling components...
✓ Authenticating...
✓ Uploading library...
✓ Processing...
Library "My Component Library" successfully shared!
Components:
View in Designer: Open any site in your workspace
---
## Step 4: Verify in Designer
After deployment:
1. **Open Webflow Designer** for any site in your workspace
2. **Open Add Panel** (A key or + button)
3. **Find "Components"** section
4. **Look for your library** under custom components
5. **Drag a component** onto the canvas to test
---
## Step 5: Next Steps
✅ **Your components are live!**
**To update components later:**
npx webflow library share
**Important notes:**
- Updates replace the entire library (no partial updates)
- Existing component instances will update automatically
- Don't rename .webflow.tsx files (breaks instances)
---
💡 **Tips:**
- Add .env to .gitignore to protect your token
- Use `--verbose` flag for debugging issues
- Run `npx webflow library log` to see recent deploy logs
Example: First-Time Setup
🚀 Deploy Guide: First-Time Setup
I see this is your first deployment. Let me walk you through the full setup.
---
## Step 1: Get Workspace API Token
You'll need a Workspace API token to deploy:
1. **Open Webflow Dashboard**
Go to webflow.com and log in
2. **Navigate to Workspace Settings**
Click your workspace name → Settings
3. **Find API Access**
Go to "Apps & Integrations" → "Manage"
4. **Generate Token**
Under "Workspace API Access":
- Click "Generate API Token"
- Copy the token (you won't see it again!)
5. **Save Token**
Add to your .env file:
WEBFLOW_WORKSPACE_API_TOKEN=your-token-here
⚠️ Add .env to .gitignore:
echo ".env" >> .gitignore
---
## Step 2: Deploy
Now run:
npx webflow library share
The CLI will:
1. Read your token from .env
2. Bundle your components
3. Upload to your workspace
---
## Step 3: Verify
After successful deploy:
1. Open Webflow Designer
2. Press 'A' to open Add panel
3. Find your components in the Components section
4. Drag onto canvas to test
---
🎉 **First deployment complete!**
Future deployments are simpler:
npx webflow library share
Example: CI/CD Setup
🚀 Deploy Guide: CI/CD Setup
Setting up automated deployments for your pipeline.
---
## GitHub Actions Example
Create `.github/workflows/deploy.yml`:
name: Deploy to Webflow
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
run: npm ci
env:
WEBFLOW_WORKSPACE_API_TOKEN: ${{ secrets.WEBFLOW_WORKSPACE_API_TOKEN }}
run: npx webflow library share --no-input
---
## Add Secret to GitHub
1. Go to your repo → Settings → Secrets and variables → Actions
2. Click "New repository secret"
3. Name: `WEBFLOW_WORKSPACE_API_TOKEN`
4. Value: Your workspace API token
5. Click "Add secret"
---
## Key Flags for CI/CD
npx webflow library share --no-input
- `--no-input`: Disables interactive prompts
- Uses `WEBFLOW_WORKSPACE_API_TOKEN` env var automatically
---
## Optional: Add TypeScript Check
run: npx tsc --noEmit
---
✅ **CI/CD configured!**
Now every push to main will automatically deploy your components.
After deployment, verify success with these checks:
| Check | How to Verify |
|-------|---------------|
| Deploy completed | npx webflow library share exited without errors |
| Components visible | Open Designer Add panel → find your library |
| Import logs clean | npx webflow library log shows successful import |
| Bundle size OK | Output shows bundle under 50MB |
| Props work | Drag component onto canvas, verify props in right panel |
The CLI command is webflow library share. This skill uses "deploy" as the user-facing term for consistency with common developer vocabulary. See the CLI reference (Section 12) for full command documentation.
| Method | Use Case | Command |
|--------|----------|---------|
| Interactive | First time, local dev | npx webflow library share |
| Environment variable | CI/CD, automation | Set WEBFLOW_WORKSPACE_API_TOKEN |
| CLI flag | One-off with different token | --api-token TOKEN |
Before every deployment:
npm install is up to date| Issue | Cause | Solution |
|-------|-------|----------|
| "Authentication failed" | Invalid/expired token | Regenerate workspace token |
| "Bundle too large" | Over 50MB | Optimize dependencies |
| "Library not found" | Wrong workspace | Check token workspace |
| "Build failed" | Code errors | Fix compilation errors |
All flags for npx webflow library share:
| Flag | Description | Default |
|------|-------------|---------|
| --manifest | Path to webflow.json file | Scans current directory |
| --api-token | Workspace API token | Uses WEBFLOW_WORKSPACE_API_TOKEN from .env |
| --no-input | Skip interactive prompts (for CI/CD) | No |
| --verbose | Display more debugging information | No |
| --dev | Bundle in development mode (no minification) | No |
library share replaces the entire library — there are no partial updates.webflow.tsx files — renaming creates a new component and removes the old one, breaking all existing instances in projects# Check recent deploy logs
npx webflow library log
# Verbose deploy output (detailed errors)
npx webflow library share --verbose
# Local bundle verification (catches build errors before deploying)
npx webflow library bundle --public-path http://localhost:4000/
The GitHub Actions example above applies to any CI system. The key elements are:
# Generic CI pattern:
npm ci # Install dependencies
npx webflow library share --no-input # Deploy without prompts
# Requires WEBFLOW_WORKSPACE_API_TOKEN env var
Always verify after deployment:
Assess Kubernetes workloads and cluster configuration for AKS Automatic compatibility. Identifies incompatibilities, generates fixes, and guides migration from AKS Standard to AKS Automatic. WHEN: migrate to AKS Automatic, check AKS Automatic readiness, validate manifests for Automatic, assess cluster for Automatic compatibility, fix deployment for Automatic compatibility, identify AKS Automatic migration blockers, is my cluster ready for AKS Automatic.
Discovers available Azure OpenAI model capacity across regions and projects. Analyzes quota limits, compares availability, and recommends optimal deployment locations based on capacity requirements. USE FOR: find capacity, check quota, where can I deploy, capacity discovery, best region for capacity, multi-project capacity search, quota analysis, model availability, region comparison, check TPM availability. DO NOT USE FOR: actual deployment (hand off to preset or customize after discovery), quota increase requests (direct user to Azure Portal), listing existing deployments.
Interactive guided deployment flow for Azure OpenAI models with full customization control. Step-by-step selection of model version, SKU (GlobalStandard/Standard/ProvisionedManaged), capacity, RAI policy (content filter), and advanced options (dynamic quota, priority processing, spillover). USE FOR: custom deployment, customize model deployment, choose version, select SKU, set capacity, configure content filter, RAI policy, deployment options, detailed deployment, advanced deployment, PTU deployment, provisioned throughput. DO NOT USE FOR: quick deployment to optimal region (use preset).
Unified Azure OpenAI model deployment skill with intelligent intent-based routing. Handles quick preset deployments, fully customized deployments (version/SKU/capacity/RAI policy), and capacity discovery across regions and projects. USE FOR: deploy model, deploy gpt, create deployment, model deployment, deploy openai model, set up model, provision model, find capacity, check model availability, where can I deploy, best region for model, capacity analysis. DO NOT USE FOR: listing existing deployments (use foundry_models_deployments_list MCP tool), deleting deployments, agent creation (use agent/create), project creation (use project/create).
Intelligently deploys Azure OpenAI models to optimal regions by analyzing capacity across all available regions. Automatically checks current region first and shows alternatives if needed. USE FOR: quick deployment, optimal region, best region, automatic region selection, fast setup, multi-region capacity check, high availability deployment, deploy to best location. DO NOT USE FOR: custom SKU selection (use customize), specific version selection (use customize), custom capacity configuration (use customize), PTU deployments (use customize).
This skill should be used when working with LaminDB, an open-source data framework for biology that makes data queryable, traceable, reproducible, and FAIR. Use when managing biological datasets (scRNA-seq, spatial, flow cytometry, etc.), tracking computational workflows, curating and validating data with biological ontologies, building data lakehouses, or ensuring data lineage and reproducibility in biological research. Covers data management, annotation, ontologies (genes, cell types, diseases, tissues), schema validation, integrations with workflow managers (Nextflow, Snakemake) and MLOps platforms (W&B, MLflow), and deployment strategies.
Latch platform for bioinformatics workflows. Build pipelines with Latch SDK, @workflow/@task decorators, deploy serverless workflows, LatchFile/LatchDir, Nextflow/Snakemake integration.
Run Python code in the cloud with serverless containers, GPUs, and autoscaling. Use when deploying ML models, running batch processing jobs, scheduling compute-intensive tasks, or serving APIs that require GPU acceleration or dynamic scaling.
Take webflow/webflow-code-component:deploy-guide from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.
The instructions reference npm, npx.
Without those the skill loads but fails at the first command.