{"id":18197,"library":"cdk-cli","title":"cdk-cli","description":"cdk-cli is an unofficial AWS CDK CLI helper that provides additional utility commands for AWS CDK applications. The package is version 1.1.0 and is in maintenance mode; it does not replace the official AWS CDK CLI but offers shortcuts and wrappers. Its key differentiator is simplifying common CDK workflows, though it lacks active documentation and may have limited community support compared to the official tool.","status":"maintenance","version":"1.1.0","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","AWS","CDK","CLI"],"install":[{"cmd":"npm install cdk-cli","lang":"bash","label":"npm"},{"cmd":"yarn add cdk-cli","lang":"bash","label":"yarn"},{"cmd":"pnpm add cdk-cli","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"The package exports a single default function.","symbol":"default","correct":"import cdkCli from 'cdk-cli';"},{"note":"Named export available as an alternative to default import.","wrong":"const CdkCli = require('cdk-cli');","symbol":"CdkCli","correct":"import { CdkCli } from 'cdk-cli';"},{"note":"The 'run' function is a named export, not default.","wrong":"import run from 'cdk-cli';","symbol":"run","correct":"import { run } from 'cdk-cli';"}],"quickstart":{"code":"import cdkCli from 'cdk-cli';\n\nasync function main() {\n  const result = await cdkCli({\n    command: 'deploy',\n    stack: 'MyStack',\n    profile: 'default',\n  });\n  console.log(result);\n}\n\nmain().catch(console.error);","lang":"javascript","description":"Shows basic usage of the default import to execute a CDK deploy command with options."},"warnings":[{"fix":"Migrate to the official AWS CDK CLI tool.","message":"Package is no longer actively maintained; use official AWS CDK CLI instead.","severity":"deprecated","affected_versions":">=1.0.0"},{"fix":"Double-check command names and stack names before calling the function.","message":"The package does not validate command arguments; invalid commands may cause silent failures.","severity":"gotcha","affected_versions":"*"},{"fix":"Update calls to pass an object with 'command' and 'stack' properties instead of a single string.","message":"In version 1.1.0, the signature of the default export changed from accepting a string to an object.","severity":"breaking","affected_versions":">=1.1.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Use 'import cdkCli from 'cdk-cli'' or 'import { CdkCli } from 'cdk-cli''.","cause":"Incorrect import naming; using a named export that doesn't exist.","error":"TypeError: cdkCli is not a function"},{"fix":"Run 'npm install cdk-cli' to install the package.","cause":"Package not installed or not in node_modules.","error":"Error: Cannot find module 'cdk-cli'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}