{"_id":"@aidran/cli","_rev":"4-50d135cf4d4cce88153dc263cca777b4","name":"@aidran/cli","dist-tags":{"latest":"0.5.0"},"versions":{"0.1.0":{"name":"@aidran/cli","version":"0.1.0","keywords":["aidran","discourse-intelligence","cli","postgres","drizzle","migrations"],"author":{"name":"AIDRAN contributors"},"license":"Apache-2.0","_id":"@aidran/cli@0.1.0","maintainers":[{"name":"joshweaver","email":"josh@aidran.ai"}],"homepage":"https://github.com/AIDRAN/aidran#readme","bugs":{"url":"https://github.com/AIDRAN/aidran/issues"},"bin":{"aidran":"dist/index.js"},"dist":{"shasum":"f68f84fe6dd333d48d5fc823c4c872925bd87cfc","tarball":"https://registry.npmjs.org/@aidran/cli/-/cli-0.1.0.tgz","fileCount":20,"integrity":"sha512-+5doPn+T9zG81bpXs/xSNWi/IH4QHz5cgKLbkjybfifi2G+QbAtbTw6GemgG3SSUrz3VE+97KBbW9zQQGRctOg==","signatures":[{"sig":"MEQCIEH0vANV+lFM/F4k/nmnxb9T44/3jt8MkQNjLgYrrd8iAiBY8qt+yxd98hqk+1wo+n5y6r+UyYqnUePkMMcKzgivRw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aidran%2fcli@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":28112},"main":"./dist/index.js","type":"module","_from":"file:aidran-cli-0.1.0.tgz","types":"./dist/index.d.ts","engines":{"node":">=22.0.0"},"scripts":{"build":"tsc && chmod +x dist/index.js","typecheck":"tsc --noEmit"},"_npmUser":{"name":"joshweaver","email":"josh@aidran.ai"},"_resolved":"/tmp/279ef8ad668d482a92f060182554310b/aidran-cli-0.1.0.tgz","_integrity":"sha512-+5doPn+T9zG81bpXs/xSNWi/IH4QHz5cgKLbkjybfifi2G+QbAtbTw6GemgG3SSUrz3VE+97KBbW9zQQGRctOg==","repository":{"url":"git+https://github.com/AIDRAN/aidran.git","type":"git","directory":"packages/cli"},"_npmVersion":"10.9.8","description":"AIDRAN — CLI for applying the @aidran/db migrations and scaffolding consumer projects","directories":{},"_nodeVersion":"22.22.3","dependencies":{"pg":"^8.13.0","@aidran/db":"0.2.0","drizzle-orm":"^0.36.0"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"@types/pg":"^8.11.10","typescript":"^5.7.2","@types/node":"^22.9.0"},"_npmOperationalInternal":{"tmp":"tmp/cli_0.1.0_1779576728456_0.5069126650053553","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@aidran/cli","version":"0.3.0","keywords":["aidran","discourse-intelligence","cli","postgres","drizzle","migrations"],"author":{"name":"AIDRAN contributors"},"license":"Apache-2.0","_id":"@aidran/cli@0.3.0","maintainers":[{"name":"joshweaver","email":"josh@aidran.ai"}],"homepage":"https://github.com/AIDRAN/aidran#readme","bugs":{"url":"https://github.com/AIDRAN/aidran/issues"},"bin":{"aidran":"dist/index.js"},"dist":{"shasum":"2fe8da4cc1bee29b1dcbf6fb82f79b1b3252799a","tarball":"https://registry.npmjs.org/@aidran/cli/-/cli-0.3.0.tgz","fileCount":20,"integrity":"sha512-HOMvqfg0+fSS1OVT9XejKTRCZljqamMd04ZS1fquFMYd41ZRmpOSVVUUxZryKVs02BBwawqi7jLXsZYkmer0dw==","signatures":[{"sig":"MEUCIFfqD5ibmGN17W3vA8CvuOBXVxnBJ6VmCcTfhIixkSx8AiEAh+X+LfiKMQ4od2Kr9Pz6rOEauZp2L9e9v4mUhaD7qt4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aidran%2fcli@0.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":28112},"main":"./dist/index.js","type":"module","_from":"file:aidran-cli-0.3.0.tgz","types":"./dist/index.d.ts","engines":{"node":">=22.0.0"},"scripts":{"build":"tsc && chmod +x dist/index.js","typecheck":"tsc --noEmit"},"_npmUser":{"name":"joshweaver","email":"josh@aidran.ai"},"_resolved":"/tmp/1c2a7e23a4327ac101a96b800e590e1e/aidran-cli-0.3.0.tgz","_integrity":"sha512-HOMvqfg0+fSS1OVT9XejKTRCZljqamMd04ZS1fquFMYd41ZRmpOSVVUUxZryKVs02BBwawqi7jLXsZYkmer0dw==","repository":{"url":"git+https://github.com/AIDRAN/aidran.git","type":"git","directory":"packages/cli"},"_npmVersion":"10.9.8","description":"AIDRAN — CLI for applying the @aidran/db migrations and scaffolding consumer projects","directories":{},"_nodeVersion":"22.22.3","dependencies":{"pg":"^8.13.0","@aidran/db":"0.3.0","drizzle-orm":"^0.36.0"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"@types/pg":"^8.11.10","typescript":"^5.7.2","@types/node":"^22.9.0"},"_npmOperationalInternal":{"tmp":"tmp/cli_0.3.0_1779577146360_0.13239399960899845","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@aidran/cli","version":"0.4.0","keywords":["aidran","discourse-intelligence","cli","postgres","drizzle","migrations"],"author":{"name":"AIDRAN contributors"},"license":"Apache-2.0","_id":"@aidran/cli@0.4.0","maintainers":[{"name":"joshweaver","email":"josh@aidran.ai"}],"homepage":"https://github.com/AIDRAN/aidran#readme","bugs":{"url":"https://github.com/AIDRAN/aidran/issues"},"bin":{"aidran":"dist/index.js"},"dist":{"shasum":"06d68d85796944a014590874737ed182c3a90cd9","tarball":"https://registry.npmjs.org/@aidran/cli/-/cli-0.4.0.tgz","fileCount":28,"integrity":"sha512-M52MzkC0p7OmhnwrGMFBfgp2bMfpzYth10Y3QIQmDhQxHcDbuwQpuEfXaK/YUJXzfvNSygOBnR6px6u/wjiCmw==","signatures":[{"sig":"MEYCIQCUC3h7zanQPP3I13l30M5Bpg8GYGU7y+G9Ay2997KFQgIhAN2wkIal8qP21QziPzkpeMIppopKqUMo4QJbb28NtO1D","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aidran%2fcli@0.4.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":53144},"main":"./dist/index.js","type":"module","_from":"file:aidran-cli-0.4.0.tgz","types":"./dist/index.d.ts","engines":{"node":">=22.0.0"},"scripts":{"build":"tsc && chmod +x dist/index.js","typecheck":"tsc --noEmit"},"_npmUser":{"name":"joshweaver","email":"josh@aidran.ai"},"_resolved":"/tmp/2d78eb73fe1741468d51cdd4ce3b31cf/aidran-cli-0.4.0.tgz","_integrity":"sha512-M52MzkC0p7OmhnwrGMFBfgp2bMfpzYth10Y3QIQmDhQxHcDbuwQpuEfXaK/YUJXzfvNSygOBnR6px6u/wjiCmw==","repository":{"url":"git+https://github.com/AIDRAN/aidran.git","type":"git","directory":"packages/cli"},"_npmVersion":"10.9.8","description":"AIDRAN — CLI for applying the @aidran/db migrations and scaffolding consumer projects","directories":{},"_nodeVersion":"22.22.3","dependencies":{"pg":"^8.13.0","@aidran/db":"0.4.0","picocolors":"^1.1.0","drizzle-orm":"^0.36.0","@clack/prompts":"^0.8.0"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"@types/pg":"^8.11.10","typescript":"^5.7.2","@types/node":"^22.9.0"},"_npmOperationalInternal":{"tmp":"tmp/cli_0.4.0_1779578105853_0.5152129175315387","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@aidran/cli","version":"0.5.0","description":"AIDRAN — CLI for applying the @aidran/db migrations and scaffolding consumer projects","keywords":["aidran","discourse-intelligence","cli","postgres","drizzle","migrations"],"homepage":"https://github.com/AIDRAN/aidran#readme","bugs":{"url":"https://github.com/AIDRAN/aidran/issues"},"repository":{"type":"git","url":"git+https://github.com/AIDRAN/aidran.git","directory":"packages/cli"},"license":"Apache-2.0","author":{"name":"AIDRAN contributors"},"type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","bin":{"aidran":"dist/index.js"},"dependencies":{"@clack/prompts":"^0.8.0","drizzle-orm":"^0.36.0","pg":"^8.13.0","picocolors":"^1.1.0","@aidran/db":"0.5.0"},"devDependencies":{"@types/node":"^22.9.0","@types/pg":"^8.11.10","typescript":"^5.7.2"},"publishConfig":{"access":"public","provenance":true},"engines":{"node":">=22.0.0"},"scripts":{"typecheck":"tsc --noEmit","build":"tsc && chmod +x dist/index.js"},"_id":"@aidran/cli@0.5.0","_integrity":"sha512-KBXNjbiD5z51MZBABvfFBOJRNagw+4sZPI/oJLDcfwoeQTcurHUZIhjKdZYwU+PI6ddmjKAiCMs22KB9bDjcXQ==","_resolved":"/tmp/ab0fe9857d1e0516bab312bb4a1d4fdc/aidran-cli-0.5.0.tgz","_from":"file:aidran-cli-0.5.0.tgz","_nodeVersion":"22.22.3","_npmVersion":"10.9.8","dist":{"integrity":"sha512-KBXNjbiD5z51MZBABvfFBOJRNagw+4sZPI/oJLDcfwoeQTcurHUZIhjKdZYwU+PI6ddmjKAiCMs22KB9bDjcXQ==","shasum":"14dbeb3c65392afa08afe9780eb736065130e687","tarball":"https://registry.npmjs.org/@aidran/cli/-/cli-0.5.0.tgz","fileCount":28,"unpackedSize":53985,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@aidran%2fcli@0.5.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDbyKCkrmfij+mxvc/Ycw/IvFT5RhnADw7SUdzhgf4klAiAkpx9M3Vj/VbNDlBkGp5Tf8kvSl5GVXlsq8nfgjqxSdw=="}]},"_npmUser":{"name":"joshweaver","email":"josh@aidran.ai"},"directories":{},"maintainers":[{"name":"joshweaver","email":"josh@aidran.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cli_0.5.0_1779578303205_0.5041002991721797"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-23T22:52:08.341Z","modified":"2026-05-23T23:18:23.684Z","0.1.0":"2026-05-23T22:52:08.598Z","0.3.0":"2026-05-23T22:59:06.518Z","0.4.0":"2026-05-23T23:15:06.043Z","0.5.0":"2026-05-23T23:18:23.391Z"},"bugs":{"url":"https://github.com/AIDRAN/aidran/issues"},"author":{"name":"AIDRAN contributors"},"license":"Apache-2.0","homepage":"https://github.com/AIDRAN/aidran#readme","keywords":["aidran","discourse-intelligence","cli","postgres","drizzle","migrations"],"repository":{"type":"git","url":"git+https://github.com/AIDRAN/aidran.git","directory":"packages/cli"},"description":"AIDRAN — CLI for applying the @aidran/db migrations and scaffolding consumer projects","maintainers":[{"name":"joshweaver","email":"josh@aidran.ai"}],"readme":"# @aidran/cli\n\nThe `aidran` binary — interactive setup wizard and non-interactive subcommands for the [AIDRAN](https://aidran.ai) discourse-intelligence platform.\n\n## Install\n\n```sh\nnpm install -g @aidran/cli\n# or:  pnpm add -g @aidran/cli\n```\n\nAfter installing, run `aidran` (no args) to launch the interactive wizard.\n\nPrefer to skip the global install? Use the convenience meta-package or `npx`:\n\n```sh\nnpm install -g aidran     # meta-package — also exports types and schemas\nnpx @aidran/cli           # no install, one-off invocation\n```\n\n## Wizard\n\nRunning `aidran` with no arguments in a terminal launches an interactive wizard with the AIDRAN logo, a menu, and guided prompts. It can:\n\n- Generate a secure random `AIDRAN_API_KEY`\n- Write `.env`, `.env.example`, and `drizzle.config.ts`\n- Apply migrations to your Postgres\n- Verify the schema\n\n## Commands (non-interactive)\n\n```sh\naidran init       # Write .env.example and drizzle.config.ts to cwd\naidran migrate    # Apply @aidran/db migrations to $DATABASE_URL\naidran verify     # Sanity-check the schema against $DATABASE_URL\naidran help       # Show usage\n```\n\nThese run directly without prompts — suitable for CI, scripts, or anyone who already knows what they want.\n\n## What it ships\n\nThe package bundles the AIDRAN migrations folder (the same SQL the production system runs, via the `@aidran/db` dependency) and uses `drizzle-orm/node-postgres/migrator` to apply them. Idempotent — drizzle tracks applied migrations in a `drizzle.__drizzle_migrations` table.\n\nThe interactive UI uses [`@clack/prompts`](https://www.npmjs.com/package/@clack/prompts) for the wizard and [`picocolors`](https://www.npmjs.com/package/picocolors) for terminal styling. Both detect non-TTY contexts automatically and degrade to plain output.\n\n## Status\n\nPart of the AIDRAN platform public reference implementation. Published from the [`AIDRAN/aidran`](https://github.com/AIDRAN/aidran) monorepo. See [`NOTICE.md`](https://github.com/AIDRAN/aidran/blob/main/NOTICE.md) for the components intentionally omitted from the public reference.\n\n## License\n\nApache-2.0.\n","readmeFilename":"README.md"}