{"_id":"@0gfoundation/trans-mgm-cli","_rev":"2-16ce649b36c45e393442c1a80db35ff4","name":"@0gfoundation/trans-mgm-cli","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@0gfoundation/trans-mgm-cli","version":"0.0.1","keywords":["i18n","translation","localization","cli"],"license":"ISC","_id":"@0gfoundation/trans-mgm-cli@0.0.1","maintainers":[{"name":"overi","email":"ibrahim.over@0g.ai"},{"name":"0g-jiahao","email":"jiahao@0g.ai"},{"name":"0g-will","email":"will.riches@0g.ai"},{"name":"0g-xie","email":"xie@0g.ai"},{"name":"ymh357","email":"minghao.yu@0g.ai"},{"name":"0g-peterzhang","email":"peter@0g.ai"}],"homepage":"https://trans-mgm.vercel.app/docs","bin":{"trans-mgm":"dist/cli.js"},"dist":{"shasum":"f49d20f4fec5f9e469b050d0161860c4bea8fc09","tarball":"https://registry.npmjs.org/@0gfoundation/trans-mgm-cli/-/trans-mgm-cli-0.0.1.tgz","fileCount":4,"integrity":"sha512-91HgKDJ7/VJOChNEXzsEgnIjw+wKeGuJVGk4ySPwZC8zMLwVSMw5y5KN8iYcOsLsgx0MyeeHSNfTT5kjePA+3A==","signatures":[{"sig":"MEQCIH57jm1WXMhwZTLFzwBv3pi82r/I9ljuilybaSuu2qF2AiBdxFpDzdyHIudnx4xmV9lHj2EIQ0LnqducWibc4PDV1A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":75243},"type":"module","_from":"file:0gfoundation-trans-mgm-cli-0.0.1.tgz","engines":{"node":">=22"},"scripts":{"test":"vitest run","build":"tsup","typecheck":"tsc --noEmit"},"_npmUser":{"name":"ymh357","email":"minghao.yu@0g.ai"},"_resolved":"/private/var/folders/7h/5ql6qz9s7s90p_gsvndsf8140000gn/T/3378fbfea023ee893395d9a484ed013c/0gfoundation-trans-mgm-cli-0.0.1.tgz","_integrity":"sha512-91HgKDJ7/VJOChNEXzsEgnIjw+wKeGuJVGk4ySPwZC8zMLwVSMw5y5KN8iYcOsLsgx0MyeeHSNfTT5kjePA+3A==","_npmVersion":"11.17.0","description":"CLI for trans-mgm — push source strings, pull finished translations, check per-locale status.","directories":{},"_nodeVersion":"26.4.0","dependencies":{"zod":"^4.0.0","commander":"^13.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","vitest":"^3.0.0","typescript":"^5.9.0","@types/node":"^22.0.0","@trans-mgm/shared":"0.0.1"},"_npmOperationalInternal":{"tmp":"tmp/trans-mgm-cli_0.0.1_1783580514217_0.3297554291923357","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2026-07-09T07:01:53.998Z","modified":"2026-08-11T07:12:35.963Z","0.0.1":"2026-07-09T07:01:54.392Z"},"license":"ISC","homepage":"https://trans-mgm.vercel.app/docs","keywords":["i18n","translation","localization","cli"],"description":"CLI for trans-mgm — push source strings, pull finished translations, check per-locale status.","maintainers":[{"email":"ibrahim.over@0g.ai","name":"overi"},{"email":"jiahao@0g.ai","name":"0g-jiahao"},{"email":"will.riches@0g.ai","name":"0g-will"},{"email":"xie@0g.ai","name":"0g-xie"},{"email":"minghao.yu@0g.ai","name":"ymh357"},{"email":"wei@0g.ai","name":"wilbertwu"},{"email":"peter@0g.ai","name":"0g-peterzhang"}],"readme":"# @0gfoundation/trans-mgm-cli\n\nCLI for [trans-mgm](https://trans-mgm.vercel.app/docs) — an AI-first translation\nmanagement platform. Push your source strings, pull finished translations,\ncheck per-locale progress.\n\n> Most projects don't need the CLI at all: with the trans-mgm GitHub App\n> granted on your repo, pushes to your base branch are ingested automatically\n> and translations come back as a pull request. The CLI is the alternative for\n> repos the App can't reach, or sources that need a build step first.\n\n## Install\n\n```bash\nnpm install -g @0gfoundation/trans-mgm-cli   # or: pnpm dlx @0gfoundation/trans-mgm-cli <command>\n```\n\nRequires Node 22+.\n\n## Configure\n\nAdd `trans-mgm.config.json` to your repo root:\n\n```json\n{\n  \"apiUrl\": \"https://trans-mgm.vercel.app\",\n  \"project\": \"your-project-slug\",\n  \"sourcePath\": \"messages/en.json\",\n  \"outputTemplate\": \"messages/{locale}.json\"\n}\n```\n\nProvide your project token (created on the project's Settings tab, shown once)\nvia the environment — never commit it:\n\n```bash\nexport TRANS_MGM_TOKEN=tm_…\n```\n\n## Commands\n\n```bash\ntrans-mgm push     # upload the source file → diff → start translating\ntrans-mgm status   # per-locale progress (final / pending / needs_attention)\ntrans-mgm pull     # write finished translations to {locale}.json files\n```\n\n- `push` treats the source file as the complete catalog: new and changed keys\n  are translated, keys missing from it are archived (an accidental truncation\n  is refused). Nested objects and arrays are supported.\n- `pull` writes only finalized translations, and never overwrites an existing\n  locale file with an empty catalog.\n\nFull documentation: https://trans-mgm.vercel.app/docs\n","readmeFilename":"README.md"}