Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to main content

HardKAS CLI Reference

These pages are generated from the Commander command tree of packages/cli by pnpm docs:generate-apps-cli, and pnpm docs:check-apps-cli fails when one no longer matches it: nothing here is written by hand. Hidden commands (internal, unavailable or disabled ones) are not listed. The same reference on one page is docs/reference/cli.md in the repository.

Map of the CLI​

The CLI is organized into strict functional domains.

How to read this reference​

Every command page is divided into two distinct boundaries to prevent drift:

  1. Generated Structural Reference: Automatically extracted from the Commander AST (Arguments, Options, Defaults).
  2. Curated Semantic Metadata: Editorial boundaries curated to explain Evidence, Side Effects, and Identity Contracts.

Artifact Handles (Identity Contract)​

When a command accepts an artifact identifier (e.g. hardkas explain <artifact>), you must provide either:

  1. An explicit filepath (e.g., ./.hardkas/artifacts/plans/my-plan.json)
  2. The exact canonical artifactId (a 64-character hex string: an artifact's artifactId is its contentHash)

A network txId is not an artifact handle: a bare txId is refused (NAMESPACE_REQUIRED). Name it with the command's own option instead, for example hardkas explain --tx <txId>.

Side Effect Notation​

Commands that mutate your local workspace, broadcast to a network, or expose sensitive material (like private keys) are explicitly marked in the Side Effects semantic block. If a command does not have this block, it is considered a read-only operation.