Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@useoptic/cli
Advanced tools
CLI to document your API and generate artifacts
$ npm install -g @useoptic/cli
$ api COMMAND
running command...
$ api (-v|--version|version)
@useoptic/cli/9.0.3 linux-x64 node-v12.20.1
$ api --help [COMMAND]
USAGE
$ api COMMAND
...
api check [TASKNAME]
api generate:oas
api help [COMMAND]
api init
api login
api logout
api run [TASKNAME]
api scripts [SCRIPTNAME]
api spec
api start
api check [TASKNAME]
Validate the correctness of a task in your optic.yml
USAGE
$ api check [TASKNAME]
See code: src/commands/check.ts
api generate:oas
export an OpenAPI 3.0.1 spec
USAGE
$ api generate:oas
OPTIONS
--json
--yaml
See code: src/commands/generate/oas.ts
api help [COMMAND]
display help for api
USAGE
$ api help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
api init
Add Optic to your API
USAGE
$ api init
OPTIONS
--command=command
--inboundUrl=inboundUrl
--targetUrl=targetUrl
See code: src/commands/init.ts
api login
Login to Optic from the CLI
USAGE
$ api login
See code: src/commands/login.ts
api logout
Logout from Optic
USAGE
$ api logout
See code: src/commands/logout.ts
api run [TASKNAME]
Run a task from your optic.yml
USAGE
$ api run [TASKNAME]
OPTIONS
-c, --collect-coverage
-d, --collect-diffs
See code: src/commands/run.ts
api scripts [SCRIPTNAME]
Run one of the scripts in your optic.yml file
USAGE
$ api scripts [SCRIPTNAME]
OPTIONS
-i, --install
See code: src/commands/scripts.ts
api spec
Open your Optic API specification
USAGE
$ api spec
See code: src/commands/spec.ts
api start
starts your API process behind an Optic proxy
USAGE
$ api start
OPTIONS
-c, --collect-coverage
-d, --collect-diffs
See code: src/commands/start.ts
FAQs
API CLI from Optic. Document and test your APIs as you build them.
The npm package @useoptic/cli receives a total of 9 weekly downloads. As such, @useoptic/cli popularity was classified as not popular.
We found that @useoptic/cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.