Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ USAGE
* [`swaggerhub project:get OWNER/PROJECT_NAME`](#swaggerhub-projectget)
* [`swaggerhub project:list [OWNER]`](#swaggerhub-projectlist)
* [`swaggerhub project:member:list OWNER/PROJECT_NAME`](#swaggerhub-projectmemberlist)
* [`swaggerhub spectral:upload OWNER/RULESET_NAME/VERSION directory`](#swaggerhub-spectralupload)
* [`swaggerhub spectral:download OWNER/RULESET_NAME/VERSION directory`](#swaggerhub-spectraldownload)

## `swaggerhub api:create`

Expand Down Expand Up @@ -1372,6 +1374,55 @@ EXAMPLES
```

_See code: [src/commands/project/member/list.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.9.1/src/commands/project/member/list.js)_

## `swaggerhub spectral:upload`

Create or update organization's Spectral ruleset

```
USAGE
$ swaggerhub spectral:upload OWNER/RULESET_NAME/VERSION directory [-h]

ARGUMENTS
OWNER/RULESET_NAME/[VERSION] The Spectral ruleset details for SwaggerHub organization
directory Relative path to directory with ruleset files

FLAGS
-h, --help Show CLI help.

DESCRIPTION
Create or update organization's Spectral ruleset

EXAMPLES
$ swaggerhub spectral:upload my_organization/my_api_ruleset/1.0.0 rules
```

_See code: [src/commands/spectral/upload.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.9.1/src/commands/spectral/upload.js)_


## `swaggerhub spectral:download`

Fetch organization's Spectral ruleset

```
USAGE
$ swaggerhub spectral:download OWNER/RULESET_NAME/VERSION directory [-h]

ARGUMENTS
OWNER/RULESET_NAME/[VERSION] The Spectral ruleset details for SwaggerHub organization
directory Relative path to directory the ruleset files should be saved to

FLAGS
-h, --help Show CLI help.

DESCRIPTION
Fetch organization's Spectral ruleset

EXAMPLES
$ swaggerhub spectral:download my_organization/my_api_ruleset/1.0.0 rules
```

_See code: [src/commands/spectral/download.js](https://github.com/SmartBear/swaggerhub-cli/blob/v0.9.1/src/commands/spectral/download.js)_
<!-- commandsstop -->

# Plugins
Expand Down
Loading