hikyo
Documentation

CLI help

The exact hikyo help output for this release.

hikyo - environment and secret management

authentication:
  hikyo login <instance-url> [--device] [--provider KIND:SLUG] [--name REF] [--tls-mode spki|system-ca] [--trust-file PATH]
  hikyo login <instance-url> --local --as USER [--name REF] [--socket PATH] [--tls-mode spki|system-ca] [--trust-file PATH]
                                                 terminal-native local login
      Use browser login (default) or --device for enrolled TOTP or passkeys.
  hikyo logout [--instance REF]                    revoke the stored session
  hikyo whoami [--instance REF] [-o table|json]    describe the stored session

accounts:
  hikyo account establish-credential --instance <url|ref> [--as USER] [--socket PATH] [--trust-file PATH]
  hikyo account password set|change
      aliases: set the first password or replace an existing one
  hikyo account factor enrol-totp [--output-file PATH | --dangerously-print]
  hikyo account factor confirm-totp
  hikyo account factor step-up
  hikyo account passkey enrol|list|remove          browser-only; refused on the terminal
  hikyo account recovery-codes regenerate [--output-file PATH | --dangerously-print]
  hikyo account recovery begin --instance <url|ref> --as USER [--socket PATH] [--trust-file PATH]
      [--output-file PATH | --dangerously-print]
  hikyo account reset-credential <principal> [--output-file PATH | --dangerously-print]

contexts:
  hikyo context create <name> --instance <url|ref> [--org O] [--project P] [--env E]
      [--socket PATH] [--tls-mode spki|system-ca] [--trust-file PATH]          authenticated local transport or provisioned trust
  hikyo context list [-o table|json]
  hikyo context show <name> [-o table|json]
  hikyo context delete <name>
  hikyo context delete --instance <ref>            forget a trust-store entry
  hikyo config get <key> [--instance REF]
  hikyo config set <key> <value> [--instance REF]
      the one key is reauth.method: auto (default) asks for an authenticator code first and
      opens the browser when a passkey is required or no code is possible; browser opens the
      browser for every reauthentication window that has a browser handoff. A purpose with no
      handoff is refused, and account-security proofs (for example access registration set|delete)
      still ask for a code.

  New HTTPS interactive trust requires --tls-mode spki or --tls-mode system-ca.
  Existing stored or provisioned trust does not require the flag.
  Any command that reauthenticates accepts --approve-in-browser to use the browser approval for the
  reauthentication windows of that one invocation.

managed configuration:
  hikyo instance-config status [-o table|json]
  hikyo instance-config adopt [--yes]
                                                 preview or adopt effective settings
  hikyo instance-config apply --revision N --expected-generation N
      [--idempotency-key KEY] [--confirm-restored-credentials]
  hikyo instance-config test-email --revision N --expected-generation N --to ADDRESS

diagnostics:
  hikyo audit query (--instance-scope | --org O [--project P [--env E]]) [-o table|json]
      [--limit N] [--after-seq N --to-seq N]
      Filters: --from/--to RFC3339, --actor ID, --actor-name GLOB,
      --operation GLOB, --outcome VALUE (repeatable), --object-type GLOB,
      --object-id GLOB, --correlation-id ID. Login failures are instance events.
  hikyo audit export (--instance-scope | --org O [--project P [--env E]])
      emits JSONL to stdout; instance collection requires a human session
      Filters: --from/--to RFC3339, --actor ID, --actor-name GLOB,
      --operation GLOB, --outcome VALUE (repeatable), --object-type GLOB,
      --object-id GLOB, --correlation-id ID. Login failures are instance events.
  hikyo doctor [--instance REF] [-o table|json] [--evidence]
                                                 report health or JSON collection evidence
  hikyo update channel stable|nightly|off           choose local release track
  hikyo update check                                check the selected release track now

hierarchy:
  hikyo org list [--origin manual|registration] [-o table|json]
  hikyo org show <org> [-o table|json]
  hikyo org create --name <name>
  hikyo org rename <org> --name <new-name>
  hikyo org delete <org>
  hikyo org retention get|set --org <org> [--max-age 2160h --last-revisions 10 | --unlimited]
  hikyo project list|show|create|rename|delete      --org selects the organisation
  hikyo project create --name <name>
  hikyo project rename <project> --name <new-name>
  hikyo project delete <project> --confirm <project-name>   irreversible: shreds the key
  hikyo project retention get|set --org <org> --project <project> [--max-age 720h --last-revisions 10 | --inherit]
  hikyo project capacity get|set --org <org> --project <project> [--max-keys <n> | --inherit]
  hikyo env list|show|create|rename|reorder|delete   --org/--project select the project
  hikyo env param list --env <id>
  hikyo env param add --env <id> --name <NAME> --pattern <RE2>
  hikyo env param delete --env <id> --name <NAME>
  hikyo env create --name <name> [--clone-from <env>]   clone copies that env's values
  hikyo env rename <env> --name <new-name>
  hikyo env reorder <env-id,env-id,...>             the whole ordered set, once each
  hikyo folder list|show|create|rename|delete       --org/--project select the project
  hikyo folder create --path <path>
  hikyo folder rename <folder> --path <new-path>
  hikyo key list|show|create|rename|declare|reclassify|update|set-group|delete
  hikyo key create --name <NAME> --classification secret|config --declaration <json>
      [--required-in all|none|<ids>] [--forbidden-in all|none|<ids>] [--group G]
      [--personal-required-in none|<ids>]
      [--folder P] [--description D] [--deprecated] [--deprecation-note N]
  hikyo key update <key> [--folder P] [--description D] [--deprecated] [--deprecation-note N]
      [--confirm-widening <principal>]...
  hikyo key declare <key> --declaration <json> [--required-in all|none|<ids>]
      [--forbidden-in all|none|<ids>] [--personal-required-in none|<ids>]
  hikyo key reclassify <key> --classification secret|config    the ceremony, never update
  hikyo key group list|show|create|rename|delete
  hikyo key group create --name <name>
  hikyo key group rename <group> --name <new-name>

  key create, rename, declare and update, and key group create and rename,
  take --acknowledge <token,token>: the secret-scanning override tokens a
  prior refusal printed, once you have reviewed them.

values:                                            --env selects the environment
  hikyo values list [--reveal] [--output-file PATH | --dangerously-print]
  hikyo values get <KEY> [--reveal] [--output-file PATH | --dangerously-print | --clipboard]
  hikyo values set <KEY> (--stdin | --value-file PATH)   stages; publish commits
  hikyo values set <KEY> --clear                    stages a clear to absent
  hikyo values set <KEY> ... --acknowledge <token,token>   keep-as-config tokens from a prior scanning warning
  hikyo values declare <KEY> --envs <env,env> (--stdin | --value-file PATH)
  hikyo values diff --left <env> --right <env> [--reveal] [--output-file PATH | --dangerously-print]
  hikyo values copy --from <env> --to <env,env> --keys <KEY,KEY> [--confirm-protected]
  hikyo values import --file <values-file> [--manifest <run-manifest.json>]
      [--overwrite KEY,KEY]                       strict: undeclared keys are refused
  hikyo values import --from-dotenv <.env>          stage a plaintext .env through the strict path
  hikyo values pending                              your drafts, and the ids to publish
  hikyo values publish --versions <id,id>           selective; closes over key groups
      [--preview-token T] [--confirm-protected <env,env>]
                                                 restore preview token; protected envs reviewed by automation
  hikyo values export [--format table|json|dotenv] [--revision N] [--reveal]
      [--param NAME=value ...]                    public parameters, never secrets
      [--output-file PATH | --dangerously-print]

import:                                            authors artifacts, then stops
  hikyo import --from <k8s|sops|vault|infisical> --project <p> --environment <e>
      --file <path> [--env <slug>] [--out-dir <dir>]
  hikyo import --from k8s --live --namespace <ns> [--name <secret>] [--kube-context <ctx>]
      --project <p> --environment <e> [--out-dir <dir>]
  hikyo import --from vault --live --mount <mount> [--path <prefix>] [--kv-version <1|2>]
      --project <p> --environment <e> [--out-dir <dir>]
  hikyo import --mapping <mapping.json> [--file <path>] [--out-dir <dir>]
      file-mode mappings require --file; live mappings reuse recorded selectors

  phase 1 emits a definitions bundle, a per-environment values file, mapping.json
  and run-manifest.json. Review the bundle, apply it, then run
  hikyo values import --manifest run-manifest.json, which refuses any key whose
  state moved since you reviewed it. --env names the SOURCE slice inside an
  export; --environment names the target. Nothing is renamed invisibly and
  nothing already set is overwritten without naming it.

definitions:                                       reviewable Git-managed catalogue flow
  hikyo definitions scaffold --from <.env>          offline: an additive bundle, every key config + TODO
  hikyo definitions export [--portable] [--output-file PATH] [--project P]
  hikyo definitions check --file PATH [-o table|json]
      exits 0 when equal, 1 when different, 2 on error
  hikyo definitions plan --file PATH [-o table|json]
  hikyo definitions apply --plan ID [--file PATH] [--allow-delete] [--confirm-widening <principal>]...
      [--commit C] [--ref R] [--actor A] [-o table|json]

secret scanning:                                   local only: nothing is sent to any server
  hikyo scan [PATH...] [-o table|json|sarif]        files and directories (default: .)
  hikyo scan --staged|--unstaged|--history          the index, the working tree, every commit
  hikyo scan --range A..B                           the commits of an explicit range
      [--config FILE] [--suppressions FILE] [--exclude-path GLOB]... [--exclude-rule ID]...
      [--timeout 10m]
      exits 0 clean, 1 findings, 2 usage or config, 4 refused or failed, 6 no git

  the ruleset is the server's value-entry ruleset. Output never carries the
  matched text; a finding is path:line, rule and fingerprint. Suppress one
  reviewed finding by fingerprint in .hikyo-scan.toml, or inline with
  "hikyo-scan:ignore <rule-id>" on that line. A budget exceeded refuses (4).

revisions:                                         --env selects the environment
  hikyo revision list [--limit N] [--before N]      lineage only, never values; one page per call
  hikyo revision show [<N>|latest]                  carries the change token
  hikyo revision rollback <N> [--key KEY]           stage a restore as ordinary drafts
  hikyo pin create --workload ID --revision N       create, re-pin, or renew
      [--expires-at RFC3339] [--override-schema]    default expiry 180 days; override pins past a schema failure
  hikyo pin list                                    show pins and expired status
  hikyo pin release <workload-principal>            release a durable pin
  hikyo approval policy list                        list change-approval policies
  hikyo approval policy create --min-approvals N    bind an approval policy to a project or env
      [--covers ENV] [--ttl SECONDS] [--allow-self-approval] [--disabled]
      [--approver principal:<id>|group:<groupId>:<bindingId>]... [--bypasser <id>]...
  hikyo approval policy update <policy>             replace an approval policy's fields and members
      (same flags as create)
  hikyo approval policy delete <policy>             delete an approval policy
  hikyo approval request list                       the environment's change-approval requests
  hikyo approval request approve <request>          approve a change-approval request
  hikyo approval request reject <request>           reject a change-approval request
  hikyo approval request merge <request>            merge an approved request via the publish path
  hikyo approval request bypass <request> --reason R emergency-bypass a request's quorum
  hikyo rotate-token-key --yes                      new token key; one full fetch, no restart wave
  hikyo rotate-scanning-key --yes                   new scanning key; every dismissal is dropped
  hikyo rotate-dek --instance-scope --yes           new instance DEK version (old stays readable)
  hikyo rotate-dek --org O --project P --yes         new project DEK version; follow with reencrypt
  hikyo rotate-master-key --yes                     new master; re-wrap every tier-3 key
  hikyo rotate-root-key --prepare|--verify|--finalize --yes  crash-safe root rotation, one phase per run
  hikyo reencrypt --org O --project P                complete a project rotate-dek; --instance-scope for instance
    --instance <ref> selects the server; --instance-scope selects its DEK, never --env.

adapters:
  hikyo adapter create --provider forgejo|github-actions|vault-kv --origin <https-origin> --env E --kind repository|organization|environment
      --owner <owner> [--repo <repo>] [--destination-environment <name>]
      (vault-kv: --origin https://vault:8200[/<namespace>] --mount <kv-v2-mount> --path <prefix>)
      [--visibility all|private|selected] [--selected-repository-ids <id,...>]
      --prefix <prefix> --keys <id,...> [--names <NAME,...>]
      [--include <glob,...>] [--exclude <glob,...>] [--classification secret|config]
      [--stdin | --value-file PATH] [--create-environment]
  hikyo adapter create --provider gitlab --origin <https-origin> --env E --kind project|group
      --owner <namespace-or-group-path> [--repo <project>] [--scope <environment-scope>]
      (project targets require --repo; group targets refuse it)
      [--protected] [--hidden] [--expand-variables]
      [--spki-pin <base64-sha256>] [--ca-bundle-file PATH] [--allow-personal-token]
      [--prefix <prefix>] --keys <id,...> [--names <NAME,...>] [--stdin | --value-file PATH]
  hikyo adapter create --provider aws-secrets-manager --origin https://secretsmanager.<region>.amazonaws.com
      --env E --kind json-object|per-key --owner <account-id> [--secret <name-or-path/>] [--kms-key <key>]
      [--aws-auth ambient|assume-role|web-identity] [--aws-role-arn <arn>] [--aws-external-id <id>]
      [--aws-session-seconds 900-3600] [--aws-region <region>]
      [--aws-sts-origin <https-origin>] [--prefix <prefix>] --keys <id,...> [--names <NAME,...>] [--stdin | --value-file PATH]
  hikyo adapter create --provider cloudflare --env E --kind workers-script --account <id> --script <name>
  hikyo adapter create --provider cloudflare --env E --kind pages-project --account <id> --pages-project <name>
      --destination-environment preview|production
      (both forms: every write is secret_text; one scoped API token)
      [--prefix <prefix>] --keys <id,...> [--names <NAME,...>]
      [--include <glob,...>] [--exclude <glob,...>] [--classification secret|config]
      [--stdin | --value-file PATH]
  hikyo adapter list [-o table|json]
  hikyo adapter show <adapter> [-o table|json]
  hikyo adapter update <adapter> --origin <https-origin> [--stdin | --value-file PATH]
      [--aws-auth ambient|assume-role|web-identity] [--aws-role-arn <arn>]
      [--aws-external-id <id>] [--aws-session-seconds 900-3600]
      [--aws-region <region>] [--aws-sts-origin <https-origin>]
  hikyo adapter update <adapter> --move <move-id> | --cancel-move
                                                   resume or cancel an attention-required origin move
  hikyo adapter update <adapter> --target <target> --env E --kind <kind>
      --owner <owner> [--repo <repo>] [--destination-environment <name>]
      [--visibility all|private|selected] [--selected-repository-ids <id,...>]
      [--secret <name-or-path/>] [--kms-key <key>]
      [--scope <environment-scope>] [--protected=true|false] [--hidden=true|false] [--expand-variables=true|false]
      --prefix <prefix> --keys <id,...> [--names <NAME,...>]
      [--include <glob,...>] [--exclude <glob,...>] [--classification secret|config]
  hikyo adapter delete <adapter> [--keep-remote]
  hikyo adapter credential set --adapter <adapter> [--stdin | --value-file PATH] [--move <move-id>]
      [--aws-auth ambient|assume-role|web-identity] [--aws-role-arn <arn>]
      [--aws-external-id <id>] [--aws-session-seconds 900-3600]
      [--aws-region <region>] [--aws-sts-origin <https-origin>]
  hikyo adapter credential revoke --adapter <adapter>
  hikyo adapter target add --adapter <adapter> --env E --kind <kind> --owner <owner>
      [--repo <repo>] [--destination-environment <name>]
      [--visibility all|private|selected] [--selected-repository-ids <id,...>]
      [--secret <name-or-path/>] [--kms-key <key>]
      [--scope <environment-scope>] [--protected=true|false] [--hidden=true|false] [--expand-variables=true|false]
      [--prefix <prefix>] --keys <id,...> [--names <NAME,...>]
      [--include <glob,...>] [--exclude <glob,...>] [--classification secret|config]
      [--create-environment]
  hikyo adapter target list --adapter <adapter>
  hikyo adapter target show <target> [--format detail|workflow]
  hikyo adapter target pause <target>                stop pushes; ledger and remote names kept
  hikyo adapter target resume <target>               queue one catch-up converge
  hikyo adapter target remove <target> [--keep-remote]
  hikyo adapter adopt --target <target> [--artifact <id>] <NAME>...
  hikyo adapter plan|sync|test --target <target>     sync is the idempotent resync
  hikyo file-target list [-o table|json]
  hikyo file-target create --env E --name <name> --sa <service-account> [--keys <id,...>]
      [--names <name,...>] [--include <glob,...>] [--exclude <glob,...>] [--classification secret|config]
                                                 bind a workload account to a pull-class file target
  hikyo file-target show <target> [-o table|json]
  hikyo file-target update <target> --expected-generation N [--keys ...] [--names ...]
      [--include ...] [--exclude ...] [--classification ...]
  hikyo file-target delete <target>                refused while the account has a live credential

  key selection (--names, --include, --exclude, --classification) resolves to
  explicit key ids when the target is saved; keys created later are not added.
  --create-environment is consent to create a missing GitHub environment and
  needs Administration:write on the credential.

  adapter credentials are read with terminal echo disabled, from stdin, or
  from --value-file. There is no credential-value argv flag.

  aws-secrets-manager is one-way and never reads a value back: json-object
  writes one secret holding a JSON object, per-key one secret per key.
  Static authentication requires the complete one-line JSON access descriptor
  (mode, access_key_id, secret_access_key, optional session_token and region)
  via the no-echo prompt, --stdin, or --value-file, without --aws-* flags.
  --aws-auth assembles only ambient, assume-role or web-identity descriptors.
  These modes use this server's AWS identity and need the node operator's
  HIKYO_ADAPTER_AWS_WORKLOAD_IDENTITY=allow. web-identity also needs the
  server to run with AWS_WEB_IDENTITY_TOKEN_FILE set. --aws-* flags also
  apply to adapter update --origin and adapter credential set.

dynamic secrets:
  hikyo dynamic-provider create --provider postgres --origin <postgres://user@host:port/db>
      --grant-role <role> [--tls-mode verify-full] [--stdin | --value-file PATH]
  hikyo dynamic-provider list [-o table|json]
  hikyo dynamic-provider show <provider> [-o table|json]
  hikyo dynamic-provider credential set --provider <provider> [--stdin | --value-file PATH]
  hikyo dynamic-provider credential revoke --provider <provider>
  hikyo dynamic-provider delete <provider> [--revoke-all]
  hikyo lease mint --provider <provider> --env E --ttl <duration>
      [--output-file PATH | --dangerously-print]
  hikyo lease list --env E [-o table|json]
  hikyo lease show <lease> --env E [-o table|json]
  hikyo lease renew <lease> --env E [--ttl <duration>]
  hikyo lease revoke <lease> --env E
  hikyo lease settle <lease> --env E

  the minted credential is shown exactly once, through the print triad (a
  controlling terminal, --output-file, or --dangerously-print); the admin
  provider credential is read like an adapter credential, never on argv.

scheduled credential rotation:
  hikyo rotation create --provider <provider> --key <password-key> --username-key <key>
      --interval <duration> --revocation-delay <duration> --env E
  hikyo rotation list --env E [--include-disabled] [-o table|json]
  hikyo rotation show <rotation> --env E [-o table|json]
  hikyo rotation pause <rotation> --env E [--expected-generation N]
  hikyo rotation resume <rotation> --env E [--expected-generation N]
  hikyo rotation release-hold <rotation> --env E [--expected-generation N]
  hikyo rotation delete <rotation> --env E [--expected-generation N] [--abandon]
  hikyo rotation run-now <rotation> --env E --confirm-destructive
      [--expected-generation N] [--skip-overlap]
  hikyo rotation runs <rotation> --env E [--limit N] [--after RUN] [-o table|json]

  a signed-in person holding edit, publish and reveal on both keys records the
  schedule and is kept as its authority. create, resume and run-now run the
  publish ceremony over both keys (an unattended publish can never run one
  itself); a protected environment or one under an approval policy is refused.
  run-now requests a run outside the schedule: the executor starts it with the
  same checks and authority as a scheduled run and prints its id; runs lists a
  rotation's runs, newest first, with phase and failure code only (no
  password or provider detail). run-now always needs --confirm-destructive, and
  --skip-overlap revokes the superseded credential right after the publish,
  so a consumer still on it loses access; the revoke records how many adapter
  (sync) targets had not converged to the new revision (NOT CONVERGED
  TARGETS), not counting machines that read the keys directly. delete
  refuses while a run is in flight; --abandon, for a signed-in person only,
  closes the unsettled runs instead and revokes nothing. Durations take h,
  m, s or d, e.g. 90d. Interval 1h to 90d and revocation delay 5m to 7d, the
  delay shorter than the interval. pause and delete do not revoke the
  credential already delivered; it stays valid
  until the CREDENTIAL EXPIRES time they print. delete keeps the rotation as
  history (list --include-disabled); no credential is stored. A restore holds
  every rotation it brings back: a held rotation starts no run and cannot be
  resumed or run now until release-hold (a person's act with resume's access
  and publish ceremony), and show, list and runs say so, with the time the
  delivered credential lapses. A held rotation also refuses delete and
  delete --abandon: release it first. release-hold changes nothing else; it
  never drops a superseded role, but it does let the executor drop lingering
  unpublished candidate roles; check hikyo rotation runs first.

ssh certificates:
  hikyo ssh-ca create <name> --env E [--algorithm ed25519|ecdsa-p256|rsa-3072]
      [--stdin | --key-file PATH]
  hikyo ssh-ca list|show <ca> --env E [-o table|json]
  hikyo ssh-ca delete <ca> --env E
  hikyo ssh-ca rotate <ca> --env E [--overlap DURATION] [--algorithm A]
      [--stdin | --key-file PATH]
  hikyo ssh-ca retire-key <ca> --key <key> --env E
  hikyo ssh-ca trusted-keys <ca> --env E
  hikyo ssh-ca krl <ca> --env E --output-file PATH
  hikyo ssh-profile create <name> --env E --ca <ca> --principal P...
      --key-algorithm A... --default-ttl D --max-ttl D [--requester ID...]
      [--source-address CIDR...] [--extension X... | --no-extensions]
      [--force-command CMD] [--disabled]
  hikyo ssh-profile update <profile> --env E [any create flag]
  hikyo ssh-profile list|show <profile> --env E [-o table|json]
  hikyo ssh-profile delete <profile> --env E [--revoke-issued]
  hikyo ssh-cert issue --profile <profile> --env E [--principal P...] [--ttl D]
      [--public-key-file PATH | --key-algorithm A --output-file PATH |
       --key-algorithm A --dangerously-print] [--cert-file PATH]
      [--source-address CIDR...] [--extension X... | --no-extensions]
  hikyo ssh-cert list|show <cert> --env E [-o table|json]
  hikyo ssh-cert revoke <cert> --env E

  a CA private key is read from stdin or a file, never argv, and never
  returned; a generated user key is shown exactly once through the print
  triad. Hosts trust "ssh-ca trusted-keys" (TrustedUserCAKeys) and refuse
  "ssh-ca krl" (RevokedKeys); refresh both on a timer.

transit (managed keys; key material never leaves custody):
  hikyo transit key create <name> --env E --algorithm xchacha20-poly1305|ed25519|mldsa65|hmac-sha256
      [--custody software] [--allow op,op] [--rotation-period 720h]
      [--caller principal=op,op]...
  hikyo transit key list --env E [-o table|json]
  hikyo transit key show <name> --env E [-o table|json]
  hikyo transit key configure <name> --env E [--min-encrypt-version N]
      [--min-decrypt-version N] [--rotation-period D|0] [--caller p=op,op]... [--clear-callers]
  hikyo transit key rotate|trim <name> --env E
  hikyo transit key disable|enable|retire|compromise|cancel-deletion <name> --env E
  hikyo transit key schedule-deletion <name> --env E [--delay 168h]
  hikyo transit encrypt <key> --env E (--stdin | --input-file PATH)
      [--aad-file PATH] [--key-version N]
  hikyo transit sign|hmac <key> --env E (--stdin | --input-file PATH) [--key-version N]
  hikyo transit decrypt <key> --env E (--stdin | --input-file PATH) [--aad-file PATH]
      [--output-file PATH | --dangerously-print]
  hikyo transit rewrap <key> --env E (--stdin | --input-file PATH) [--aad-file PATH]
  hikyo transit datakey <key> --env E [--bits 256] [--aad-file PATH]
      [--plaintext [--output-file PATH | --dangerously-print]]
  hikyo transit verify <key> --env E --signature S (--stdin | --input-file PATH)
  hikyo transit hmac-verify <key> --env E --mac M (--stdin | --input-file PATH)

  inputs come from stdin or a file, never argv. Decrypted plaintext and a
  plaintext data key are shown exactly once, through the print triad.

private PKI:
  hikyo pki issuer list [-o table|json]
  hikyo pki issuer show <issuer> [-o table|json]
  hikyo pki issuer create-root <issuer> --common-name CN [--organization O]
      [--key-algorithm ALG] [--ttl <duration>] [--crl-url URL]
  hikyo pki issuer create-intermediate <issuer> --common-name CN [--parent <issuer>]
      [--organization O] [--key-algorithm ALG] [--ttl <duration>] [--crl-url URL] [--csr-out PATH]
  hikyo pki issuer import <issuer> (--key-file PATH | --key-stdin) --cert-file PATH
      [--chain-file PATH] [--crl-url URL]
  hikyo pki issuer install <issuer> --cert-file PATH --chain-file PATH
  hikyo pki issuer rotate <issuer> [--key-algorithm ALG] [--ttl <duration>] [--csr-out PATH]
      [--key-file PATH | --key-stdin] [--cert-file PATH] [--chain-file PATH]
  hikyo pki issuer retire <issuer> --version N
  hikyo pki issuer revoke <issuer> --version N
  hikyo pki issuer release-hold <issuer>
  hikyo pki issuer crl <issuer> --version N [--publish]
  hikyo pki profile list [-o table|json]
  hikyo pki profile show <profile> [-o table|json]
  hikyo pki profile create <profile> --policy-file PATH
  hikyo pki profile update <profile> --policy-file PATH [--row-version N]
  hikyo pki profile delete <profile>
  hikyo pki profile bind <profile> --org O --project P [--env E]
  hikyo pki profile unbind <profile> <binding>
  hikyo cert profiles --env E [-o table|json]
  hikyo cert list --env E [-o table|json]
  hikyo cert show <certificate> --env E [--pem] [--cert-out PATH]
  hikyo cert issue --env E --profile <profile> (--csr-file PATH | --generate-key [--key-algorithm ALG])
      [--dns NAME]... [--ip ADDR]... [--uri URI]... [--common-name CN] [--ttl <duration>]
      [--issuer <issuer>] [--cert-out PATH] [--output-file PATH | --dangerously-print]
  hikyo cert renew <certificate> --env E [--cert-out PATH]
  hikyo cert revoke <certificate> --env E [--reason REASON]
  hikyo cert crl <certificate> --env E

  a CA private key never leaves the server and is read only from --key-file
  or --key-stdin, never argv. A generated certificate key is shown exactly
  once, through the print triad; a CSR issuance never sends a private key.
  human sessions use --csr-file, or the web UI for generated keys and its mint
  ceremony. CLI --generate-key requires an authorized machine credential.
  profile updates may only narrow the policy; widen by creating a profile.

delivery:                                          machine credential only
  hikyo run [--config-only] [--allow-override KEY,KEY] [--project-directory DIR]
      [--token-file PATH] -- <command> [args...]   fetch, merge, exec
  hikyo run --use-human-session -- <command>        the locked #18 exception: TTY,
      confirmation, and a live disclosure window required (secrets)

compose:                                           machine credential only
  hikyo compose render [--project-directory DIR] [--config-only] [--token-file PATH]
  hikyo compose sync [--project-directory DIR] [--token-file PATH]
  hikyo compose doctor [--project-directory DIR] [-o table|json] [--token-file PATH]

file sync:
  hikyo file-sync render --config FILE [--token-file PATH]
                                                 machine credential only; pull bound target, publish one generation
  hikyo file-sync doctor --config FILE [-o table|json]
                                                 local checks only, no network or credential

  the config file is client-local and names the destination directory; the
  server never learns it. render is one-shot or poll-until-current (refresh.mode),
  never a resident watcher: run it from a timer for continuous refresh.

  run and compose accept a machine credential (--token-file or HIKYO_TOKEN); only
  run may instead use the stored human session, under --use-human-session and its
  three gates. render and compose have no human path. run execs the command after '--' with
  the fetched values merged in (fetched wins; a differing collision is refused
  unless named in --allow-override). exit 127 is command-not-found, 126 is
  command-not-executable - the child's own convention, not hikyo's.

instance configuration:
  hikyo instance-config provider create --kind saml --name <name> --entity-id <entityID> \
      (--metadata-file <xml> | --metadata-url <url>) [--display-name NAME]
      [--assurance-context URI]... [--confirm-fingerprint FP]... [--confirm-endpoint URL]...
      [--allow-email-nameid] [--force-sign-requests]
  hikyo instance-config provider list|show|update|disable|remove
  hikyo instance-config provider update <name> [--kind oidc|saml] [--display-name NAME]
      [--assurance-context URI]... | [--clear-assurance-policy]
      [--allow-email-nameid BOOL] [--force-sign-requests BOOL] [--enabled BOOL]
      [--lifecycle-profile clerk|none] [--lifecycle-secret-file <path>] [--client-secret-file <path>]
      (OIDC takes --display-name, --enabled and the lifecycle flags; secrets come from a file or a prompt)
  hikyo instance-config provider disable <name> [--kind oidc|saml]
  hikyo instance-config provider refresh-metadata <name> [--metadata-file <xml>]
      [--confirm-fingerprint FP]... [--confirm-endpoint URL]...
  hikyo instance-config oauth2-provider create --slug <slug> --profile github --origin https://github.com
    --display-name <name> --client-id <id> --client-secret-file <path>
  hikyo instance-config oauth2-provider list|show|update|delete [<slug>]

  hikyo instance-config saml-sp-key list|rotate
  hikyo instance-config saml-sp-key retire|compromise-retire <fingerprint>

access:
  hikyo access grant list [--org O] [--project P] [--instance-scope] [-o table|json]
  hikyo access grant add --principal <id> --capability <atom>
  hikyo access grant remove --principal <id> --capability <atom>
  hikyo access grant template --principal <id> --template <name>
  hikyo access rule list [--org O] [--project P] [-o table|json]
  hikyo access rule add --principal <id> --capability <atom> [--in-project P... | --all-projects]
      [--only-env E | --except-env E]... [--only-folder F | --only-key K]...
      [--except-folder F | --except-key K]...   (items: [PROJECT:]ID or [PROJECT:]PATH)
  hikyo access rule remove <rule>
  hikyo access member list [--org O] [--project P] [-o table|json]
  hikyo access member invite <username> [--display-name NAME] [--template T] [--org O | --instance-scope] [--output-file PATH | --dangerously-print]
  hikyo access member remove --principal <id>
  hikyo access invitation send <email> --template T [--org O] [-o table|json]
  hikyo access invitation list [--org O] [-o table|json]
  hikyo access invitation revoke <id> [--org O]
  hikyo access invitation accept [--yes] [-o table|json]   (token or link on standard input)
  hikyo access registration show [--org O | --instance-scope] [-o table|json]
  hikyo access registration set [--org O | --instance-scope] --file <policy.json>
  hikyo access registration delete [--org O | --instance-scope]
  hikyo access policy list [-o table|json]
  hikyo access policy create --capability C --approver principal:<id> [--covers ENV] [--max-duration 8h]
      [--min-approvals N] [--ttl SECONDS] [--allow-self-approval] [--disabled] [--bypasser <id>]
  hikyo access policy update <policy> …same flags as create… [--clear-bypassers]
      (omitted fields keep their current values)
  hikyo access policy delete <policy>
  hikyo access request list --env E [-o table|json]
  hikyo access request create --env E --capability C --duration 1h --reason R
  hikyo access request approve|reject|cancel|revoke <request> --env E
  hikyo access request emergency --env E --capability C --reason R [--duration D]
  hikyo project-settings get --env E [-o table|json]
  hikyo project-settings set --env E [--protected true|false] [--reauth-window-seconds N|inherit]
  hikyo project-settings machine-reveal get|set --enabled true|false

developer credentials:
  hikyo dev session --env E [--ttl 8h] [--personal] [-o table|json]
  hikyo dev session list [-o table|json]
  hikyo dev session revoke --id <credential-id> | --all
  hikyo instance-config developer-credential-policy get [-o table|json]
  hikyo instance-config developer-credential-policy set --max-lifetime 8h

  Mint requires a controlling terminal, current and future key consent,
  and fresh scope-bound reauthentication. Private custody is outside the
  repository. Only online hikyo run discovers this exact environment's
  credential. Ordinary logout leaves it active until fixed expiry;
  dev session revoke --all ends your delegations on this instance.
  --personal also delivers your own personal values; without it, hikyo
  run refuses keys you hold one for rather than serving the shared value.
  Mint needs a passkey or authenticator app on your account: signing in
  only through an identity provider manages personal values but cannot
  mint, so add one under Settings > Security to run locally with them.

personal values:
  hikyo personal list --env E [-o table|json]      your values (presence only) and notices
  hikyo personal set <KEY> --env E (--stdin | --value-file PATH)
                                                 set your own value for a declared key
  hikyo personal set <KEY> --env E --clear          delete your value or dismiss its notice
  hikyo personal get <KEY> --env E --reveal [--output-file PATH | --dangerously-print]
  hikyo personal members <KEY> --env E [-o table|json]
                                                 who holds one (manage-members)
  hikyo personal set <KEY> --env E --clear --member NAME
                                                 delete another person's value
  hikyo personal counts --env E [-o table|json]
                                                 holders and notices per key, with
                                                 holders/eligible for required keys (manage-members)
  hikyo personal offboarding-report <NAME> [-o table|json]
                                                 shared keys they received and service
                                                 accounts they created (manage-members, audit-read)

  A personal value is delivered only to its owner's developer credential.
  Administrators see who holds one, never the value.

machine identities:
  hikyo sa list [-o table|json]
  hikyo sa create --name <name> --kind workload|automation
  hikyo sa delete --id <id>
  hikyo sa credential list --sa <id> [-o table|json]
  hikyo sa credential mint --sa <id> [--lifetime 720h | --indefinite]
      [--output-file PATH | --dangerously-print]
  hikyo sa credential rotate --sa <id> --id <credential-id> [--lifetime 720h]
      [--output-file PATH | --dangerously-print]
  hikyo sa credential revoke --sa <id> --id <credential-id>
  hikyo instance-config credential-policy get [-o table|json]
  hikyo instance-config credential-policy set [--max-lifetime 2160h]
      [--allow-indefinite true|false] [--max-live-credentials N] [--confirm]

  a minted credential is shown ONCE. It reaches a workload through
  --token-file <path> or HIKYO_TOKEN, never a --token flag: a secret in argv
  is visible in ps, in /proc, and in shell history.
  When both eligible artifact kinds are available, pass --auth=human or
  --auth=machine; Hikyo refuses to guess.

oidc federation:
  hikyo instance-config federation-issuer list [-o table|json]
  hikyo instance-config federation-issuer add --issuer <url>
      --type kubernetes|github-actions --refuse-audience <aud>
      [--jwks discovery|static --jwks-file PATH] [--ca-bundle-file PATH]
  hikyo instance-config federation-issuer update --id <id>
      --jwks discovery|static --refuse-audience <aud> [--jwks-file PATH]
      [--ca-bundle-file PATH | --clear-ca-bundle]
  hikyo instance-config federation-issuer remove --id <id>
  hikyo sa binding create --sa <id> --issuer <url> --subject <sub>
      --audience <aud> --claim name=value [--claim ...]
      [--lifetime 720h | --indefinite] [--replaces <credential-id>]

  a binding names ONE service account by byte-exact (issuer, subject). No
  wildcards, no namespace patterns, no prefixes: a pattern rule would hand a
  principal to everyone who can create a service account in that namespace.
  Bindings are immutable, so a change is --replaces, never an edit. A pinned
  claim is name=value for a string, name=#42 for an integer, name=?true for a
  boolean: 4242 and "4242" are different claim values and never match.
  A claim name starting with / is a JSON pointer into nested claims, e.g.
  --claim /kubernetes.io/serviceaccount/uid=9f2c-… .

  every binding MUST pin the immutable identifiers its platform exposes:
    github-actions  repository_id, repository_owner_id, event_name,
                    ref_protected, runner_environment, job_workflow_ref
    kubernetes      /kubernetes.io/serviceaccount/uid
    Forgejo issuers are refused: Forgejo exposes no immutable repository id.
  pinning a name where an id exists lets a renamed-and-reused path inherit the
  binding, so there is no override.
  these required pins are JSON strings, which is how GitHub and Kubernetes emit
  them (repository_id is "74"): pin name=value, never name=#74 or name=?true,
  or creation is refused. A real GitHub token shows the values to copy.

  Bindings are listed and revoked through "sa credential".
scim provisioning (org scope; the identity provider's own wire is not a CLI surface):
  hikyo scim binding create --org O --provider <provider> --kind oidc|saml
      [--subject-source ATTR]                      default externalId; userName is refused
      [--nameid-format URI] [--nameid-qualifier Q] [--nameid-qualifier-present]
      [--nameid-sp-qualifier Q] [--nameid-sp-qualifier-present]   SAML only
  hikyo scim binding list|show|delete [<binding>]
  hikyo scim mapping add <binding> --group <idp-group-id> --template <name> (--project P [--env E] | --org-scope)
  hikyo scim mapping update <binding> --group <idp-group-id> --template <name> (--project P [--env E] | --org-scope)
  hikyo scim mapping remove <binding> --group <idp-group-id> (--project P [--env E] | --org-scope)
  hikyo scim mapping list <binding> [-o table|json]
  hikyo scim credential mint <binding> [--output-file PATH | --dangerously-print] [--indefinite]
  hikyo scim credential list|show|revoke <binding> [<credential-id>]
  hikyo scim user list <binding> [-o table|json]
  hikyo scim group list <binding> [-o table|json]
multi-instance:
  hikyo remote add <name> <url>                    interactive: confirm the key, paste the credential
  hikyo remote list [-o table|json]
  hikyo remote show <name> [-o table|json]
  hikyo remote remove <name>                       interactive: type the name back to confirm
  hikyo remote-credential create --label <peer> [--lifetime 720h | --indefinite]
      [--output-file PATH | --dangerously-print]
  hikyo remote-credential list|show|revoke [--id <connection-id>]
  hikyo remote-pairing prepare [--custom-secret | --words N] [--output-file PATH | --dangerously-print]
  hikyo remote-pairing accept <name> [--request-file PATH] [--invite-file PATH]
  hikyo remote-invite create --label <peer>
      [--lifetime 10m] [--credential-lifetime 720h] [--output-file PATH | --dangerously-print]
  hikyo remote-invite list [-o table|json]
  hikyo remote-invite revoke --id <invitation-id>

  a remote's URL and pinned key are IMMUTABLE: re-pointing is remove + add,
  which re-runs the fingerprint confirmation. 'remote remove' destroys the
  local credential and is NOT revocation - revoke it on the serving instance.
  the display name is the one mutable field, through the API and the UI.

target resolution, per dimension, first hit wins:
  --instance/--org/--project/--env, then HIKYO_*, then ./.hikyo.json, then --context

exit codes:
  0 success   1 internal   2 usage   3 authentication   4 refused
  5 not found (also unauthorized - indistinguishable by design)   6 unavailable
  7 rate limited (Retry-After seconds on stderr)

global diagnostics (stderr only):
  -v, --verbose                        phases and progress; repeat for more detail
  -vv                                  artifact and HTTP request details
  -vvv                                 timings as well (maximum level)
  put verbosity before other options; arguments after -- are untouched