
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
api-console-cli
Advanced tools
The command-line tool for the API Console Web Component.
![]()
Note: This version does not work with API console version 4.
This CLI tool works with version 5 which is still in preview.
Please, use version 0.2.12.
$ npm install -g api-console-cli@0.2.12
![]()
$ npm install -g api-console-cli
api-console [COMMAND] --helpRun api-console --help to get a list of supported commands. Pass it a command name (ex: api-console build --help) to get detailed information about that command and the options it supports.
api-console [COMMAND] [--options] --no-gaDisables Google Analytics and asking to enable Google Analytics. Should be used in automated environment. The library detects most common CI environments.
api-console build [options] -a path/to/api.raml -t "RAML 1.0"NOTE until API console version 5 is in preview add -n "5.0.0-preview-1" to the command to install preview version.
Builds the API Console for specific API definition. The build is optimized for production, meaning code bundling and minification.
By default this tool support RAML and OAS.
Run api-console build --help for the full list of available options & optimizations.
Detailed description of all options you can find here: api-console build doc
api-console generate-json <RAML PATH> [options]Creates a JSON file from the RAML spec that can be used as a data source for the API Console.
One of the optimization options it to create a JSON file instead of parsing YAML in the browser. This command allows you to create / regenerate this JSON file instead of rebuilding the whole console.
Run api-console generate-json --help for the full list of available options & optimizations.
Detailed description of all options you can find here: api-console generate-json doc
api-console serve [options] [path]Runs a local web server serving a content of the current directory or selected path.
Detailed description of all options you can find here: api-console serve doc
Your feedback is welcome. If you need support for a method, command options other than described here please, file a feature request. If you find a bug, please, file a bug report with details so we can fix it.
This CLI tool will ask you if you allow to send anonymous data to Google Analytics. This allows us to see how the tool is used and improve your experience in the future (by, for example, providing better default options). None of your data are sent to the analytics server. You can check collected data in source files.
You can always say no when asked to share the data or pass --no-ga argument when executing the command. The tool detects CI environment and skips any GA questions or tracking. If the build fails due the question pass the --no-ga option.
FAQs
A set of dev tools for API console
The npm package api-console-cli receives a total of 140 weekly downloads. As such, api-console-cli popularity was classified as not popular.
We found that api-console-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.