{ "name": "@asyncapi/cli", "description": "All in one CLI for all AsyncAPI tools", "version": "6.3.1", "author": "@asyncapi", "bin": { "asyncapi": "./bin/run_bin" }, "repository": { "url": "git+https://github.com/asyncapi/cli.git", "type": "git" }, "bugs": "https://github.com/asyncapi/cli/issues", "workspaces": [ ".", "packages/*" ], "dependencies": { "@asyncapi/avro-schema-parser": "^3.1.0", "@asyncapi/bundler": "^1.1.1", "@asyncapi/converter": "^2.0.1", "@asyncapi/diff": "^0.6.1", "@asyncapi/generator": "^3.2.0", "@asyncapi/modelina-cli": "^5.10.1", "@asyncapi/openapi-schema-parser": "^3.1.0", "@asyncapi/optimizer": "^2.0.1", "@asyncapi/parser": "^3.6.2", "@asyncapi/problem": "^1.0.0", "@asyncapi/protobuf-schema-parser": "^3.8.3", "@asyncapi/raml-dt-schema-parser": "^4.0.24", "@clack/prompts": "^0.11.0", "@oclif/core": "^4.8.0", "@oclif/plugin-autocomplete": "^3.2.39", "@smoya/asyncapi-adoption-metrics": "^2.4.9", "@stoplight/spectral-cli": "6.15.1", "archiver": "^7.0.1", "body-parser": "^2.2.1", "chalk": "^4.1.2", "chokidar": "^4.0.3", "compression": "^1.8.1", "config": "^4.1.1", "cors": "^2.8.5", "express": "^5.2.1", "fast-levenshtein": "^3.0.0", "fs-extra": "^11.3.2", "helmet": "^8.1.0", "https-proxy-agent": "^7.0.6", "inquirer": "^8.2.6", "js-yaml": "^4.1.1", "oclif": "^4.22.57", "open": "^8.4.2", "picocolors": "^1.1.1", "redoc-express": "^2.1.3", "unzipper": "^0.12.3", "uuid": "^14.0.0", "winston": "^3.19.0", "ws": "^8.18.3", "yaml": "^2.8.2" }, "devDependencies": { "@asyncapi/minimaltemplate": "./test/fixtures/minimaltemplate", "@asyncapi/newtemplate": "./test/fixtures/newtemplate", "@asyncapi/studio": "^1.2.0", "@eslint/js": "^9.39.2", "@oclif/test": "^3.2.15", "@types/archiver": "^7.0.0", "@types/body-parser": "^1.19.6", "@types/chai": "^5.2.3", "@types/compression": "^1.8.1", "@types/config": "^3.3.5", "@types/cors": "^2.8.19", "@types/express": "^5.0.6", "@types/fast-levenshtein": "^0.0.4", "@types/fs-extra": "^11.0.4", "@types/inquirer": "^9.0.9", "@types/js-yaml": "^4.0.9", "@types/mocha": "^10.0.10", "@types/node": "^25.0.3", "@types/sinon": "^22.0.0", "@types/supertest": "^6.0.3", "@types/ws": "^8.18.1", "@typescript-eslint/eslint-plugin": "^8.50.0", "@typescript-eslint/parser": "^8.50.0", "c8": "^10.1.3", "chai": "^6.2.1", "cross-env": "^10.1.0", "eslint": "^9.39.2", "eslint-config-oclif": "^6", "eslint-plugin-github": "^6.0.0", "eslint-plugin-security": "^3.0.1", "eslint-plugin-sonarjs": "^3.0.5", "esmock": "^2.7.6", "markdown-toc": "^1.2.0", "mocha": "^11.7.5", "nodemon": "^3.1.11", "puppeteer": "^24.33.0", "rimraf": "^6.1.2", "simple-git": "^4.0.1", "sinon": "^22.0.0", "supertest": "^7.1.4", "ts-node": "^10.9.2", "tsc-alias": "^1.8.16", "tsconfig-paths": "^4.2.0", "turbo": "^2.9.14", "typescript": "^5.9.3", "@changesets/cli": "2.29.8", "@changesets/changelog-git": "0.2.1" }, "engines": { "node": ">=24.11.0" }, "packageManager": "npm@11.6.2", "files": [ "/bin", "/lib", "/assets", "!/assets/server-api.png", "/scripts", "/npm-shrinkwrap.json", "/openapi.yaml", "/oclif.manifest.json" ], "homepage": "https://github.com/asyncapi/cli", "keywords": [ "oclif" ], "license": "Apache-2.0", "main": "lib/index.js", "oclif": { "commands": "./lib/apps/cli/commands", "bin": "asyncapi", "additionalVersionFlags": [ "--v" ], "hooks": { "command_not_found": [ "./lib/apps/cli/internal/hooks/command_not_found/myhook" ] }, "macos": { "identifier": "com.asyncapi.cli" }, "topicSeparator": " ", "topics": { "config:context": {}, "config": { "description": "CLI config settings" }, "generate": { "description": "Generate models and template" } }, "plugins": [ "@oclif/plugin-warn-if-update-available", "@oclif/plugin-autocomplete" ], "warn-if-update-available": { "frequency": 24, "message": "\n<%= chalk.yellow('╭────────────────────────────────────────────────────────────────╮') %>\n<%= chalk.yellow('│ │') %>\n<%= chalk.yellow('│') %> Update available! <%= chalk.red(config.version) %> → <%= chalk.greenBright(latest) %>. <%= chalk.yellow('│') %>\n<%= chalk.yellow('│') %> <%= chalk.magentaBright('Changelog:') %> https://github.com/asyncapi/cli/releases/tag/v<%= latest %> <%= chalk.yellow('│') %>\n<%= chalk.yellow('│') %> Run \"<%= chalk.magentaBright('npm install -g @asyncapi/cli@latest') %>\" to update. <%= chalk.yellow('│') %>\n<%= chalk.yellow('│') %> <%= chalk.yellow('│') %>\n<%= chalk.yellow('╰────────────────────────────────────────────────────────────────╯') %>", "frequencyUnit": "hours" } }, "publishConfig": { "access": "public" }, "optionalDependencies": { "fsevents": "^2.3.3" }, "scripts": { "build": "turbo run build --filter=\"!@asyncapi/cli\" && rimraf lib && node scripts/fetch-asyncapi-example.js && npm run generate:languages && tsc && tsc-alias --project tsconfig.json && oclif manifest && echo \"Build Completed\"", "optimizer:build": "turbo run build --filter=@asyncapi/optimizer", "optimizer:test": "turbo run test --filter=@asyncapi/optimizer", "diff:build": "turbo run build --filter=@asyncapi/diff", "diff:test": "turbo run test --filter=@asyncapi/diff", "bundler:build": "turbo run build --filter=@asyncapi/bundler", "bundler:test": "turbo run test --filter=@asyncapi/bundler", "bump:github-action": "node github-action/lib/bump-action-version.js", "bump:version": "changeset version && node github-action/lib/bump-action-version.js --refresh-lock", "dev": "tsc --watch", "docker:build": "docker build -t asyncapi/cli:latest .", "generate:readme:create": "node -e \"const fs = require('fs'); fs.writeFileSync('scripts/README.md', '# Usage\\n\\n\\n\\n# Commands\\n\\n\\n');\"", "generate:readme:commands": "npm run build && cd scripts && cross-env DEBUG=* oclif readme", "generate:assets": "npm run generate:readme:toc && npm run generate:commands", "generate:commands": "npm run generate:readme:create && npm run generate:readme:commands && node ./scripts/updateUsageDocs.js && rimraf ./scripts/README.md", "generate:readme:toc": "markdown-toc -i README.md", "generate:languages": "node scripts/generateTypesForGenerateCommand.js", "lint": "eslint --max-warnings 5 .", "lint:fix": "eslint --max-warnings 5 . --fix", "pack:macos": "oclif pack macos --targets darwin-arm64,darwin-x64 && npm run pack:rename", "pack:linux": "oclif pack deb && npm run pack:rename", "pack:tarballs": "oclif pack tarballs -t linux-x64 && npm run pack:rename", "pack:tarballs:alpine": "oclif pack tarballs -t linux-x64 && npm run pack:rename alpine", "pack:windows": "oclif pack win --targets win32-x64 && npm run pack:rename", "pack:rename": "node scripts/releasePackagesRename.js", "pretarball": "node ./scripts/pretarball.js", "publish:trusted": "node scripts/publish-trusted.js", "prepublishOnly": "npm run build", "pretest": "npm run build", "pretest:coverage": "npm run build", "posttest": "rimraf ./test.asyncapi-cli", "postinstall": "node ./scripts/enableAutoComplete.js", "test": "npm run optimizer:test && npm run diff:test && npm run bundler:test && npm run cli:test && npm run action:test", "cli:test": "cross-env NODE_ENV=development TEST=1 CUSTOM_CONTEXT_FILENAME=\"test.asyncapi-cli\" CUSTOM_CONTEXT_FILE_LOCATION=\".\" NODE_CONFIG_DIR=\"./src/apps/api/configs\" c8 mocha --require ts-node/register --require tsconfig-paths/register --require test/helpers/init.js --reporter spec --timeout 100000 \"test/**/*.test.ts\"", "unit:test": "cross-env NODE_ENV=development TEST=1 CUSTOM_CONTEXT_FILENAME=\"test.asyncapi-cli\" CUSTOM_CONTEXT_FILE_LOCATION=\".\" NODE_CONFIG_DIR=\"./src/apps/api/configs\" c8 mocha --require ts-node/register --require tsconfig-paths/register --require test/helpers/init.js --reporter spec --timeout 100000 \"test/unit/**/*.test.ts\"", "test:one": "cross-env NODE_ENV=development TEST=1 CUSTOM_CONTEXT_FILENAME=\"test.asyncapi-cli\" CUSTOM_CONTEXT_FILE_LOCATION=\".\" NODE_CONFIG_DIR=\"./src/apps/api/configs\" c8 mocha --require ts-node/register --require tsconfig-paths/register --require test/helpers/init.js --reporter spec --timeout 100000", "get-version": "echo $npm_package_version", "createhook": "oclif generate hook myhook --event=command_not_found", "createhookinit": "oclif generate hook inithook --event=init", "action:docker:build": "docker build -f github-action/Dockerfile -t asyncapi/github-action-for-cli:latest .", "action:test": "npm run build && cd github-action && make test", "api:dev": "cross-env NODE_ENV=development PORT=3000 nodemon", "api:prod": "npm run api:build && cross-env NODE_ENV=production PORT=80 node lib/apps/api/server.js", "api:docker": "docker run -it -p 80:80 asyncapi/server-api", "api:build:docker": "docker build -t asyncapi/server-api -f ./src/apps/api/Dockerfile .", "api:build": "rimraf lib && npm run generate:languages && tsc && tsc-alias --project tsconfig.json", "api:test": "" }, "types": "lib/index.d.ts" }