CLI (@manykind-ai/cli)
The reference section is the lookup layer: every CLI command, SDK export, limit, error code, and term. Start with the CLI.
npm install -D @manykind-ai/cli # or: npm i -g @manykind-ai/climk --versionmk is also installed as manykind; both run the same CLI.
| Command | Does |
|---|---|
mk help |
A command’s help, or the commands for a task. |
mk init |
Scaffold a project. |
mk build |
Check, bundle agents, and write manifests. |
mk validate |
List every problem in the project at once. |
mk typegen |
Generate types for declared models and peers. |
mk inspect |
Check a built agent. |
mk schema |
Print a JSON Schema: workflow, step, config, manifest, error, or a command’s output. |
mk push |
Upload an agent version, or register an A2A agent you run elsewhere. |
mk widget push |
Publish a service widget. |
mk cubby push |
Publish the service’s cubby declarations. |
mk deploy |
Apply deployment records, or make a workflow release live. |
mk release |
Check a workflow and publish a numbered release. |
mk run |
Run a workflow once and wait for its outcome. |
mk runs |
List runs, read one back, follow its log. |
mk vault inspect |
What a vault holds, read-only. |
mk dev |
Serve a widget locally. |
mk publish |
Send the agent card to the marketplace listing. |
mk eval |
Workflow evaluations. |
mk version |
The CLI version, whether a newer one exists, and where auth comes from. |
mk test |
Not implemented; prints a notice. Run vitest directly. |
Every command’s --help ends with an example and the schema of its JSON output.
Output, prompts, and errors
Global flags
Every command takes these.
| Flag | Default | Meaning |
|---|---|---|
--format <format> |
see below | text, json, or ndjson. |
--json |
— | Same as --format json. |
--yes |
— | Confirm side effects without being asked. Required when nobody can be asked. |
--agent-mode <mode> |
auto |
auto detects a coding agent from its environment; yes and no override the detection. |
Commands that change something also take --dry-run: push, widget push, cubby push, publish, deploy, and run.
Text or JSON
The output format is the first of: --format (or --json), $MK_FORMAT, then JSON when stdout is not a terminal or a coding agent runs the CLI, else text. So the same command prints text in your terminal and JSON when piped:
mk validate # textmk validate | jq '.issues[].code' # JSONstdout holds only the result. Progress, ✓ lines, warnings, and notices go to stderr. JSON is indented on a terminal and compact when piped. Lists are { "items": [...], "next_cursor": "…" | null }.
In text mode the CLI prints sentences, not data dumps. A mistyped command:
$ mk puserror: unknown command 'pus'Did you mean `mk push`?To find the command for a task: mk help "<what you want to do>"A preview:
$ mk cubby push --bucket 1338 --dry-runDry run of mk cubby push: 1 step, nothing sent 1. declare in storage bucket 1338 (DEVNET): cubby notes@0.1.0 (2 migrations)Coding agents
The CLI treats a run as a coding agent’s when one of these is set: AI_AGENT, CLAUDECODE, CLAUDE_CODE, CODEX_SANDBOX, CODEX_CI, CODEX_THREAD_ID, CURSOR_AGENT, CURSOR_TRACE_ID, GEMINI_CLI, OPENCODE_CLIENT, REPL_ID, or COPILOT_MODEL. A coding agent gets JSON and is never prompted. Override with --agent-mode or $MK_AGENT.
Confirmations
The CLI never prompts when nobody can answer: a coding agent, CI set, stdin not a terminal, or MK_NON_INTERACTIVE=1. Then these commands need --yes:
| Command | Why |
|---|---|
mk push |
It publishes a version and moves latest to it. |
mk deploy |
It replaces the live deployment set. |
mk deploy <release> |
It makes the release live. |
mk run |
The run’s steps can message people and call connectors. |
Without --yes they stop before changing anything, exit 2, and print the command to re-run. In a terminal, push and deploy run without asking; mk run and mk deploy <release> with review warnings ask first. Preview any of them with --dry-run. mk eval cancel always needs --yes.
Errors
In JSON mode a failure is one object on stdout. mk deploy in CI without --yes:
{ "status": "action_required", "reason": "confirmation_required", "message": "deploy applies the deployments/ folder to the platform: re-run with --yes to confirm (nobody can be asked here)", "next": [{ "command": "mk deploy --env dev --yes", "when": "to confirm and apply" }], "userActionRequired": false, "command": "deploy", "cliVersion": "5.0.0", "invocationId": "7f6c1d9e-…"}| Field | Meaning |
|---|---|
status |
error, or action_required when the CLI stopped to ask (for example, for --yes). |
reason |
A stable code. Branch on it, not on message. |
message |
One line. |
hint |
How to fix it, when known. |
next |
Commands to run next, each with when. They never carry a credential flag. |
userActionRequired |
true when a person, not the agent, has to act. |
choices |
Valid values, when the error is a bad choice. |
data |
Values from the server or your input, such as a validation result. |
command, cliVersion, invocationId |
Which command failed, the CLI version, and an id for this run. |
reason is one of: usage, unknown_command, config_not_found, config_invalid, validation_failed, build_failed, auth_required, auth_invalid, forbidden, not_found, conflict, version_exists, registry_read_failed, vault_unreachable, orchestrator_error, ddc_error, network, confirmation_required, input_required, release_blocked, checks_failed, run_failed, run_timeout, partial_read, backend_unsupported, internal, interrupted. mk schema error prints the object’s schema.
In text mode the same error prints its message, hint, and next commands on stderr.
Exit codes
| Code | Meaning |
|---|---|
0 |
Success. |
1 |
Failure: a validation, request, or run failed. Any HTTP 4xx or 5xx exits 1. |
2 |
Usage error, a confirmation needed (action_required), or cancelled. |
4 |
Authentication missing or rejected. |
130 |
Interrupted (Ctrl-C) while mk run or mk runs logs --follow waits. The run itself goes on. |
MK_* variables
| Variable | Effect |
|---|---|
MK_FORMAT |
Default output format: text, json, or ndjson. |
MK_AGENT |
Default --agent-mode: auto, yes, or no. |
MK_NON_INTERACTIVE |
1: never prompt, as in CI. |
MK_NO_UPDATE_NOTIFIER |
Set: no “newer version” notice. The notice goes to stderr, in a terminal only, at most once a day. |
NO_COLOR turns off color. Credentials and endpoints use MANYKIND_* variables, below.
Environments
--env dev|stage|prod, or $MANYKIND_ENV. Default dev.
--env |
Storage network (--preset) |
|---|---|
dev |
DEVNET |
stage |
TESTNET |
prod |
MAINNET |
The environment also selects the platform API for deploy, the marketplace for publish, and the endpoints written into widgets. Specific flags (--preset, --endpoint, --marketplace) override single values.
Credentials
| Variable | Flag | Used by |
|---|---|---|
MANYKIND_DDC_ACCESS_TOKEN |
--access-token |
push, widget push, cubby push: a storage access token from ROC (Settings → Access → DDC access token). |
MANYKIND_DDC_SECRET_PHRASE |
--secret-phrase |
Same commands: the bucket owner’s sr25519 phrase, instead of a token. |
MANYKIND_DDC_SUBJECT_PHRASE |
--subject-phrase |
The phrase of the key a token was issued to, when the token names one. |
MANYKIND_ACCESS_TOKEN |
--access-token |
deploy, publish, eval run, run, runs, vault inspect: the CLI access token from ROC (Settings → Access → CLI access token). |
MANYKIND_VAULT_TOKEN |
--vault-token |
push --vault, vault inspect. |
MANYKIND_KEYSTORE, MANYKIND_KEYSTORE_PASSWORD |
--keystore, --password |
run, runs, vault inspect, eval: your wallet keystore (ed25519). |
MANYKIND_SECRET_PHRASE |
--secret-phrase |
Same commands: your wallet phrase, instead of a keystore. |
MANYKIND_VAULT_ID |
--vault |
run, runs, vault inspect, eval: the vault. |
MANYKIND_AS_PUBKEY |
--as |
run, runs: the Agent Service the workflow belongs to. |
MANYKIND_VAULT_SECRET_PHRASE |
--secret-phrase |
push --vault: your wallet phrase (used as ed25519). |
MANYKIND_ENDPOINT |
--endpoint |
deploy: platform API base URL. |
MANYKIND_MARKETPLACE_URL |
--marketplace |
publish. |
Prefer environment variables to flags: a secret on the command line stays in shell history and is visible in the process list. A push needs exactly one of a phrase or a token.
mk help
mk help <command> # mk help push, mk help eval runmk help "<task>" # mk help "deploy a workflow"Offline, no credentials. Words that name a command print its help, the same as mk <command> --help. Other words are a task: it ranks commands by their names, descriptions, flags, and examples. --limit <n> (default 5) caps the list. With no words it prints the root help.
$ mk help start a workflow runCommands for "start a workflow run", best match first:
mk run Run a workflow once against a vault, wait for it, and print its outcome, steps and token usage Example: mk run triage --input fixtures/hello.json --vault v-123 --yes …JSON: { items: [{ command, synopsis, description, example, score }] }. An empty list still exits 0.
mk init
mk init [dir]Scaffolds a hello-world agent: manykind.config.ts, src/agent.ts, migrations/, deployments/, a widget, a test, and, unless --no-ai, AGENTS.md, CLAUDE.md, and .claude/.
| Flag | Default | Meaning |
|---|---|---|
--name <alias> |
slug of the directory | Agent alias. |
-y, --yes |
— | Accept all defaults. |
--pm <manager> |
— | pnpm, npm, yarn, or bun. |
--install |
off | Install dependencies. |
--no-git |
— | Skip git init. |
--no-ai |
— | Skip the AI assistant files. |
--force |
— | Scaffold into a non-empty directory. |
--template <name> |
hello-world |
Template. |
mk build
Bundles every agent in manykind.config.ts and writes dist/<alias>/bundle.js, manifest.json, and widgets/<id>/ (runtime vendored and manifest injected).
| Flag | Default | Meaning |
|---|---|---|
--config <path> |
manykind.config.ts |
Config file. |
--out <dir> |
dist |
Output directory. |
--env <env> |
dev |
Endpoints written into widget manifests. |
--as-pubkey <hex> |
— | Agent Service pubkey written into widget manifests’ agent id. |
mk build runs the mk validate checks first and builds nothing when one fails. Build checks are listed in Write an agent.
$ mk build✓ Built ticket-triage: dist/ticket-triage/bundle.js (57093 bytes)✓ Wrote dist/ticket-triage/manifest.jsonmk validate
Checks the project offline and lists every problem at once, instead of stopping at the first: workflow graphs, source rules over every file the entries reach, engagements, targeting, schedules, and cubby migrations.
| Flag | Default | Meaning |
|---|---|---|
--config <path> |
manykind.config.ts |
Config file. |
--workflow <id> |
all | Only this workflow or agent. |
--strict |
— | Warnings fail too. |
--remote |
— | Also compare each cubby’s migrations with the declaration the bucket serves (read-only). Needs --bucket. |
--bucket <numericId> |
— | With --remote: the bucket the service publishes to. |
--env <env>, --cdn <url> |
dev, from --env |
With --remote: where to read the declarations. |
$ mk validatewarning manykind.config.ts ticket-triage: declares no requiredScopes, so it can only be connected into the "default" scope (General in ROC) [required-scopes-default]0 errors, 1 warningEach issue has a severity, a stable code (in brackets), a message, and where known its file, line, workflow, and step. JSON: { ok, errors, warnings, issues: [{ severity, code, message, file?, line?, column?, workflow?, node?, path?, hint? }] }. Exits 0 with no errors (with --strict, no warnings either), else 1 with reason validation_failed and the result in data.
mk typegen
Fetches each declared model’s model.json and each peer in uses, then writes .manykind/generated.d.ts and manykind.lock.json.
| Flag | Default | Meaning |
|---|---|---|
--config <path> |
manykind.config.ts |
Config file. |
mk inspect
mk inspect dist/<alias>Prints each engagement and checks that the bundle exports every handler the manifest routes to. Exits 1 with reason validation_failed when a handler is missing, so you can run it in CI.
mk schema
mk schema # list the schemasmk schema workflow # print onePrints a JSON Schema (draft 2020-12), offline. Use it to check a shape before you write it, instead of guessing.
| Name | Describes |
|---|---|
workflow |
A workflow graph: steps and edges. |
workflow-spec |
The input to defineWorkflow. |
step, edge |
One step, one edge. |
connector |
A connector trigger. |
cubby |
A cubby declaration. |
config |
The input to defineAgent. |
step-field, step-response |
A field a person fills in on a human step, and their answer. |
manifest |
The manifest.json mk build writes. |
error |
The error object and its reason values. |
cli.<command> |
What a command prints in JSON mode, for example cli.push, cli.widget.push, cli.runs.list. |
--out <file> writes it to a file. An unknown name exits 1 with reason not_found and the closest names in next.
mk push
Uploads the built agent in dist/ to a bucket you can write, or through vault-api into an organization vault, or registers an A2A agent you run elsewhere (--kind external).
mk push --bucket <bucketId> --as-pubkey <agentServicePubkey>mk push --vault <vaultId> --vault-scope <scope>mk push --kind external --card <url> --bucket <bucketId> --as-pubkey <agentServicePubkey>| Flag | Applies to | Default | Meaning |
|---|---|---|---|
--kind <kind> |
all | internal |
internal pushes the bundle in dist/; external registers an A2A agent. |
--bucket <id> |
bucket push, external | — | Storage bucket id (decimal). |
--as-pubkey <hex> |
all | config value | Agent Service pubkey; forms the agent id <pubkey>:<alias>. |
--agent <id> |
internal | the only built agent | Which dist/<id>/ to push. |
--out <dir> |
internal | dist |
Build output directory. |
--vault <vaultId> |
internal | — | Publish into this organization vault through vault-api. Needs --vault-scope. |
--vault-scope <scope> |
--vault |
— | Scope to publish from. The alias is bound to the scope it is first published from. |
--vault-api <url> |
--vault |
environment’s vault API | vault-api base URL. |
--vault-token <token> |
--vault |
$MANYKIND_VAULT_TOKEN |
Wallet-api bearer token. |
--card <url> |
external (required) | — | A2A Agent Card URL. A bare origin gets /.well-known/agent-card.json. |
--alias <name> |
external | slug of the card name | Registry alias; no :. |
--agent-version <semver> |
external | 1.0.0 |
Version to register. |
--scope <name...> |
external | default |
Scopes the agent asks for. |
--idle-timeout <duration> |
external | 30m |
How long a conversation survives without events. 0 is refused. |
--secret-phrase <phrase> |
all | env | Bucket owner’s phrase, or with --vault your wallet’s phrase. |
--access-token <token> |
bucket push, external | $MANYKIND_DDC_ACCESS_TOKEN |
Storage access token. |
--subject-phrase <phrase> |
bucket push, external | $MANYKIND_DDC_SUBJECT_PHRASE |
Phrase for a token that names a subject. |
--env <env> |
all | dev |
Environment. |
--endpoint <url> |
bucket push, external | from --env |
Blockchain RPC endpoint. |
--preset <name> |
bucket push, external | from --env |
MAINNET, TESTNET, or DEVNET. |
--cdn <url> |
bucket push, external | from preset | CDN endpoint. |
--dry-run |
all | — | Print what would be uploaded and where. Reads local files only: no credentials, no requests. |
--yes |
internal | — | Required when nobody can be asked: a push moves latest. |
A flag that belongs to the other kind or destination is refused by name rather than ignored. Before uploading with a token, mk push checks that the token chains to the bucket’s on-chain owner and that it has not expired; see Team.
On success it prints the agent id, bucket, bundle CID, manifest CID, version CID, uploaded widgets, and the cubbies it declared.
mk widget push
Publishes a built widget subproject under the bucket’s widgets root. Run it in the widget’s directory after its own build.
| Flag | Default | Meaning |
|---|---|---|
--bucket <id> |
required | Storage bucket id. |
--dir <path> |
current directory | The widget subproject. |
--out <dir> |
dist |
Build output within it. |
--widget-id <id> |
manykind.id or package name |
Registry id. |
--widget-version <semver> |
package version | Version. |
--as-pubkey <hex> |
— | Agent Service the widget belongs to; written into the entry as <pubkey>:<id>. |
--secret-phrase, --access-token, --subject-phrase |
env | Credentials. |
--env, --endpoint, --preset, --cdn |
from --env |
Network and endpoints written into the widget. |
--dry-run |
— | Print what would be uploaded; send nothing, no credentials needed. |
The manykind block of package.json declares the widget (id, name, entry, scope, cubbyAlias, queries, events, kind, config). See Build a widget.
mk cubby push
Publishes cubbies/<alias>/*.sql declarations to the bucket. Creates no database: the platform applies them the first time an agent touches the cubby in a vault.
| Flag | Default | Meaning |
|---|---|---|
--bucket <id> |
required | Storage bucket id. |
--dir <path> |
./cubbies |
One subdirectory per cubby. |
--alias <name> |
all | Push only this cubby. |
--cubby-version <semver> |
0.1.0 |
Version for each declaration. |
--secret-phrase, --access-token, --subject-phrase |
env | Credentials. |
--env, --endpoint, --preset, --cdn |
from --env |
Network. |
--dry-run |
— | Print the declarations that would be published; send nothing, no credentials needed. |
See Cubby schema and migrations.
mk deploy
mk deploy [release]Without release, applies every record in deployments/ as one set: PUT /api/v1/agents/<agentId>/deployments. With a workflow release X.Y.Z, makes that release live: shows its checks, points the default deployment at it, then moves the workflow’s latest to it. Deploying an older release is a rollback. See Release and deploy.
| Flag | Default | Meaning |
|---|---|---|
--env <env> |
dev |
Environment. |
--endpoint <url> |
$MANYKIND_ENDPOINT, then from --env |
Platform API. |
--agent <id> |
the only built agent | Which dist/<id>/ to read identity from. |
--as-pubkey <hex> |
manifest value | Agent Service pubkey. |
--access-token <token> |
$MANYKIND_ACCESS_TOKEN |
CLI access token. |
--version <v> |
— | Override version in every record (latest allowed). |
--deployments <path> |
deployments |
A folder, or one file holding a set or a record. |
--out <dir> |
dist |
Build output. |
--author <who> |
git user.email |
Audit author. |
--note <text> |
— | Audit note. |
--dry-run |
— | Compare the set with what is live and print the changes; apply nothing. |
--header <k:v> |
— | Extra request header; repeatable. |
--yes |
— | Required when nobody can be asked. |
Record format: Push and deploy.
--dry-run reads the live deployment set (read-only, so it needs the access token) and prints what applying would change:
$ mk deploy --dry-runDry run of mk deploy: <agentServicePubkey>:ticket-triage (dev), live revision 3; 2 changes, nothing sent ~ update default: 0.1.0 (priority 99, weight 1) → latest (priority 99, weight 1) + add sandbox-canary: 0.2.0 (priority 10, weight 1, when vault.scope == 'sandbox')JSON: { dryRun, mode: "folder", agent, env, revision: { current }, changes: [{ op, deployment, from?, to? }], warnings }, where op is add, update, remove, or unchanged. If the live set cannot be read, it exits 1 with reason registry_read_failed; it never compares against an empty set.
With a release, also:
| Flag | Default | Meaning |
|---|---|---|
--accept-warnings |
— | Deploy a release whose AI review warned without asking (CI). On a terminal, it asks. |
--dry-run |
— | Print what would change: { dryRun, mode: "release", agent, release, from: { version, cid }, to: { version, cid }, movesLatest, review: { warnings }, wouldPrompt }. |
--json |
— | Print JSON. |
--bucket <numericId> |
the built manifest’s | Storage bucket the workflow is published in. |
--cdn <url> |
$MANYKIND_DDC_CDN, then from --env |
Storage content gateway. |
--secret-phrase <phrase> |
$MANYKIND_DDC_SECRET_PHRASE |
Bucket owner’s phrase, to move latest. |
--ddc-access-token <token> |
$MANYKIND_DDC_ACCESS_TOKEN |
Storage access token from the bucket owner, to move latest. |
--vault <vaultId> |
— | The workflow is published in this organization vault: move latest through the vault (with --vault-scope). |
mk deploy <release> refuses when another deployment record would keep serving default traffic.
mk release
mk release [version] --title <text> [--notes <text> | --notes-file <file>] [--skip-review]Checks the built workflow and publishes it as a numbered release: an AI review (never blocks) and every dataset marked Required for release, run against a check candidate 0.0.0-c.<hash>. Publishes only if every required dataset passed; exits 1 otherwise. The release is not deployed and latest does not move. See Release and deploy.
| Flag | Default | Meaning |
|---|---|---|
[version] |
the patch after the newest release | X.Y.Z. An existing version is refused. |
--title <text> |
the last commit’s subject | What this release is. |
--notes <text> / --notes-file <file> |
commit subjects since the previous release | Release notes. |
--skip-review |
— | Skip the AI review (a cached one for this graph is kept). Required datasets cannot be skipped. |
--review-model <key> |
$MANYKIND_REVIEW_MODEL |
Model for the AI review, bucket/name/version. |
--inference-key <key> |
$MANYKIND_INFERENCE_KEY |
Inference key the AI review is billed to. |
--evals-vault <id> |
$MANYKIND_VAULT_ID, then the wallet’s own |
Vault the workflow runs in, where its datasets live. |
--scope <scope> |
the workflow’s requiredScopes, else default |
Vault scope the workflow runs in. |
--timeout <ms> |
300000 |
How long one experiment run may take. |
--access-token <token> |
$MANYKIND_DDC_ACCESS_TOKEN |
Storage access token from the bucket owner. |
--vault <vaultId>, --vault-scope <scope> |
— | Publish into an organization vault instead of writing the bucket directly. |
--json |
— | Print JSON. |
It also takes --env, --agent, --out, --as-pubkey, --bucket, --cdn, and the wallet flags --keystore/--password or --wallet-phrase for the vault.
| Command | Does |
|---|---|
mk release list |
Releases, newest first, with their checks and what is live. |
mk release show <version> |
One release: who made it, its notes, AI review, and experiments. |
mk release diff <from> <to> |
Steps added, removed, and changed between two releases. |
mk check <version> |
Runs the release checks on an existing release without changing it. |
All take --json.
mk run
mk run <workflowId> --input <file|-> --vault <vaultId> [--yes]mk run <workflowId> --case <dataset>:<caseId> --vault <vaultId> [--yes]Runs a workflow once in a vault, waits for it to end, and prints its outcome, each step, and the tokens it used. The input is a JSON file (or - for stdin) holding an eval case or the bare workflow.start payload; --case takes a dataset case’s input instead.
| Flag | Default | Meaning |
|---|---|---|
--input <file> |
— | Input fixture, or - for stdin. |
--case <dataset:caseId> |
— | Use a dataset case’s input. |
--vault <id> |
$MANYKIND_VAULT_ID, then the wallet’s own |
Vault the workflow runs in. |
--scope <scope> |
the workflow’s requiredScopes, else default |
Vault scope. |
--as <pubkey> |
$MANYKIND_AS_PUBKEY, then the built manifest’s |
Agent Service the workflow belongs to. |
--version <v> |
the live version | Run another version through a temporary deployment, removed afterwards. |
--timeout <dur> |
300s |
How long to wait for the end. |
--poll-interval <dur> |
2s |
How often to read the run’s events. |
--no-wait |
— | Return { runId, context } as soon as the run starts. |
--dry-run |
— | Print the workflow.start event and where it would go; send nothing. |
--yes |
— | Required when nobody can be asked: steps can message people and call connectors. |
--env, --vault-api, --orchestrator |
from --env |
Endpoints. |
--keystore/--password, --secret-phrase, --access-token |
env | A wallet (ed25519), or the CLI access token. |
JSON: { runId, context, workflow, version, vault, status, startedAt, endedAt, durationMs, output, error?, waiting?, steps, usage }. --format ndjson streams one line per step as it finishes, then the result.
status |
Exit | Meaning |
|---|---|---|
done |
0 |
The run finished; output is its result. |
waiting |
0 |
The run is parked on a person; waiting names the step and the question. |
failed |
1 |
Reason run_failed; error names the step. |
timeout |
1 |
Reason run_timeout; the run may still finish. next has the mk runs logs command to follow it. |
Ctrl-C stops waiting (exit 130); the run goes on.
mk runs
Reads workflow runs back. They take the same vault and credential flags as mk run.
| Command | Does |
|---|---|
mk runs list --workflow <id> |
Runs, newest first. --status running|waiting|done|failed|stalled, --since <24h|ISO time>, --limit <n> (default 20), --cursor <next_cursor>. History reaches back as far as the workflow runner keeps runs. |
mk runs get <runId> |
One run in mk run’s shape: outcome, steps, version, and usage. --workflow <id> if it cannot be read from the run. |
mk runs logs <runId> |
One line per event, and with --tasks per task log line, in time order. --follow keeps reading until the run ends (exit 1 if it failed); --since <cursor> starts after an earlier line; --poll-interval <dur> (default 2s). |
mk runs logs prints JSON lines { ts, kind, type, node?, jobId?, taskId?, level?, message?, payload?, cursor }, where kind is event or task_log.
mk vault inspect
mk vault inspect --vault <vaultId> [--section agents,workflows]A read-only snapshot of what a vault holds. Run it before changing a vault, so you start from what is there.
| Flag | Default | Meaning |
|---|---|---|
--vault <id> |
$MANYKIND_VAULT_ID |
The vault. Required. |
--section <list> |
all but tables |
Comma-separated: scopes, agents, workflows, schedules, cubbies, tables, connections, webhooks, versions, datasets. tables adds each cubby’s tables and columns. |
--agent <id> |
— | Only this agent or workflow (its id, or the alias). |
--vault-token <token> |
$MANYKIND_VAULT_TOKEN |
Wallet-api token. |
--keystore/--password, --secret-phrase, --access-token |
env | A wallet, or the CLI access token (which also reads deployments). |
--env, --vault-api, --orchestrator, --cdn |
from --env |
Endpoints. |
Workflows include their deployments when an access token is at hand. Webhooks list key ids and names, never key material. A section that cannot be read is listed in errors and left out, and the command exits 1 with reason partial_read: a section is never shown as empty because it could not be read.
mk version
Prints the CLI version, the newest published one, the Node version, and where credentials would come from: { version, commit, latest, updateAvailable, node, auth: { source } }. --offline skips the registry lookup. mk --version prints the version alone.
mk dev
mk dev [widgetId] --as-pubkey <agentServicePubkey>Serves a widget from manykind.config.ts with the runtime injected, and reloads the browser on change.
| Flag | Default | Meaning |
|---|---|---|
[widgetId] |
first declared widget | Widget to serve. |
--config <path> |
manykind.config.ts |
Config file. |
--port <n> |
a free port | Listen port (0–65535). |
--host <host> |
127.0.0.1 |
Listen host. |
--env <env> |
dev |
Endpoints written into the manifest. |
--as-pubkey <hex> |
— | Needed for connectAgent() and query(). |
--no-watch |
— | Do not watch for changes. |
mk publish
Sends the agent’s card (not its manifest) to the marketplace listing. Not needed to deploy, connect, or run an agent.
| Flag | Default | Meaning |
|---|---|---|
--env <env> |
dev |
Environment. |
--marketplace <url> |
$MANYKIND_MARKETPLACE_URL, then from --env |
Marketplace base URL. |
--agent <id> |
the only built agent | Which dist/<id>/. |
--out <dir> |
dist |
Build output. |
--as-pubkey <hex> |
config value | Agent Service pubkey. |
--access-token <token> |
$MANYKIND_ACCESS_TOKEN |
CLI access token. |
--dry-run |
— | Print what would be published; send nothing, no credentials needed. |
mk eval
Workflow evaluations: datasets, experiments, comparisons. Subcommands: datasets, create <dataset>, pull <dataset>, push <dataset>, import <dataset>, capture <dataset> <context...>, archive <dataset> <caseId>, versions <dataset>, check <dataset>, run <dataset>, experiments [dataset], show <experiment>, compare <base> <candidate>, baseline <dataset> [experiment], cancel <experiment>, cases <experiment> [--failed]. Flags and usage: Eval reference and the evaluate pages — Datasets and Experiments.