kernel-app-deployment

Deploy TypeScript/Python apps, invoke actions, and monitor logs in Kernel environment

kernel/skills4 installsMITSynced Aug 26

Works with

Claude CodeCursorCodex CLIGitHub CopilotGemini CLI
---
name: kernel-app-deployment
description: Deploy TypeScript/Python apps, invoke actions, and monitor logs in Kernel environment
license: MIT
---

# App Deployment and Invocation

Deploy serverless apps to Kernel and invoke them with payloads.

## When to Use This Skill

Use app-deployment when you need to:
- Deploy serverless TypeScript or Python applications to Kernel
- Invoke deployed actions with custom payloads
- Monitor application logs in real-time
- Run browser automation or data processing tasks at scale
- Deploy apps with environment variables and secrets

**Don't use this when:**
- You need one-off browser automation → Use `browser-management` directly

## Prerequisites

Load the `kernel-cli` skill for Kernel CLI installation and authentication.

### App Deployment Specific
- Valid TypeScript (.ts) or Python (.py) entry file
- `package.json` (JS/TS) or `pyproject.toml` (Python) must be present next to the entrypoint
- Node.js/Bun or Python runtime (for local testing)

## Deploy Apps

### TypeScript

**Command:**
```bash
kernel deploy index.ts -o json
```

**Note:** Ensure `package.json` is present in the same directory as `index.ts`.

### Python

**Command:**
```bash
kernel deploy main.py -o json
```

**Note:** Ensure `pyproject.toml` is present in the same directory as `main.py`.

### With Environment Variables

**Command:**
```bash
# Inline env vars
kernel deploy index.ts --env API_KEY=secret --env DB_URL=postgres://... -o json

# From .env file
kernel deploy index.ts --env-file .env -o json
```

**MCP Tool:** Use `kernel:get_deployment` with `deployment_id` to check deployment status.

## Invoke Apps

### Basic Invocation

**Command:**
```bash
kernel invoke my-app scrape -o json
```

**MCP Tool:** Use `kernel:invoke_action` with `app_name`, `action_name`, and optional `payload`.

### With Payload

**Command:**
```bash
# Inline JSON payload (max 4.5 MB)
kernel invoke my-app scrape --payload '{"url": "https://example.com"}' -o json

# From file
kernel invoke my-app scrape --payload-file payload.json -o json
```

**Note:** JSON payloads are limited to 4.5 MB maximum.

### Synchronous Invocation

**Command:**
```bash
# Wait for completion (timeout after 60s)
kernel invoke my-app scrape --payload '{"url": "https://example.com"}' --sync -o json
```

**Note:**
- Synchronous invocations timeout after 60 seconds
- JSON payloads are limited to 4.5 MB maximum
- Press `Ctrl+C` to cancel an in-flight invocation (associated browser sessions are cleaned up automatically)

## View Logs

**Command:**
```bash
# Recent logs
kernel logs my-app
```

**Follow logs (stream):**
```bash
kernel logs my-app --follow
```

**Expected Output:** Real-time log stream (continues until Ctrl+C)

**With filters:**
```bash
# Logs from last hour with timestamps
kernel logs my-app --since 1h --with-timestamps
```

**Note:** Log lines longer than 64 KiB are truncated. For bulky payloads, emit them to external storage and log references instead.

## Complete Workflow Example

**End-to-end deployment and invocation:**

```bash
# 1. Deploy app with environment variables
kernel deploy index.ts --env-file .env -o json
# Output: {"deployment_id": "dep_123", "app_name": "my-app", "status": "deployed"}

# 2. Invoke action synchronously
kernel invoke my-app scrape --payload '{"url": "https://example.com"}' --sync -o json
# Output: {"invocation_id": "inv_456", "status": "completed", "result": {...}}

# 3. Monitor logs in real-time
kernel logs my-app --follow
# Output: Live log stream...
```

## Troubleshooting

### Deployment Fails

**Error:** `401 Unauthorized`
- **Solution:** Run `kernel login` to re-authenticate

**Error:** `file not found: index.ts`
- **Solution:** Ensure entry file exists and path is correct
- **Check:** Run `ls -la index.ts` to verify file exists

**Error:** `syntax error in index.ts`
- **Solution:** Fix TypeScript/Python syntax errors
- **Check:** Run local linter or type checker first

More Deployment & CI/CD skills

azure-enterprise-infra-planner

microsoft/azure-skills

Architect and provision enterprise Azure infrastructure from workload descriptions. For cloud architects and platform engineers planning networking, identity, security, compliance, and multi-resource topologies with WAF alignment. Generates Bicep or Terraform directly (no azd). WHEN: 'plan Azure infrastructure', 'architect Azure landing zone', 'design hub-spoke network', 'plan multi-region DR topology', 'set up VNets firewalls and private endpoints', 'subscription-scope Bicep deployment', 'Azure Backup for VM workloads'. PREFER azure-prepare FOR app-centric workflows.

387.5k

azure-kubernetes-app-deploy

microsoft/azure-skills

Use when deploying an existing web application or API to an already-running Azure Kubernetes Service cluster. Detects the framework, generates a Dockerfile and Kubernetes manifests, validates against AKS Deployment Safeguards, and deploys with verification. WHEN: deploy app to AKS, deploy to existing AKS cluster, containerize app for Kubernetes, generate K8s manifests for Azure, set up CI/CD for AKS, my AKS deployment is failing safeguard checks, I have a Django/Express/Spring Boot app to run on AKS. DO NOT USE FOR: creating or provisioning an AKS cluster (use azure-kubernetes), assessing migration to AKS Automatic (use azure-kubernetes-automatic-readiness), or deploying to non-AKS targets like Web Apps, Container Apps, or Functions.

380.4k

finetuning

microsoft/azure-skills

Fine-tune models on Microsoft Foundry using SFT (supervised), DPO (preference), or RFT (reinforcement with graders). Covers dataset preparation, training job submission, deployment, and evaluation. USE FOR: fine-tune, SFT, DPO, RFT, training data, grader, distillation, fine-tuned model, training job, large file upload, calibrate grader, deploy fine-tuned model, evaluate fine-tuned model. DO NOT USE FOR: general model deployment without fine-tuning (use deploy-model), agent creation (use agents), prompt optimization without training (use prompt-optimizer).

323.2k

← All Deployment & CI/CD skills

Check your AI visibility

One URL in, a 0–100 score and the exact fixes out.

RUN THE CHECK

Browse all the tools

15 tools across six categories
13 of them never send your data anywhere

Free · No signup · No trial clock

SEE THE DIRECTORY