@useoptic/cli
API automation for the modern team
Usage
$ npm install -g @useoptic/cli
$ optic COMMAND
running command...
$ optic (-v|--version|version)
@useoptic/cli/2.1.7 darwin-x64 node-v8.12.0
$ optic --help [COMMAND]
USAGE
$ optic COMMAND
...
Commands
optic api:add APIID APIVERSION
Install an Optic API and generate artifacts (Swagger/OAS, SDKs, etc.)
USAGE
$ optic api:add APIID APIVERSION
ARGUMENTS
APIID "team/api" or "api"
APIVERSION the version of "apiId" you want to consume
OPTIONS
-o, --outputDirectory=outputDirectory directory to output generated artifacts (Swagger/OAS, SDKs, etc.)
See code: src/commands/api/add.ts
optic api:document
document your API contract
USAGE
$ optic api:document
See code: src/commands/api/document.ts
optic api:install
Generates artifacts (Swagger/OAS, SDKs, etc.) for the APIs that have been added via api:add
USAGE
$ optic api:install
OPTIONS
-o, --outputDirectory=outputDirectory (required) directory to output generated artifacts (Swagger/OAS, SDKs, etc.)
See code: src/commands/api/install.ts
optic api:publish
publish your API contract to Optic
USAGE
$ optic api:publish
OPTIONS
-d, --draft
See code: src/commands/api/publish.ts
optic config:check
validate your optic.yml
USAGE
$ optic config:check
See code: src/commands/config/check.ts
optic credentials:add-token
authenticate the CLI
USAGE
$ optic credentials:add-token
See code: src/commands/credentials/add-token.ts
optic help [COMMAND]
display help for optic
USAGE
$ optic help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help