/northflank:northflankfrom northflank
Deploy, manage, and automate infrastructure on Northflank — a Kubernetes-based developer platform. Covers services, jobs, databases, secrets, domains, templates (IaC), environments, pipelines, release flows, BYOC/BYOK clusters, GPU workloads, and AI sandboxes via REST API, CLI, or JS client.
Ships in northflank. 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.
Read when SKILL.md points to them.
Northflank is a developer platform for building, deploying, and scaling workloads on Kubernetes — on Northflank Cloud, your own cloud (BYOC), or your own clusters (BYOK). It handles build, deploy, release, auto-scaling, and disaster recovery across AWS, GCP, Azure, CoreWeave, and on-prem. Core primitives: projects (Kubernetes namespaces), services (stateless workloads), add-ons (managed databases), jobs (cron/manual), secret groups, volumes, and templates (IaC/GitOps). Everything in the UI is also available via the REST API, CLI, and JS client.
Base API URL: https://api.northflank.com/v1/
Auth: Authorization: Bearer <token>
Rate limits: Use the response rate-limit headers; limits depend on the account and server configuration.
Use the interface requested by the user and reuse their existing authenticated setup. MCP offers guided workflows directly in a coding agent; the CLI is also a good choice for platform operations and local development. If no interface is specified, a connected MCP is a convenient starting point. Check prerequisites for the interface you use:
deploy_app for new image/Git apps, deploy_job for jobs, and detailed tools for existing resources or advanced settings. Reuse the connection's authentication.northflank login session for deployments, resource management, local tunnels, exec, and shell workflows. Check the relevant command's --help when using it.@northflank/js-client only when that code needs it. Resolve credentials through the user's existing setup; never print tokens.my-project. With MCP, call get_auth_context only when team or workload scope is unknown. Own-project workload credentials should use workload.projectId; do not enumerate all projects. For a requested new project, pass newProject to the deployment workflow.For MCP, CLI, SDK, or REST failures, report the API message before proposing recovery. Stop dependent operations until the failure is resolved.
If the API reports a missing, expired, or unverified default payment method, explain that billing blocks the operation. Direct the user to Billing → Payment methods for the affected team or organization. Ask them to add or update the default method. Wait for the user to resolve billing before retrying. Do not request card details in chat. See Add a payment method.
Do not treat HTTP 409 alone as a duplicate-resource error. Read the API message and recovery guidance. After a partial workflow failure, retain created resource IDs and inspect their state before resuming.
If NORTHFLANK_API_TOKEN_FILE is set in a harness, follow Managed harnesses instead of browser login.
For local Claude Code, Codex, Cursor, or OpenCode, use the latest Northflank CLI and the existing team login. If the CLI is missing, install it with pnpm add -g @northflank/cli@latest or npm install -g @northflank/cli@latest. It requires Node.js 22.13.0 or later, excluding 26.0.x.
Claude Code, Codex, and OpenCode connect to the hosted MCP with OAuth: the user signs in and picks one team in the browser. Cursor uses the nf agent mcp serve bridge with the saved CLI team login. For Cursor, if login is needed, run nf login and wait for the user to select their team in the browser. Keep the command running until login completes. Never print credentials or ask the user to paste a token.
Replace <agent> with claude, codex, cursor, or opencode:
nf agent setup --agent <agent> --dry-run
nf agent setup --agent <agent> --yes
nf agent status --check --agent <agent>
Target only the requested agents. Codex setup signs in through the browser and refuses to run without a terminal, so ask the user to run nf agent setup --agent codex in their own terminal. Explain any replacement before applying setup. --yes accepts replacement of conflicting Northflank MCP entries after a private backup. Preserve modified skills and other MCP servers. Setup includes MCP at user scope by default. Use --no-mcp --scope user for skills or plugins only.
If the user asks you to set up Northflank for this agent, follow the agent setup prompt from the docs. It covers CLI installation, browser login, nf agent setup, and connection checks. Do not create or change cloud resources during setup. For setup options, troubleshooting, and nf agent update or nf agent remove, see Connect your agent with MCP.
Ask the user to reconnect if the current agent session cannot load the connection. For OAuth, ask them to sign in from the agent: /mcp in Claude Code, codex mcp login northflank in Codex, or opencode mcp auth northflank in OpenCode. Then call get_auth_context to confirm the intended team. Saving configuration alone does not prove that the agent connected.
OAuth clients refresh their own tokens. To change teams, revoke the connection under Authorized apps in account security settings and sign in again. Agents set up before OAuth support keep the bridge until setup is rerun.
For expired bridge credentials, follow the bridge's login instructions to renew the same context and team. This updates the normal CLI session too. See CLI setup and recovery, including setup inside a managed harness.
For clients without the CLI, follow Connect your agent to Northflank. The hosted endpoint is https://mcp.northflank.com/mcp. Clients that support MCP OAuth add it as a remote HTTP server and sign in in the browser, for example claude mcp add --transport http --scope user northflank https://mcp.northflank.com/mcp or codex mcp add northflank --url https://mcp.northflank.com/mcp. Other clients use a team API token from the client's secret storage. Do not put credentials in chat or committed files. Installing this skill alone does not configure MCP or grant account access.
search_tools and call it through execute_tool. Request omitted constraints with get_tool_schema only when needed. Execute returned next.tool names directly without another search. With older servers that lack catalog tools, use the exposed resource tools. Do not repeat repository inspection or catalogue calls after authorization.deploy_app, deploy_job or create_database for supported new workloads. Let their results direct Git authorization, recovery and status checks. Retain original inputs and returned resource/session IDs. Open authorization links when a browser is available; otherwise show the link and wait. Workload identities require a team member to grant missing Git access.Use diagnose for service, job or addon failures when the connected server exposes it. It gathers health, related infrastructure events, deployment revisions, logs, metrics and BYOC node-pool configuration. Missing permissions produce partial evidence. Treat correlations as leads, not proven causes. Use get_deployment_status or get_addon for routine polling.
For invalid arguments, use the returned field constraints and guidance to correct the request. For an unknown schema path, request the returned parentPath or an availablePaths entry. Inspect arrays and alternatives through their containing field. Follow build-error guidance without changing the user's requested revision or source. On conflicts, inspect existing resources and any workflow progress before retrying.
list_addon_types includes Northflank-managed and team custom addons. For managed databases, it provides versions, storage sizes and replica options. It does not discover storage classes for a BYOC cluster.
Critical: Before performing any destructive operation on Northflank, stop and explicitly ask the user to confirm. Do not assume prior approval transfers across operations or sessions — confirm each one individually.
Destructive operations include, at minimum:
delete service / apiClient.delete.service — irreversible; loses container state and any service-scoped configurationdelete addon / apiClient.delete.addon — EXTRA CARE: addons hold persistent data (databases, queues, caches). Deletion is irreversible and destroys all data unless the user has a recent backup. Always confirm the addon name back to the user, ask whether a backup exists, and do not proceed without an explicit "yes, delete <addon-id>."delete volume — destroys persistent disk contentsdelete project — removes a project; the MCP tool requires it to be empty. Recursive deletion through another interface also deletes its resourcesdelete secret — may break running workloads that depend on those keyspatch secret / update secret / put secret / patch service with runtimeEnvironment, runtimeFiles or ports — these replace the whole map or array you send, so sending one new key deletes every other key. Follow Updating maps safely and back up the current values firstdelete job — removes the job and its run historydelete template / running a template that destroys resources, or any run template against a project or environment other than the one it was written for (see Templates)delete domain / delete dns-recorddelete cluster (BYOC/BYOK) — affects every workload on that clusterpatch / update that shrinks persistent state (e.g. lowering replica count on an addon — Northflank rejects this anyway, but never attempt it as a workaround)Confirmation rules:
pause service instead of delete service, snapshot/backup an addon before deleting, etc.pnpm add -g @northflank/cli@latest
# Or install with: npm install -g @northflank/cli@latest
northflank login
northflank context ls
northflank context use
northflank context use project
northflank login opens the browser and saves a session for the selected team. No separate API token is required.northflank context use project|service|job to set defaults so later commands can omit repeated IDs.northflank command-overview to see the command tree.Use northflank.yaml for shared repository resource defaults, not credentials. See Repository defaults for precedence and supported fields.
# Prompts for missing values interactively
northflank get service
# Explicit project and service
northflank get service --projectId <PROJECT_ID> --serviceId <SERVICE_ID>
The CLI is interactive by default. If IDs are omitted it will usually prompt for them.
# Interactive shell session
northflank exec service
# One-off command
northflank exec service --cmd "ls -lah /app"
# Run as a specific user
northflank exec service --user root --cmd id
Use northflank exec job for jobs instead of services.
sudo northflank forward service --projectId <PROJECT_ID> --serviceId <SERVICE_ID>
sudo northflank forward addon --projectId <PROJECT_ID> --addonId <ADDON_ID>
# If sudo path/context resolution causes issues
sudo --preserve-env=PATH,HOME bash -c 'northflank forward service --projectId <PROJECT_ID> --serviceId <SERVICE_ID>'
--skipHostnames if rootless forwarding is acceptable and only IP/port access is needed.northflank forward all --projectId <PROJECT_ID> to open all project tunnels at once.northflank create project --help
northflank create project --file ./project.yaml
Select the target resource with CLI flags such as --projectId and --serviceId. The --input JSON or --file contents contain only the API request body. Keep those target IDs outside the body, and do not wrap it in the SDK's parameters, data, or options structure.
northflank patch service deployment --projectId my-project --serviceId my-api \
--input '{"description":"Public API"}'
import { ApiClient, ApiClientInMemoryContextProvider } from '@northflank/js-client';
const contextProvider = new ApiClientInMemoryContextProvider();
await contextProvider.addContext({
name: 'default',
token: process.env.NF_API_TOKEN,
});
const apiClient = new ApiClient(contextProvider, {
throwErrorOnHttpErrorCode: true,
});
All methods follow the pattern:
apiClient.{verb}.{resource}({ parameters, data, options })
parameters — path params (e.g. projectId, serviceId)data — request body (for create/update)options — query params (for filtering, pagination)const result = await apiClient.create.service.deployment({
parameters: { projectId: 'my-project' },
data: {
name: 'my-api',
billing: { deploymentPlan: 'nf-compute-10' },
deployment: {
instances: 1,
external: { imagePath: 'nginx:latest' },
docker: { configType: 'default' },
},
ports: [{ name: 'http', internalPort: 80, public: true, protocol: 'HTTP' }],
},
});
const serviceId = result.data.id; // 'my-api'
Common plan sizes: nf-compute-10 (0.1 vCPU/256MB), nf-compute-50 (0.5/1GB), nf-compute-100-2 (1/2GB), nf-compute-200 (2/4GB). See Compute & GPU Plans for the full table, GPU SKUs, and how to query the live list.
await apiClient.create.service.combined({
parameters: { projectId: 'my-project' },
data: {
name: 'my-app',
billing: { deploymentPlan: 'nf-compute-50' },
vcsData: {
projectUrl: 'https://github.com/org/repo',
projectType: 'github',
projectBranch: 'main',
},
buildSettings: {
dockerfile: {
buildEngine: 'buildkit',
dockerFilePath: '/Dockerfile',
dockerWorkDir: '/',
},
},
deployment: { instances: 1 },
ports: [{ name: 'app', internalPort: 3000, public: true, protocol: 'HTTP' }],
},
});
// List all services in a project
const { data } = await apiClient.list.services({ parameters: { projectId: 'my-project' } });
const services = data.services;
// Get a single service
const svc = await apiClient.get.service({
parameters: { projectId: 'my-project', serviceId: 'my-api' },
});
// Deployment rollout state: 'PENDING' | 'IN_PROGRESS' | 'COMPLETED' | 'FAILED'
// COMPLETED describes rollout completion, not application health or process exit.
console.log(svc.data.status.deployment?.status);
// Build state (only present for combined/build services):
// 'QUEUED' | 'PENDING' | 'STARTING' | 'BUILDING' | 'SUCCESS' | 'FAILURE' | ...
console.log(svc.data.status.build?.status);
// Pause is a separate boolean — not encoded in either status above
console.log(svc.data.servicePaused);
// Short-lived command — returns stdout/stderr/exitCode
const result = await apiClient.exec.execServiceCommand(
{ projectId: 'my-project', serviceId: 'my-api' },
{ command: ['ls', '-lah', '/app'] },
);
console.log(result.stdOut);
console.log(result.commandResult.exitCode); // 0 = success
// Long-running / interactive session
const { exec } = apiClient;
const session = await exec.execServiceSession(
{ projectId: 'my-project', serviceId: 'my-api' },
{ shell: 'bash' },
);
session.stdErr.on('data', (chunk) => console.error(chunk));
session.stdIn.write('echo hello\n');
const result2 = await session.waitForCommandResult();
For more command-execution details, see references/api/execute-command.md.
const logsClient = await apiClient.get.service.logTail({
parameters: { projectId: 'my-project', serviceId: 'my-api' },
options: { lineLimit: 20 },
});
logsClient.on('logs-received', (lines) => {
lines.forEach((l) => console.log(`[${l.ts.toISOString()}] ${l.log}`));
});
logsClient.on('error', console.error);
await logsClient.start();
// Call await logsClient.stop() when done
const params = { parameters: { projectId: 'my-project', serviceId: 'my-api' } };
await apiClient.pause.service(params); // stops billing, keeps config
await apiClient.resume.service(params); // restarts from paused
await apiClient.restart.service(params); // rolling restart (keeps running)
await apiClient.delete.service(params); // permanent, irreversible
// Update image or instance count
await apiClient.patch.service.deployment({
parameters: { projectId: 'my-project', serviceId: 'my-api' },
data: {
deployment: {
instances: 3,
external: { imagePath: 'myregistry/myapp:v2' },
},
},
});
const { data } = await apiClient.create.addon({
parameters: { projectId: 'my-project' },
data: {
name: 'my-postgres',
type: 'postgresql', // postgresql | mongodb | mysql | redis | rabbitmq | minio | memcached
version: '16',
billing: {
deploymentPlan: 'nf-compute-10',
storage: 4096, // MB
replicas: 1,
},
tlsEnabled: true,
},
});
const addonId = data.id; // 'my-postgres'
For an application connection, prefer a secret group with an addon link. Read credential values only when the task requires them. Keep them out of logs and chat.
const creds = await apiClient.get.addon.credentials({
parameters: { projectId: 'my-project', addonId: 'my-postgres' },
});
// creds.data.username, creds.data.password, creds.data.connectionString, etc.
// Pass required credentials directly to their destination. Do not log their values.
Secret groups link add-on connection strings to service env vars, and/or hold arbitrary key-value secrets.
// Create a secret group with a static env var and a linked addon credential
await apiClient.create.secret({
parameters: { projectId: 'my-project' },
data: {
name: 'app-secrets',
type: 'secret', // 'secret' | 'config'
secretType: 'environment', // 'environment' | 'arguments' | 'environment-arguments'
priority: 10,
secrets: {
variables: {
NODE_ENV: 'production',
API_KEY: 'supersecret',
},
// files: { '/etc/app.conf': { data: '<base64>' } }, // file contents must be base64
},
addonDependencies: [
{
addonId: 'my-postgres',
keys: [
{ keyName: 'POSTGRES_URI', aliases: ['DATABASE_URL'] },
],
},
],
restrictions: {
restricted: true,
nfObjects: [{ id: 'my-api', type: 'service' }],
},
},
});
// List secrets in project
const { data } = await apiClient.list.secrets({ parameters: { projectId: 'my-project' } });
// Requires readValues permission. Read only values owned by this group.
const current = await apiClient.get.secret({
parameters: { projectId: 'my-project', secretId: 'app-secrets' },
options: { show: 'this' },
});
const variables = current.data.secrets.variables;
if (
!variables || typeof variables !== 'object' || Array.isArray(variables) ||
Object.values(variables).some(value =>
typeof value !== 'string' || value === '[REDACTED]' || /^\*+$/.test(value)
)
) {
throw new Error('Cannot update secrets without a complete, unredacted variable map.');
}
await apiClient.patch.secret({
parameters: { projectId: 'my-project', secretId: 'app-secrets' },
data: {
secrets: {
variables: { ...variables, FEATURE_FLAG: 'true' },
},
},
});
patch does not merge inside a map. Sending secrets.variables, secrets.files, a service's runtimeEnvironment / runtimeFiles, or a ports array replaces that whole value. Top-level fields you omit are left alone.
| Request | Effect on a secret group that has A, B, C |
|---|---|
patch / update with { description: 'x' } | Only the description changes |
patch / update with { secrets: { variables: { D: '4' } } } | Variables become { D }. A, B, C are deleted |
patch / update with { data: { D: '4' } } | Nothing changes and the call still returns success, because unknown body keys are ignored |
put secret (upsert by name in the body) | Like patch, but omitted description and restrictions reset to defaults |
show: 'this' and readValues permission. Merge into the complete, unredacted map and send it back. Do not copy inherited addon values into the group. There is no per-key patch and no null-to-delete.patch service deployment|combined|build: runtimeEnvironment, runtimeFiles and ports are replaced whole, while nested objects such as deployment merge field by field. The POST /services/{id}/ports endpoint also replaces the full list.get service output may omit the env map. Use get secret for groups, and the REST or JS client get.service response for service-level runtimeEnvironment.runtimeEnvironment for shared credentials, so one service update cannot clobber them.Without readValues permission, the API returns asterisks in place of secret values. MCP also redacts secret maps. Never write these placeholders back: the API stores them as literal values. If a read is redacted or incomplete, stop the merge. Use an authorized unredacted read or a complete map from the user's authoritative secret source. The same restriction applies to secret files and service environment maps.
List endpoints return 50 items by default. Two options:
// Fetch all pages automatically (multiple API calls)
const all = await apiClient.list.services.all({ parameters: { projectId: 'my-project' } });
// Manual next-page
const page1 = await apiClient.list.services({ parameters: { projectId: 'my-project' } });
if (page1.pagination?.hasNextPage) {
const page2 = await page1.pagination.getNextPage();
}
The SDK returns HTTP failures in result.error by default. Use throwErrorOnHttpErrorCode: true in agent scripts, or inspect result.error before reading result.data. Stop dependent operations on failure. Report the API message to the user before proposing recovery. Never report successful creation from a resolved promise alone.
// Without throwing enabled, handle the returned error before using data.
const result = await apiClient.get.service({ parameters: { projectId, serviceId } });
if (result.error) {
throw new Error(`Northflank HTTP ${result.error.status}: ${result.error.message}`);
}
For billing errors, HTTP 409 responses, or partial workflow failures, follow Operation failures.
const { rawResponse } = await apiClient.get.service({ parameters: { projectId, serviceId } });
const remaining = rawResponse.headers.get('x-ratelimit-remaining');
const reset = rawResponse.headers.get('x-ratelimit-reset'); // seconds
Full live tables (every compute plan, GPU SKU, pricing, and per-region GPU availability) are auto-generated into references/plans.md by scripts/generate_references.js. Re-run with --plans-only --force to refresh after Northflank ships new SKUs or price changes. The underlying endpoints are public — no auth needed:
curl -s https://api.northflank.com/v1/plans | jq '.data.plans[] | {id, cpu: .cpuResource, ramMB: .ramResource, hr: .amountPerHour}'
curl -s https://api.northflank.com/v1/regions | jq '.data.regions[] | {id, gpus: (.gpuDevices // [] | map(.id))}'
JS client / CLI equivalents: apiClient.list.plans({}) / apiClient.list.regions({}) and northflank list plans / northflank list regions.
Format: nf-compute-<cpu*100>-<ram_gb> (newer, explicit) or nf-compute-<cpu*100> (legacy, RAM implied). Common picks:
nf-compute-10 — 0.1 vCPU / 256 MB (~$2.70/mo) — sidecars, light workersnf-compute-50 — 0.5 vCPU / 1 GB (~$12/mo) — small APIs, cron jobsnf-compute-200 — 2 vCPU / 4 GB (~$48/mo) — typical production servicenf-compute-400-16 — 4 vCPU / 16 GB (~$144/mo) — also valid as buildPlanbuildPlan only accepts plans with 4+ vCPU and defaults to nf-compute-400-16 if omitted. See references/plans.md for all 20 SKUs.
Format: nf-gpu-<gpuType>-<count>g, replacing underscores with hyphens in the plan ID. Keep the original GPU type in deployment.gpu.configuration.gpuType. The g suffix is literal, not a unit. The plan bundles CPU/RAM around the GPU — you do not combine an nf-compute-* plan with a separate GPU. Worked example:
data: {
billing: { deploymentPlan: 'nf-gpu-a100-80-1g' }, // 1× A100 80GB
deployment: {
gpu: {
enabled: true,
configuration: { gpuType: 'a100-80', gpuCount: 1, timesliced: false },
},
storage: { shmSize: 32768 },
// ...
},
}
gpuType is the model id (lowercase, no nvidia- prefix). Currently: l4-24, a100-40, a100-80, h100-80, h200-141, b200-180, rtx_pro_6000-96.gpuCount must be one of the model's countOptions (typically 1, 2, 4, 8; H200 and B200 are 8-only). Invalid counts are rejected.deployment.gpu.configuration. Include deployment.gpu.enabled: true; placing it under billing does not enable GPU validation.gpuDevices[].countOptions, not a global union of counts.nf-gpu-h100-80-1g / nf-gpu-h100-80-8g. RTX PRO 6000 1×/8× plans are nf-gpu-rtx-pro-6000-96-1g / nf-gpu-rtx-pro-6000-96-8g. us-central supports these configurations.deployment.storage.ephemeralStorage.storageSize from the GPU type and count, overriding supplied values. Shared memory is separate: deployment.storage.shmSize is optional. For managed GPUs it defaults to system RAM per GPU multiplied by gpuCount; smaller explicit values are preserved and larger values are capped. CPU and BYOC workloads retain the 64 MiB default. The example explicitly requests 32 GiB. For allocations and older API errors, read references/gpu-storage.md.For BYOC clusters, GPU node types come from the cloud provider — query with apiClient.list.cloudProviders.nodeTypes({ options: { hasGpu: true } }) and define custom resource plans (see references/guides/bring-your-own-cloud.md#create-custom-resource-plans). Timeslicing is supported on BYOC, not on managed cloud.
For Northflank-published GPU base images (PyTorch + CUDA + Jupyter pre-installed), pull from europe-docker.pkg.dev/northflank/public/... instead of building from raw pytorch/pytorch:*.
With MCP, follow get_deployment_status next actions and polling intervals. With the CLI or SDK, poll rollout state with a deadline. Stop on failure or deadline expiry and report the observed state. Do not repeat creation to poll.
COMPLETED describes rollout completion. It does not prove application health. For a web application, make sure that the endpoint returns the expected response before reporting success. For other workloads, use an appropriate application-level check.
data: {
deployment: { instances: 1 },
autoscaling: {
horizontal: {
enabled: true,
minReplicas: 1,
maxReplicas: 10,
cpu: { enabled: true, thresholdPercentage: 70 },
rps: { enabled: true, thresholdValue: 500 },
},
},
}
A template is Northflank's infrastructure-as-code unit: a spec of nodes (projects, services, add-ons, jobs, secret groups, pipelines, actions). Running a template applies it to real resources. It is not a dry run, and it is not a copy of a project.
| Type | Scope | Used for |
|---|---|---|
| Team template | Whole team. Can create projects, clusters, services, databases, pipelines | Provisioning or replicating a full stack |
| Release flow | One pipeline stage | Shipping a release: backup, build, migrate, promote |
| Preview environment (preview blueprint) | One pipeline | Ephemeral environments per branch or pull request, torn down on close |
A preview template creates preview environments. Do not use it to deploy to production. If the intended template or target is unclear, ask the user to identify it.
What happens on each run, per resource node (updateMode, default put):
updateMode | Behavior |
|---|---|
put (default) | Creates the resource if missing, or replaces its configuration with the spec. Omitted configurable fields can reset or clear |
patch | Updates only the supplied fields. Fails if the resource does not exist. Arrays and some objects still replace whole values (see Updating maps safely) |
create | Creates if missing, otherwise skips and leaves the existing resource untouched |
name identifies the target resource. Changing the name creates a second resource next to the old one. Removing a node does not delete its resource.Before every run template:
northflank get template --template <id> (or apiClient.get.template). List each node's kind, updateMode, project context and name.put will be overwritten.arguments where the template supports it, rather than editing the template to point at another project.await apiClient.run.template({
parameters: { templateId: 'my-template' },
data: {
arguments: {
REGION: 'europe-west',
IMAGE: 'myapp:latest',
},
},
});
await apiClient.create.job({
parameters: { projectId: 'my-project' },
data: {
name: 'db-migrate',
billing: { deploymentPlan: 'nf-compute-10' },
deployment: {
external: { imagePath: 'myapp:latest' },
docker: { configType: 'default' },
},
settings: {
cron: { schedule: '0 2 * * *' }, // present = cron job
concurrencyPolicy: 'Forbid',
},
runtimeEnvironment: { MIGRATE: 'true' },
},
});
// Run it manually now
await apiClient.start.job.run({ parameters: { projectId: 'my-project', jobId: 'db-migrate' } });
"My App" becomes my-api (slug). Use IDs in API calls, not display names.put.* methods use upsert semantics — create if missing, update if present. Useful for idempotent IaC.northflank exec --cmd "..." swallows output without a TTY — in CI, agent harnesses, or anything wrapped in bash -c, stdout/stderr are silently discarded. Wrap with script -q /dev/null northflank exec ... (macOS/BSD) or script -qfc 'northflank exec ...' /dev/null (Linux) to capture output.status === "COMPLETED" describes rollout completion, not process exit. It does not prove application health. Make sure that the application responds as expected before reporting success.| I want to... | Check here |
|---|---|
| Set up the Northflank CLI, skill, and MCP for a coding agent | nf agent setup --agent <agent>; references/guides/ai-agents.md#connect-your-agent-with-mcp |
| Deploy a service from a pre-built image | MCP deploy_app; apiClient.create.service.deployment / northflank create service deployment |
| Build and deploy a service from a Git repo | MCP deploy_app; apiClient.create.service.combined / northflank create service combined; references/guides/build.md |
| Run a one-off command or shell session in a container | apiClient.exec.execServiceCommand / northflank exec service; references/api/execute-command.md |
| Tail or fetch logs from a service, job, or addon | apiClient.get.service.logTail / northflank get service logs -f; references/api/log-tailing.md |
| Forward a private service or addon port to localhost | northflank forward service; references/api/forwarding.md |
| Provision a managed database (Postgres, Redis, Mongo, MySQL…) | MCP create_database; apiClient.create.addon / northflank create addon; references/guides/databases-and-persistence.md |
| Wire database credentials into a service via secret groups | apiClient.create.secret with addonDependencies / northflank create secret; references/api/project/secrets/_index.md |
| Create a cron or manual job | MCP deploy_job; apiClient.create.job with settings.cron / `northflank create job cron |
| Configure autoscaling, replicas, or resource sizing | autoscaling.horizontal field; references/guides/scale.md |
| Pick a compute or GPU plan (sizes, pricing, regions) | references/plans.md — auto-generated from /v1/plans and /v1/regions; slug patterns in Compute & GPU Plans |
| Set up CI/CD: pipelines, release flows, preview environments | references/guides/release.md |
| Define infrastructure as code (templates, GitOps, OpenTofu) | apiClient.create.template / northflank create template; references/guides/infrastructure-as-code.md |
| Add a custom domain with TLS, CDN, or path routing | references/guides/domains.md; references/api/team/domains/_index.md |
| Attach persistent storage / volumes to a service | apiClient.create.volume / northflank create volume; references/api/project/volumes/_index.md |
| Upload or download files into a running container | northflank upload service file / download service file; references/api/copy-files.md |
| Configure ports, network policies, egress IPs, Tailscale | references/guides/network.md |
| Set up log sinks, metrics, alerts, health checks | references/guides/observe.md |
| Run GPU workloads | references/guides/gpu-workloads.md |
| Spin up an AI sandbox / microVM | A sandbox is a service — use MCP deploy_app, or apiClient.create.service.deployment / northflank create service deployment (no sandbox verb exists); references/guides/sandboxes.md |
| Deploy on your own cluster (BYOC/BYOK on AWS/GCP/Azure/CoreWeave) | references/guides/bring-your-own-cloud.md |
| Manage teams, RBAC, SSO/MFA, API tokens | references/guides/secure.md, references/guides/collaborate.md |
| Pause, resume, restart, or delete a resource | apiClient.{pause,resume,restart,delete}.service / northflank {pause,resume,restart,delete} service — re-read Destructive Operations before any delete |
/v1/plans and /v1/regions)references/api-overview.md (opens in a new tab)references/api/_index.md (opens in a new tab)references/api/billing-api.md (opens in a new tab)references/api/copy-files.md (opens in a new tab)references/api/execute-command.md (opens in a new tab)references/api/forwarding.md (opens in a new tab)references/api/introduction.md (opens in a new tab)references/api/log-tailing.md (opens in a new tab)references/api/miscellaneous/_index.md (opens in a new tab)references/api/miscellaneous/auth/_index.md (opens in a new tab)references/api/miscellaneous/auth/get-current-authentication-info.md (opens in a new tab)references/api/miscellaneous/miscellaneous/_index.md (opens in a new tab)references/api/miscellaneous/miscellaneous/list-plans.md (opens in a new tab)references/api/miscellaneous/miscellaneous/list-regions.md (opens in a new tab)references/api/org/_index.md (opens in a new tab)references/api/org/api-tokens/_index.md (opens in a new tab)references/api/org/api-tokens/create-an-api-token.md (opens in a new tab)references/api/org/api-tokens/delete-a-key-from-an-api-token.md (opens in a new tab)references/api/org/api-tokens/list-api-tokens.md (opens in a new tab)references/api/org/api-tokens/rotate-a-key-on-an-api-token.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub northflank/skills --plugin northflankOther plugins' skills for the same job