Projects

Use the khotan CLI to operate Khotan projects. Add --json for machine-readable output; results go to stdout, diagnostics to stderr.

Commands

khotan projects attach

Usage: khotan projects attach <projectId> --resource-kind <string> --resource-id <string>

Attach an app, pipeline, or database. A resource belongs to at most one project.

Arguments & options:

khotan projects create

Usage: khotan projects create --name <string> [--slug <string>] [--description <string>]

Create a project and its root goal node. The slug is derived from the name when omitted.

Arguments & options:

khotan projects delete

Usage: khotan projects delete <projectId>

Soft-delete a project and free its slug. The linked tracker project is retained as the record of work done.

Arguments & options:

Safety: destructive — prompts for confirmation in a terminal and refuses in non-interactive sessions unless you pass --yes.

khotan projects detach

Usage: khotan projects detach <projectId> --resource-kind <string> --resource-id <string>

Remove the membership. The underlying resource is untouched.

Arguments & options:

khotan projects get

Usage: khotan projects get <projectId>

Fetch one project by id or slug.

Arguments & options:

khotan projects linear bind

Usage: khotan projects linear bind <projectId> --linear-project-id <string>

Bind this project to an existing Linear project. A new project mints its own on first push.

Arguments & options:

khotan projects linear options

Usage: khotan projects linear options [--query <string>]

List Linear projects this workspace can bind a Khotan project to.

Arguments & options:

khotan projects list

Usage: khotan projects list

List the workspace's projects with their current spec revision and resource count.

khotan projects members

Usage: khotan projects members <projectId>

List the apps, pipelines, and databases attached to a project.

Arguments & options:

khotan projects metrics delete

Usage: khotan projects metrics delete <projectId> <metricKey>

Permanently delete a metric and all of its points.

Arguments & options:

Safety: destructive — prompts for confirmation in a terminal and refuses in non-interactive sessions unless you pass --yes.

khotan projects metrics get

Usage: khotan projects metrics get <projectId> <metricKey> [--range <string>]

Read one metric's points over a range, with the range value, the preceding range's value, and the change.

Arguments & options:

khotan projects metrics list

Usage: khotan projects metrics list <projectId>

List a project's metrics with their attributes, curation, and last-reported time.

Arguments & options:

khotan projects metrics report

Usage: khotan projects metrics report <projectId> --metrics <json>

Create or update metrics and set their points. Idempotent: points are keyed by bucket, category, or point id, so a retried report never double-counts. Curation made in Khotan is never overwritten.

Arguments & options:

khotan projects metrics update

Usage: khotan projects metrics update <projectId> <metricKey> [--display-name <string>] [--position <number>] [--hidden] [--headline]

Change a metric's display name, position, hidden flag, or headline flag. A project has at most three headline metrics.

Arguments & options:

khotan projects node create

Usage: khotan projects node create <projectId> --parent-id <string> --title <string> [--body <string>] [--position <number>]

Create a child under an existing spec node — a delivery phase under Milestones, or an item under a phase.

Arguments & options:

khotan projects node delete

Usage: khotan projects node delete <projectId> <nodeId>

Soft-delete a spec node and its descendants. The goal node cannot be deleted.

Arguments & options:

Safety: destructive — prompts for confirmation in a terminal and refuses in non-interactive sessions unless you pass --yes.

khotan projects node update

Usage: khotan projects node update <projectId> <nodeId> [--title <string>] [--position <number>] [--parent-id <string>] [--start-date <string>] [--target-date <string>] [--depends-on-node-id <string>]

Update a node's title, sibling position, parent, or milestone plan dates.

Arguments & options:

khotan projects revision

Usage: khotan projects revision <projectId> <revision>

Fetch one committed revision with its per-document diff and the cause/effect provenance edges attached to it.

Arguments & options:

khotan projects revisions

Usage: khotan projects revisions <projectId> [--limit <number>]

List committed spec revisions newest-first, with actor, timestamp, and change summary.

Arguments & options:

khotan projects spec

Usage: khotan projects spec <projectId> [--altitude <string>]

Read the spec tree at one altitude: high renders the goal, medium adds phases, low adds items and their mirrored tracker issues.

Arguments & options:

khotan projects update

Usage: khotan projects update <projectId> [--name <string>] [--description <string>] [--lifecycle <string>] [--tags <a,b>]

Update a project's name, description, lifecycle, or tags. Archive with lifecycle archived. An omitted field stays unchanged.

Arguments & options: