{"_id":"@klingai/cli-global","_rev":"18-045798d17a70d1700d2a181af6aaf031","name":"@klingai/cli-global","dist-tags":{"latest":"0.2.3"},"versions":{"0.1.0-alpha.1":{"name":"@klingai/cli-global","version":"0.1.0-alpha.1","_id":"@klingai/cli-global@0.1.0-alpha.1","maintainers":[{"name":"klingai-fe","email":"research@klingai.com"}],"bin":{"kling":"dist/cli.js"},"dist":{"shasum":"43f612543b077b7f73ea3f45473e4efa705c5746","tarball":"https://registry.npmjs.org/@klingai/cli-global/-/cli-global-0.1.0-alpha.1.tgz","fileCount":5,"integrity":"sha512-pYTkGylH+Zm1ufhsFyp4K+8ZwWkQN+OFALxIw4pU6Z7QDnoNHX29vw0RpJy6skVKE7tzyRVo89SaZA0n0hOFoQ==","signatures":[{"sig":"MEQCIDzITGXRijC+mU4tmLFfgOugqnp7oJ9LOhXxzNEqzKTPAiBZFDMHm8IEfeNX+8wg+TPGsEDZCNv2R69t3Ybti/WMuQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":699346},"type":"module","engines":{"node":">=18"},"gitHead":"24356c8633fa4166940007be6f02f8031232093c","private":false,"_npmUser":{"name":"klingai-fe","email":"research@klingai.com"},"repository":{"url":"git@git.corp.kuaishou.com:kling-platform/kling-skills-toc.git","type":"git"},"_npmVersion":"10.9.4","description":"Kling AI CLI for text-to-image, image-to-image, text-to-video, and image-to-video generation (thin MCP client)","directories":{},"_nodeVersion":"22.22.0","publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cli-global_0.1.0-alpha.1_1781682795231_0.18303736695341466","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@klingai/cli-global","version":"0.1.1","_id":"@klingai/cli-global@0.1.1","maintainers":[{"name":"klingai-fe","email":"research@klingai.com"}],"bin":{"kling":"dist/cli.js"},"dist":{"shasum":"6844f3906834d923b03dce10cd82df6c15380073","tarball":"https://registry.npmjs.org/@klingai/cli-global/-/cli-global-0.1.1.tgz","fileCount":5,"integrity":"sha512-m1ahqTgnOis5VvFkkZKaP1xVz1dnEsFY4gnWiCHA9xOApi63pa8VhyKTMgH3d+E1u9x4cZptwOX0y4JO4vzdrQ==","signatures":[{"sig":"MEUCIQCX8yUhfM0KSf1SiZrkAjG5+d322nPObOa6bsXrrUoXPgIgRGVHo/xTyVu4JIun0sp3rA6tkYXUEtqHjzSl3m4IvSs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":705692},"type":"module","engines":{"node":">=18"},"gitHead":"718d750825e3a37b99f88a839d8a30fba514314c","private":false,"_npmUser":{"name":"klingai-fe","email":"research@klingai.com"},"repository":{"url":"git@git.corp.kuaishou.com:kling-platform/kling-skills-toc.git","type":"git"},"_npmVersion":"10.9.4","description":"Kling AI CLI for text-to-image, image-to-image, text-to-video, and image-to-video generation (thin MCP client)","directories":{},"_nodeVersion":"22.22.0","publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cli-global_0.1.1_1782287238809_0.5877987698246672","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@klingai/cli-global","version":"0.1.2","_id":"@klingai/cli-global@0.1.2","maintainers":[{"name":"klingai-fe","email":"research@klingai.com"}],"bin":{"kling":"dist/cli.js"},"dist":{"shasum":"86ad7b0623a8681b4b94ecb023e001b052190d7a","tarball":"https://registry.npmjs.org/@klingai/cli-global/-/cli-global-0.1.2.tgz","fileCount":5,"integrity":"sha512-jwUQJ1LT/WwWeeiFt8jfmiSBsAac5L/X9sbZVlNOp77OQOsib3ZejjfDY97/O8fQWR55X55acQMgzzRDS887bw==","signatures":[{"sig":"MEYCIQDPpqbdL2zXEZNQUB1cyLAnufDHRe0oLpIj1YXDFQxbUgIhAJLEAlA8q0eJV/sNCgrd1hJrh79N61PUzctanvtdNglN","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":715181},"type":"module","engines":{"node":">=18"},"gitHead":"29d8ca25852ce166acd2cf315e75fda875750391","private":false,"_npmUser":{"name":"klingai-fe","email":"research@klingai.com"},"repository":{"url":"git@git.corp.kuaishou.com:kling-platform/kling-skills-toc.git","type":"git"},"_npmVersion":"10.9.4","description":"Kling AI CLI for text-to-image, image-to-image, text-to-video, and image-to-video generation (thin MCP client)","directories":{},"_nodeVersion":"22.21.0","publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cli-global_0.1.2_1783413376242_0.19668148827363985","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@klingai/cli-global","version":"0.1.3","_id":"@klingai/cli-global@0.1.3","maintainers":[{"name":"klingai-fe","email":"research@klingai.com"}],"bin":{"kling":"dist/cli.js"},"dist":{"shasum":"74621c4726d7c3cf85c82135f7ba35aa19175ee4","tarball":"https://registry.npmjs.org/@klingai/cli-global/-/cli-global-0.1.3.tgz","fileCount":5,"integrity":"sha512-RAfuf0aNsiXjw+67i568fYzt44qtwoTvAl8Ulh40eCE2CEQHxWWqpM3t7fvSAklsqXGnUVigzd0ahmWzpjpI3g==","signatures":[{"sig":"MEQCIHKmdFMh/DAo6dVVLvkaCwOGoBdS+wJGGAT6T5dEzGcIAiBFRzcru5MUM4qb3j/F9NliA40UYTUoWuqFEGM/c2v7ZA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":715181},"type":"module","engines":{"node":">=18"},"gitHead":"3544edde33facb2a464405df54ce455c1b0d517d","private":false,"_npmUser":{"name":"klingai-fe","email":"research@klingai.com"},"repository":{"url":"git@git.corp.kuaishou.com:kling-platform/kling-skills-toc.git","type":"git"},"_npmVersion":"10.9.4","description":"Kling AI CLI for text-to-image, image-to-image, text-to-video, and image-to-video generation (thin MCP client)","directories":{},"_nodeVersion":"22.21.0","publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cli-global_0.1.3_1783482216916_0.006691693989702374","host":"s3://npm-registry-packages-npm-production"}},"0.1.4-beta.0":{"name":"@klingai/cli-global","version":"0.1.4-beta.0","_id":"@klingai/cli-global@0.1.4-beta.0","maintainers":[{"name":"klingai-fe","email":"research@klingai.com"}],"bin":{"kling":"dist/cli.js"},"dist":{"shasum":"3e85298b36f65a3618eef45fe5794382a378905a","tarball":"https://registry.npmjs.org/@klingai/cli-global/-/cli-global-0.1.4-beta.0.tgz","fileCount":5,"integrity":"sha512-bw1AOmyGs7kpf0y9Ef4gKhYYnUVs78N4/VQDNBH1Wdry0TBV5ALycQ8pDSPUv8LsBlsuPv7nItlfAdwbUvLg1A==","signatures":[{"sig":"MEUCIBxe1e0mwJQbw52uT+VUrlbeXDc8vwP6aBC/2N6w/b3zAiEA5EKjqAz3C8naSp4wyuxLk3qyE2OM5YGAArXHUKHqW/g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":730814},"type":"module","engines":{"node":">=18"},"gitHead":"6051162157739cb826a4579d03e230d3dd2818a6","private":false,"_npmUser":{"name":"klingai-fe","email":"research@klingai.com"},"repository":{"url":"git@git.corp.kuaishou.com:kling-platform/kling-skills-toc.git","type":"git"},"_npmVersion":"11.17.0","description":"Kling AI CLI for image/video generation, reusable Elements, and motion control (thin MCP client)","directories":{},"_nodeVersion":"24.19.0","publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/cli-global_0.1.4-beta.0_1788148075568_0.3875442360266832","host":"s3://npm-registry-packages-npm-production"}},"0.1.4-beta.1":{"name":"@klingai/cli-global","version":"0.1.4-beta.1","_id":"@klingai/cli-global@0.1.4-beta.1","maintainers":[{"name":"klingai-fe","email":"research@klingai.com"}],"bin":{"kling":"dist/cli.js"},"dist":{"shasum":"a429e88c36bab86d8427d09daaf0536e18ec8a13","tarball":"https://registry.npmjs.org/@klingai/cli-global/-/cli-global-0.1.4-beta.1.tgz","fileCount":5,"integrity":"sha512-104jKgnxUoVtQF3s/LXXYIZoxI6O/2HH9u11w1XdkpEmncWtFkOXp/jIaZpuIADPEY543U6ZlTPHQUedVHvJAg==","signatures":[{"sig":"MEQCIBHGZxCg/nopc9BQpNfY/7dSDOwCa6gO3xkWwbYGfmYpAiBa3h2plVprFmRs+/fDeAo0f6KeozHew31pe5qYL2IECw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":741872},"type":"module","engines":{"node":">=18"},"private":false,"_npmUser":{"name":"klingai-fe","email":"research@klingai.com"},"repository":{"url":"git@git.corp.kuaishou.com:kling-platform/kling-skills-toc.git","type":"git"},"_npmVersion":"11.17.0","description":"Kling AI CLI for image/video generation, reusable Elements, and motion control (thin MCP client)","directories":{},"_nodeVersion":"24.19.0","publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/cli-global_0.1.4-beta.1_1788507820916_0.7090809445465602","host":"s3://npm-registry-packages-npm-production"}},"0.1.4-beta.3":{"name":"@klingai/cli-global","version":"0.1.4-beta.3","_id":"@klingai/cli-global@0.1.4-beta.3","maintainers":[{"name":"klingai-fe","email":"research@klingai.com"}],"bin":{"kling":"dist/cli.js"},"dist":{"shasum":"17f4fa58c6c82d6d3f07d16f843b28aebe63f812","tarball":"https://registry.npmjs.org/@klingai/cli-global/-/cli-global-0.1.4-beta.3.tgz","fileCount":5,"integrity":"sha512-Y01T+/tn/+DvLHWpCZ4OlKP6h17Rw0IhLY5nP8MBd2LZvkdePXRavn0o+3kazPtn33SWoG8k7OopKDT6kkqGEA==","signatures":[{"sig":"MEYCIQDOx+KU2Rf/m96xKYByC5kHTQ1QqYN5X5m4ot6j4RixbwIhAJKPhlCiuiepw02jWvvpsID8CNBoEbiZC4yS7kRLOWEp","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":746917},"type":"module","engines":{"node":">=18"},"gitHead":"fcc9a4f2d563b7310395257fb1d874d2a71bec26","private":false,"_npmUser":{"name":"klingai-fe","email":"research@klingai.com"},"repository":{"url":"git@git.corp.kuaishou.com:kling-platform/kling-skills-toc.git","type":"git"},"_npmVersion":"11.17.0","description":"Kling AI CLI for image/video generation, reusable Elements, and motion control (thin MCP client)","directories":{},"_nodeVersion":"24.19.0","publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/cli-global_0.1.4-beta.3_1788767234446_0.069486588999496","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@klingai/cli-global","version":"0.2.0","_id":"@klingai/cli-global@0.2.0","maintainers":[{"name":"klingai-fe","email":"research@klingai.com"}],"bin":{"kling":"dist/cli.js"},"dist":{"shasum":"1393094910deb6480cbf7a250608106dfd59c730","tarball":"https://registry.npmjs.org/@klingai/cli-global/-/cli-global-0.2.0.tgz","fileCount":5,"integrity":"sha512-SAZQiYrmnanJ64Osc96ZmjudVMGal1Bvq5ZOru04c3SFLs82CUtb1RO9LzmbUFjO51aq+Wr+5TssrqrSXX4pog==","signatures":[{"sig":"MEQCIBOmYhDiUZtQEz6pLk70wWooJqqwyoSX6rpFwOCOnuigAiBENDRAX1KHMD5S5evDlitmQE+udvKP7lotG3Z2bUDTyw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":746910},"type":"module","engines":{"node":">=18"},"gitHead":"bd1f668e751e9ee707f567a84c2a3476d0d4cd3b","private":false,"_npmUser":{"name":"klingai-fe","email":"research@klingai.com"},"repository":{"url":"git@git.corp.kuaishou.com:kling-platform/kling-skills-toc.git","type":"git"},"_npmVersion":"11.17.0","description":"Kling AI CLI for image/video generation, reusable Elements, and motion control (thin MCP client)","directories":{},"_nodeVersion":"24.19.0","publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cli-global_0.2.0_1788880199972_0.5889058353485583","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@klingai/cli-global","version":"0.2.1","_id":"@klingai/cli-global@0.2.1","maintainers":[{"name":"klingai-fe","email":"research@klingai.com"}],"bin":{"kling":"dist/cli.js"},"dist":{"shasum":"be21843ee1b1623d46051586a4b4524120e98e72","tarball":"https://registry.npmjs.org/@klingai/cli-global/-/cli-global-0.2.1.tgz","fileCount":3,"integrity":"sha512-NpcbPrUuOuBBbAPsrkgk/7T09gavi7ZY7mIy1NImhY4+aBon5ysPkuxBMEMWbzn1HSmUIPO0dfQaKyxHSMhAYQ==","signatures":[{"sig":"MEUCIQDWpPwrlqMeJ+UDeK/4L27CPGnqMZtj1Sf6jqM+iyG58gIgSU3XKM+bhecrv/o3lPU6nx30SqUAxdpa1i7rzmDNzPI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIGVUqVIXycGA/dkDAVS8m7vVLLXXHXUIQU2J/3dV+MygAiBxJ/Bo9oYnE3QzZFLHn6MJm/f+mnDAUlyI67MyRBffSQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":752604},"type":"module","_from":"file:/var/folders/80/mhf4j4dn3xjfhj3xwb8d6hvw0000gn/T/kling-npm-0.2.1-5epa33j7/global/kling-cli/klingai-cli-global-0.2.1.tgz","engines":{"node":">=18"},"private":false,"_npmUser":{"name":"klingai-fe","email":"research@klingai.com"},"_resolved":"/var/folders/80/mhf4j4dn3xjfhj3xwb8d6hvw0000gn/T/kling-npm-0.2.1-5epa33j7/global/kling-cli/klingai-cli-global-0.2.1.tgz","_integrity":"sha512-NpcbPrUuOuBBbAPsrkgk/7T09gavi7ZY7mIy1NImhY4+aBon5ysPkuxBMEMWbzn1HSmUIPO0dfQaKyxHSMhAYQ==","repository":{"url":"git@git.corp.kuaishou.com:kling-platform/kling-skills-toc.git","type":"git"},"_npmVersion":"11.17.0","description":"Kling AI CLI for image/video generation, reusable Elements, and motion control (thin MCP client)","directories":{},"_nodeVersion":"24.19.0","publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cli-global_0.2.1_1790607698237_0.398468032726079","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@klingai/cli-global","version":"0.2.2","_id":"@klingai/cli-global@0.2.2","maintainers":[{"name":"klingai-fe","email":"research@klingai.com"}],"bin":{"kling":"dist/cli.js"},"dist":{"shasum":"285cb9abfa0d43131cc1449553c91b1d52acfea7","tarball":"https://registry.npmjs.org/@klingai/cli-global/-/cli-global-0.2.2.tgz","fileCount":3,"integrity":"sha512-LxP1PjivN0Fx4ibMc/WHoavOo8lIb3aAfvgvN6BEBYTEqpaCvdFY0Vk3D9I48J2Xb5cA0iArMLauGpETD9Dt4A==","signatures":[{"sig":"MEUCIQDOQVb2RrSJWScegjWt+ZvR93bEWRclbkGlhrZHAXEKTAIgM06KOl3dCXsPUOsdC+kyZx8DPifvVIT7vVDLWii4ZfI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIH9h8TKmjNeJlkcaYHNnYCieftKnyWkuYvaA2QMLB5/LAiEAoY7BZqOGBvw8HjDuVx3vYAsPxnl9TXTXHwde920IAeA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":777494},"type":"module","_from":"file:/Users/william/developer/workDoc/reports/kling-public-release-20261016/klingai-cli-global-0.2.2.tgz","engines":{"node":">=18"},"private":false,"_npmUser":{"name":"klingai-fe","email":"research@klingai.com"},"_resolved":"/Users/william/developer/workDoc/reports/kling-public-release-20261016/klingai-cli-global-0.2.2.tgz","_integrity":"sha512-LxP1PjivN0Fx4ibMc/WHoavOo8lIb3aAfvgvN6BEBYTEqpaCvdFY0Vk3D9I48J2Xb5cA0iArMLauGpETD9Dt4A==","repository":{"url":"git@git.corp.kuaishou.com:kling-platform/kling-skills-toc.git","type":"git"},"_npmVersion":"11.17.0","description":"Kling AI CLI for image/video generation, reusable Elements, and motion control (thin MCP client)","directories":{},"_nodeVersion":"24.19.0","publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cli-global_0.2.2_1792120823560_0.6557854806254413","host":"s3://npm-registry-packages-npm-production"}},"0.2.3":{"_id":"@klingai/cli-global@0.2.3","bin":{"kling":"dist/cli.js"},"dist":{"shasum":"cd195fe9f804ab6c52f8b9541c6b4d8c786a1ed6","tarball":"https://registry.npmjs.org/@klingai/cli-global/-/cli-global-0.2.3.tgz","fileCount":5,"integrity":"sha512-/o0DtcjDQI2UnFP4JBC7z218EXvje/NtJvz5s6Bq87WmTvE3idhs/VRFjamuEI06Y+B/uO1IyIfssLnlo0TE4g==","signatures":[{"sig":"MEYCIQCbQlfdPb0vW/cz5mBtOk/4MnWSX4inFoEaCUfC/BHFFgIhAOxF0n0u5xMMUl9OM4hkgEdUJoslGExvFxLxi5/1qKQY","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDHqMuSBDSJEWXTKS443GDdR4jd3w+rqECS+5hpPDh4DgIgYYEoB81AgAmjggwGWRYFY0p6CXVDV/SZR/emdApeE80="}],"unpackedSize":806625},"name":"@klingai/cli-global","type":"module","_from":"file:/Users/william/developer/workDoc/reports/kling-npm-release-0.2.3-20261016/klingai-cli-global-0.2.3.tgz","engines":{"node":">=18"},"private":false,"version":"0.2.3","_npmUser":{"name":"klingai-fe","email":"research@klingai.com"},"_resolved":"/Users/william/developer/workDoc/reports/kling-npm-release-0.2.3-20261016/klingai-cli-global-0.2.3.tgz","_integrity":"sha512-/o0DtcjDQI2UnFP4JBC7z218EXvje/NtJvz5s6Bq87WmTvE3idhs/VRFjamuEI06Y+B/uO1IyIfssLnlo0TE4g==","repository":{"url":"git@git.corp.kuaishou.com:kling-platform/kling-skills-toc.git","type":"git"},"_npmVersion":"11.17.0","description":"Kling AI CLI for image/video generation, reusable Elements, and motion control (thin MCP client)","directories":{},"maintainers":[{"name":"klingai-fe","email":"research@klingai.com"}],"_nodeVersion":"24.19.0","publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cli-global_0.2.3_1792135353138_0.37945050488832766"}}},"time":{"created":"2026-06-17T07:53:15.066Z","modified":"2026-10-16T07:22:33.425Z","0.1.0-alpha.1":"2026-06-17T07:53:15.373Z","0.1.1":"2026-06-24T07:47:18.949Z","0.1.2":"2026-07-07T08:36:16.421Z","0.1.3":"2026-07-08T03:43:37.050Z","0.1.4":"2026-08-20T08:42:04.046Z","0.1.4-beta.0":"2026-08-31T03:47:55.730Z","0.1.5":"2026-09-04T07:03:26.792Z","0.1.4-beta.1":"2026-09-04T07:43:41.086Z","0.1.4-beta.3":"2026-09-07T07:47:14.606Z","0.2.0":"2026-09-08T15:10:00.129Z","0.2.1":"2026-09-28T15:01:38.389Z","0.2.2":"2026-10-16T03:20:23.650Z","0.2.3":"2026-10-16T07:22:33.223Z"},"repository":{"url":"git@git.corp.kuaishou.com:kling-platform/kling-skills-toc.git","type":"git"},"description":"Kling AI CLI for image/video generation, reusable Elements, and motion control (thin MCP client)","maintainers":[{"name":"klingai-fe","email":"research@klingai.com"}],"readme":"# Kling CLI\n\nOfficial Kling AI command-line tool for image/video generation, reusable Elements, and motion control.\n\n- **Thin MCP client**: CLI commands map 1:1 to backend MCP tools such as `text_to_image` and `query_tasks`. The CLI handles argument translation, login, polling, and file upload.\n- **Cross-platform**: macOS, Linux, and Windows. Requires Node.js 18+.\n- **Agent-friendly**: stdout is JSON by default, and non-interactive environments never block on prompts.\n\n## Installation\n\nKling has separate packages for different account regions. Both install the same `kling` command.\n\n```bash\n# Global site\nnpm i -g @klingai/cli-global\n\nkling <command>\n```\n\nUse `@klingai/cli-cn` instead if your account belongs to the China site.\n\n## Upgrade\n\n```bash\nnpm i -g @klingai/cli-global@latest\n\nkling --version\n```\n\n## Quick Start\n\n```bash\n# 1. Log in with OAuth in your browser.\nkling login\n\n# 2. Discover identity, models, and parameter specs.\nkling who_am_i\n\n# 3. Replace MODEL with a text_to_image model returned by who_am_i; wait up to 60 seconds.\nkling text_to_image --model MODEL \"a shiba inu sitting by a cafe window\" --poll 60\n\n# 4. Or submit first, then query with the returned generationId.\nkling text_to_image --model MODEL \"a shiba inu sitting by a cafe window\"\nkling query_tasks <generationId> --poll\n```\n\nGenerated assets are returned in `works[].url`. Watermark-free URLs, when available, are returned in `works[].urlWithoutWatermark`.\n\n## Commands\n\nGeneration and query commands use the same names as the backend MCP tools. There are no aliases.\n\n| Command | Description |\n|---|---|\n| `who_am_i` | Return current identity plus available models and parameter specs. |\n| `text_to_image --model MODEL <prompt>` | Submit text-to-image generation. |\n| `image_to_image --model MODEL [options] [prompt]` | Generate from one or more reference images. |\n| `text_to_video --model MODEL <prompt>` | Submit text-to-video generation. |\n| `image_to_video --model MODEL [options] [prompt]` | Submit image-to-video generation. |\n| `omni_ref_video --model MODEL <prompt>` | Mix images, videos, audio, and Elements into a new video. |\n| `query_tasks <generationId>` | Query generation status and result URLs. |\n| `file_upload <filePath>` | Upload a local file and return a public URL. |\n| `element_create` | Create a reusable image or video Element. |\n| `element_list` / `element_get` | List Elements or retrieve full details. |\n| `element_update` / `element_delete` | Update selected fields or delete an Element; the CLI preserves image covers automatically. |\n| `motion_library_list` | List saved motion assets. |\n| `motion_control` | Generate video from a subject image plus a motion video or motionId. |\n| `feedback` | Report a stuck task, billing anomaly, or unexpected result. |\n| `account` | Query membership and available credits. |\n| `tool_list` | List tools advertised by the backend MCP server. |\n| `login` | Browser OAuth login. |\n| `logout` | Revoke and clear saved login state. |\n\nOptions (`--model` and `--poll` apply only to commands that support them; the rest are global):\n\n| Flag | Description |\n|---|---|\n| `--model <name>` | Select a model from `who_am_i` (required for generation commands). |\n| `--skill-name <n>` / `--skill-version <v>` | Optional telemetry: identify the calling skill (forwarded to the server; on `login` it also picks the DCR `client_name` suffix `_skill`/`_cli`; never changes behavior). |\n| `--poll [N]` | Poll for up to N seconds. Bare `--poll` defaults to 60. |\n| `--quiet`, `-q` | Output compact single-line JSON. |\n| `--help`, `-h` | Show top-level or per-command help. |\n| `--version`, `-v` | Print CLI version. |\n\nRun `kling <command> --help` for command-specific usage. For MCP-backed commands, generation help reads live model arguments and inputs from `who_am_i`; other MCP help reads `tools/list` (description + input schema) and falls back to local static usage when offline or not logged in.\n\n## Models And Parameters\n\nAvailable models, required arguments, defaults, and allowed values are declared by the server. Run `kling who_am_i` for the authoritative spec. Generation commands require an explicit `--model <name>` (the old `--omni` / `--flash` shorthands were removed). Other parameters you omit are filled by the server. Unknown parameters or invalid values are rejected before billing.\n\n## Examples\n\n### Text To Image\n\n```bash\nkling text_to_image --model kling-image-v3_0 \"cyberpunk city at night\" \\\n  --aspectRatio 16:9 --imgResolution 2k --imageCount 4 --poll 120\n\nkling text_to_image --model kling-image-v3_0 \"Mount Fuji in watercolor style\" --poll\nkling text_to_image --model kling-image-v3_0 \"Mount Fuji in watercolor style\" --poll\n```\n\n### Image To Image\n\n```bash\nkling image_to_image --model kling-image-v3_0 --image ./cat.jpg --image ./style.png \\\n  \"Turn the cat in image 1 into the style of image 2\" --poll 120\n```\n\n### Text To Video\n\n```bash\nkling text_to_video --model kling-video-v4_0 \"drone shot flying over a snowy mountain peak\" \\\n  --duration 10 --aspectRatio 16:9 --poll 300\n```\n\n### Image To Video\n\n```bash\nkling image_to_video --model kling-video-v4_0 --image ./first.jpg --tailImage ./last.jpg \\\n  \"slow camera push-in\" --duration 6 --poll 300\n\n# Flash is first-frame only; --tailImage is rejected\nkling image_to_video --model kling-video-v4_0_flash --image ./first.jpg --prompt \"\" --poll 300\n```\n\nBoth `--image` and `--tailImage` fill slots **by name** as declared in `who_am_i` (`--image` fills the\nnon-tail slots in order, `--tailImage` always fills `tail_image`), so `--tailImage` on its own is a\nvalid tail-only job.\n\nTo place keyframes anywhere other than the first frame (tail only, middle only, first + middle +\ntail, …), address each slot with `--input <name>=<url|path>`. Slot names are declared by the chosen\nmodel in `who_am_i`, and `--input` cannot be combined with `--image` / `--tailImage`:\n\n```bash\nkling who_am_i                                 # see which input slots the model declares\nkling image_to_video --model kling-video-v4_0 \\\n  --input tail_image=./last.png \"end on this frame\" --poll 300\n\n# Standard V4: combine first, intermediate and tail frames, up to 10 images total\nkling image_to_video --model kling-video-v4_0 \\\n  --input first_image=./first.jpg --input keyframe_1=./middle.jpg \\\n  --input tail_image=./last.jpg --prompt \"\" --poll 300\n\n# When every frame is optional, the CLI allows text-only requests; the server validates the combination\n# Use text_to_video for ordinary text-only generation\nkling text_to_video --model kling-video-v4_0 \"neon street push-in on a rainy night\" --poll 300\n```\n\nSupplying more files than the model declares slots for (e.g. two images to first-frame-only Flash)\nfails before anything is uploaded.\n\nStandard V4 Preview supports `text_to_video`, `image_to_video`, and `omni_ref_video`.\nThe current declaration allows 3–30 seconds and 720p/1080p (subject to account access); Flash allows 3–20 seconds and 720p.\nUse `who_am_i` as the authority. For standard V4 keyframes, `first_image`, `tail_image`, and `keyframe_1..10`\nare optional, with a combined limit of 10 images. The CLI checks `combinedItemCap` before upload.\nWith a first frame, omit `--aspectRatio` unless explicitly requested; this entry does not accept `auto`.\n\n### Omni-Ref\n\n```bash\nkling omni_ref_video --model kling-video-v4_0_flash --image ./ref.jpg --video ./clip.mp4 \\\n  \"mix the image and video into a new shot\" --poll 300\n\n# Standard V4 mixed references; retaining source sound disables newly generated audio\nkling omni_ref_video --model kling-video-v4_0 --image ./ref.jpg --video ./clip.mp4 \\\n  --keepOriginalSound true --enableAudio false \"follow the reference camera movement\" --poll 300\n\n# Text-only example: no required references still means following model argument constraints\nkling omni_ref_video --model kling-video-v3_0_omni --aspectRatio 16:9 \"a long take of a seaside sunset\" --poll 300\n\n# Bind an existing Element; replace ELEMENT_ID and type with element_get values\nkling element_get ELEMENT_ID\nkling omni_ref_video --model kling-video-v4_0 \\\n  --elements '[{\"id\":\"ELEMENT_ID\",\"bindName\":\"Alice\",\"type\":\"image\"}]' \\\n  --aspectRatio 16:9 \"<<<ELEMENT_ID>>> walks along the beach\" --poll 300\n```\n\nFind subjects with `element_list`. `--elements` takes a JSON array string of `{id, bindName, type}`;\nreference the same ID as `<<<id>>>` in the prompt. Elements can accompany `--image` and `--video`.\nWith Elements alone, choose an explicit ratio if the model's `auto` requires an image/video input.\nSee `kling omni_ref_video --help` for the full format and model-specific limits.\n\nV4 Omni-Ref is billed per second, including input video duration. Its current declaration accepts up to\n10 images, 5 videos, and 7 Elements (up to 3 video Elements), with 15 references combined.\nStandalone audio depends on the live `audio_N` slots: the new standard 4.0 declaration supports up to\n3 audio references; Flash declares none. Connections without audio slots reject `--audio`.\nLocal audio is automatically uploaded and counted toward the declared combined cap.\n`enable_audio` and `keepOriginalSound` cannot both be true.\nConfirm current limits and Element types with `who_am_i` and `element_get` before submitting.\n\n### Task Query And Upload\n\n```bash\nkling query_tasks <generationId>\nkling query_tasks <generationId> --poll 120\nkling file_upload ./photo.jpg\nkling account\n```\n\n### Elements And Motion Control\n\n```bash\nkling element_create --name \"Alice\" --description \"red-haired detective\" --tag 角色 \\\n  --cover ./front.png --secondary ./side.png\nkling element_list\nkling element_get <elementId>\nkling element_update <elementId> --description \"new description\" # Other fields and the original cover are preserved\n\nkling motion_library_list\nkling motion_control --model <model> --image ./subject.png --motionId <id> \\\n  --motionDirection image_direction \"跟随参考动作，保持主体外观\" --poll 300\n```\n\n## Output And Exit Codes\n\nstdout is formatted JSON by default. `--quiet` prints compact single-line JSON. Progress and diagnostics are written to stderr.\n\nExit codes: `0` for success, `1` for failure, and `130` for user cancellation.\n\nCredentials are saved locally under `~/.kling/`. The CLI never prints tokens or secrets.\n\nIn a real terminal, `element_update` prompts for a missing `elementId` first; `motion_control` prompts for a missing model, motion source, and server-declared required generation arguments before uploading files. Non-interactive environments (agents, pipes, CI) never stop for prompts; missing values fail with a non-zero exit code.\n\n## License\n\nSee `LICENSE` in the package.\n","readmeFilename":"README.md"}