@piqit/cli
@piqit/cli provides the piq binary and the config helpers it loads collections from. See the CLI manual for usage.
Requires the Bun runtime (engines.bun).
Install
npm install @piqit/cliExports
import { defineConfig, findConfig, loadConfig } from '@piqit/cli'
import type { PiqConfig, AnyResolver } from '@piqit/cli'defineConfig(config)– identity helper that types apiq.config.ts.findConfig(startDir)– walks up from a directory to the nearestpiq.config.tsorpiq.config.js; returnsnullif none exists.loadConfig(path)– imports a config file and validates that it default-exports acollectionsobject.
Binary
piq reads the nearest config, resolves relative resolver paths against the config's directory, and executes one query per invocation. Run piq --help for the flag reference.
Build/Check (Workspace)
pok packages cli build
pok packages cli check