Console
Getting Started
Markdown

CLI (skopik)

Install and use the skopik command-line tool to deploy Workers, tail logs, roll back releases, and invoke every MCP tool from your terminal.

skopik is Skopik Platform's single command-line tool. It talks exclusively to the control API: /v1 routes for dedicated commands (login, logout, whoami, deploy, rollback, logs), and /mcp for every other platform operation.

#Installation

bash
npm install -g @skopiklabs/platform
# Or run without installing:
npx @skopiklabs/platform --help

#Authentication & Environment Variables

skopik login prompts for an org API key and stores it locally. Use skopik login --person to sign in through the console as a user (required for managing org members, invites, and resource transfers).

VariableDescription
SKOPIK_API_KEYOverrides the stored API key for the current command.
SKOPIK_API_URLOverrides the control API base URL (defaults to https://api.platform.skopik.com).

#Core Commands

CommandPurpose
skopik login [--person] [--org ID] [--api-url URL]Store an org API key or start browser-approved person sign-in.
skopik logoutClear stored credentials and end a person session.
skopik whoamiDisplay the active key or signed-in person and organizations.
skopik deploy [options]Pack a directory, upload a deployment, and move an alias.
skopik rollback [--worker NAME] [--alias ALIAS]Point an alias back to its previous deployment.
skopik logs <worker> [--deployment ID]Stream live logs from a Worker until interrupted.
skopik logs <worker> --since 2h [--until 1h] [--level error,warn] [--grep TEXT]Print the Worker's stored lines from then on, oldest first, then stream live. --since and --until take a duration back from now (30m, 2h, 3d) or an RFC 3339 time; --until ends there and does not stream. Lines are kept 7 days.
skopik toolsList every control API operation exposed as a CLI subcommand.

#skopik deploy Flags

bash
skopik deploy \
  --dir ./app \
  --worker api \
  --runtime node \
  --workspace payments \
  --alias production \
  --check /health
FlagDescription
--dir <path>Directory to pack (defaults to .).
--worker <name>Target Worker name (created if missing; defaults to directory name).
--runtime <runtime>node, python, binary, or static (defaults to node).
--workspace <id-or-name>Assign the Worker to a Workspace, or none to unassign.
--service <name> / --allDeploy one or all services defined in a root skopik.json (--no-build skips build commands).
--alias <name>Alias to move (defaults to production).
--branch <name>Map a git branch to production (if default branch) or a sanitized preview alias.
--dry-runList the files that would be bundled without uploading.
--check <path>Poll the new deployment URL until status < 500 (up to 60s) before moving the alias.

#Calling Any Platform Operation

Every MCP tool is automatically available as a skopik subcommand, either by its tool name or in <noun> <verb> form:

bash
skopik list_workers
skopik create_queue --name jobs --worker api
skopik queues create --name jobs --worker api
skopik create_sandbox --help