npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

anypoint-cli-governance-plugin

v1.0.9

Published

governance plugin

Downloads

14,269

Readme

@mulesoft/governance

governance plugin

oclif Version Downloads/week License

Usage

$ npm install -g @mulesoft/anypoint-cli-governance-plugin
$ anypoint-cli-governance-plugin COMMAND
running command...
$ anypoint-cli-governance-plugin (--version)
@mulesoft/anypoint-cli-governance-plugin/1.0.0 darwin-x64 node-v16.14.2
$ anypoint-cli-governance-plugin --help [COMMAND]
USAGE
  $ anypoint-cli-governance-plugin COMMAND
...

Commands

anypoint-cli-governance-plugin conf [KEY] [VALUE]

Manage authentication credentials in a configuration file (config.json)

USAGE
  $ anypoint-cli-governance-plugin conf [KEY] [VALUE] [-h] [-k <value>] [-v <value>] [-d]

ARGUMENTS
  KEY    key of the config
  VALUE  value of the config

FLAGS
  -d, --delete         delete config key
  -h, --help           Show CLI help.
  -k, --key=<value>    key of the config
  -v, --value=<value>  value of the config

DESCRIPTION
  Manage authentication credentials in a configuration file (config.json)
  by adding and removing key value pairs. Set one key value pair per command execution.
  CLI config file: ~/Library/Preferences/anypoint-cli-v4-nodejs/config.json

EXAMPLES
  $ anypoint-cli-governance-plugin conf username myuser

  $ anypoint-cli-governance-plugin conf password mypwd

anypoint-cli-governance-plugin governance:api:evaluate

Evaluate rulesets that may apply to the API.

USAGE
  $ anypoint-cli-governance-plugin governance:api:evaluate [--password <value> [--username <value> | --client_id <value> | ]]
    [--client_secret <value> ] [--bearer <value> |  | ] [--organization <value>] [--environment <value>] [--host
    <value>] [--collectMetrics] [--criteria <value>] [--api <value>]

FLAGS
  --api=<value>                 The API
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER environment variable.
  --client_id=<value>           Client ID. You can define this in the ANYPOINT_CLIENT_ID environment variable.
  --client_secret=<value>       Client Secret. You can define this in the ANYPOINT_CLIENT_SECRET environment variable.
  --collectMetrics              collect metrics. You can define this in the COLLECT_METRICS environment variable.
  --criteria=<value>            A list of filters separated by commas, where each filter has a type and value in the
                                format filterType:filterValue. Available filters include category, tag, and scope (the
                                targeted API types). Example: tag:tag1,category:category1:value,category:category2:value
                                2,scope:async-api,scope:rest-api
  --environment=<value>         Environment Name. You can define this in the ANYPOINT_ENV environment variable.
  --host=anypoint.mulesoft.com  [default: anypoint.mulesoft.com] Host URL. You can define this in the ANYPOINT_HOST
                                environment variable.
  --organization=<value>        Organization Name. You can define this in the ANYPOINT_ORG environment variable.
  --password=<value>            Password. You can define this in the ANYPOINT_PASSWORD environment variable.
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  Evaluate rulesets that may apply to the API.

See code: src/commands/governance/api/evaluate.ts

anypoint-cli-governance-plugin governance:api:inspect INPUT

Inspects an API definition to determine the included types.

USAGE
  $ anypoint-cli-governance-plugin governance:api:inspect [INPUT] [--password <value> [--username <value> | --client_id
    <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization <value>] [--environment <value>]
    [--host <value>] [--collectMetrics]

FLAGS
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER environment variable.
  --client_id=<value>           Client ID. You can define this in the ANYPOINT_CLIENT_ID environment variable.
  --client_secret=<value>       Client Secret. You can define this in the ANYPOINT_CLIENT_SECRET environment variable.
  --collectMetrics              collect metrics. You can define this in the COLLECT_METRICS environment variable.
  --environment=<value>         Environment Name. You can define this in the ANYPOINT_ENV environment variable.
  --host=anypoint.mulesoft.com  [default: anypoint.mulesoft.com] Host URL. You can define this in the ANYPOINT_HOST
                                environment variable.
  --organization=<value>        Organization Name. You can define this in the ANYPOINT_ORG environment variable.
  --password=<value>            Password. You can define this in the ANYPOINT_PASSWORD environment variable.
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  Inspects an API definition to determine the included types.

EXAMPLES
  $ anypoint-cli-governance-plugin governance:api:inspect my-healthcare-api.yaml

See code: src/commands/governance/api/inspect.ts

anypoint-cli-governance-plugin governance:api:validate SPEC

Validate an API definition against the ruleset

USAGE
  $ anypoint-cli-governance-plugin governance:api:validate [SPEC] [--password <value> [--username <value> | --client_id
    <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization <value>] [--environment <value>]
    [--host <value>] [--collectMetrics] [--rulesets <value>] [--remote-rulesets <value>] [--remote] [--force]

FLAGS
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER environment variable.
  --client_id=<value>           Client ID. You can define this in the ANYPOINT_CLIENT_ID environment variable.
  --client_secret=<value>       Client Secret. You can define this in the ANYPOINT_CLIENT_SECRET environment variable.
  --collectMetrics              collect metrics. You can define this in the COLLECT_METRICS environment variable.
  --environment=<value>         Environment Name. You can define this in the ANYPOINT_ENV environment variable.
  --force                       force
  --host=anypoint.mulesoft.com  [default: anypoint.mulesoft.com] Host URL. You can define this in the ANYPOINT_HOST
                                environment variable.
  --organization=<value>        Organization Name. You can define this in the ANYPOINT_ORG environment variable.
  --password=<value>            Password. You can define this in the ANYPOINT_PASSWORD environment variable.
  --remote                      Remote API definition. API definition should be specified using group/asset/version
                                format
  --remote-rulesets=<value>...  Remote Ruleset files to add to validation, separated by comma
  --rulesets=<value>...         Ruleset files to add to validation, separated by comma
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  Validate an API definition against the ruleset

See code: src/commands/governance/api/validate.ts

anypoint-cli-governance-plugin governance:document RULESET FILE

Document Ruleset definition.

USAGE
  $ anypoint-cli-governance-plugin governance:document [RULESET] [FILE] [--single-page]

FLAGS
  --single-page  Create a single page for documentation

DESCRIPTION
  Document Ruleset definition.

See code: src/commands/governance/document.ts

anypoint-cli-governance-plugin governance:profile:create PROFILE-NAME RULESET-ASSET-IDENTIFIERS

Creates a new profile.Argument "ruleset-asset-identifiers" should be a list of ruleset asset identifiers formatted as follows: <group_id>/<asset_id>/,<group_id>/<asset_id>/.

USAGE
  $ anypoint-cli-governance-plugin governance:profile:create [PROFILE-NAME] [RULESET-ASSET-IDENTIFIERS] [--password <value>
    [--username <value> | --client_id <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization
    <value>] [--environment <value>] [--host <value>] [--collectMetrics] [-o <value>] [--description <value>]
    [--criteria <value>]

FLAGS
  -o, --output=<value>          [default: table] Format for commands output. Supported values are table (default) and
                                json
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER environment variable.
  --client_id=<value>           Client ID. You can define this in the ANYPOINT_CLIENT_ID environment variable.
  --client_secret=<value>       Client Secret. You can define this in the ANYPOINT_CLIENT_SECRET environment variable.
  --collectMetrics              collect metrics. You can define this in the COLLECT_METRICS environment variable.
  --criteria=<value>            A list of filters separated by commas, where each filter has a type and value in the
                                format filterType:filterValue. Available filters include category, tag, and scope (the
                                targeted API types). Example: tag:tag1,category:category1:value,category:category2:value
                                2,scope:async-api,scope:rest-api
  --description=<value>         Profile description
  --environment=<value>         Environment Name. You can define this in the ANYPOINT_ENV environment variable.
  --host=anypoint.mulesoft.com  [default: anypoint.mulesoft.com] Host URL. You can define this in the ANYPOINT_HOST
                                environment variable.
  --organization=<value>        Organization Name. You can define this in the ANYPOINT_ORG environment variable.
  --password=<value>            Password. You can define this in the ANYPOINT_PASSWORD environment variable.
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  Creates a new profile.Argument "ruleset-asset-identifiers" should be a list of ruleset asset identifiers formatted as
  follows: <group_id>/<asset_id>/<version>,<group_id>/<asset_id>/<version>.

See code: src/commands/governance/profile/create.ts

anypoint-cli-governance-plugin governance:profile:delete PROFILE-ID

Delete specific profile.

USAGE
  $ anypoint-cli-governance-plugin governance:profile:delete [PROFILE-ID] [--password <value> [--username <value> | --client_id
    <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization <value>] [--environment <value>]
    [--host <value>] [--collectMetrics]

FLAGS
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER environment variable.
  --client_id=<value>           Client ID. You can define this in the ANYPOINT_CLIENT_ID environment variable.
  --client_secret=<value>       Client Secret. You can define this in the ANYPOINT_CLIENT_SECRET environment variable.
  --collectMetrics              collect metrics. You can define this in the COLLECT_METRICS environment variable.
  --environment=<value>         Environment Name. You can define this in the ANYPOINT_ENV environment variable.
  --host=anypoint.mulesoft.com  [default: anypoint.mulesoft.com] Host URL. You can define this in the ANYPOINT_HOST
                                environment variable.
  --organization=<value>        Organization Name. You can define this in the ANYPOINT_ORG environment variable.
  --password=<value>            Password. You can define this in the ANYPOINT_PASSWORD environment variable.
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  Delete specific profile.

See code: src/commands/governance/profile/delete.ts

anypoint-cli-governance-plugin governance:profile:info PROFILEID

Show info for specific profile

USAGE
  $ anypoint-cli-governance-plugin governance:profile:info [PROFILEID] [--password <value> [--username <value> | --client_id
    <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization <value>] [--environment <value>]
    [--host <value>] [--collectMetrics] [-o <value>]

FLAGS
  -o, --output=<value>          [default: table] Format for commands output. Supported values are table (default) and
                                json
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER environment variable.
  --client_id=<value>           Client ID. You can define this in the ANYPOINT_CLIENT_ID environment variable.
  --client_secret=<value>       Client Secret. You can define this in the ANYPOINT_CLIENT_SECRET environment variable.
  --collectMetrics              collect metrics. You can define this in the COLLECT_METRICS environment variable.
  --environment=<value>         Environment Name. You can define this in the ANYPOINT_ENV environment variable.
  --host=anypoint.mulesoft.com  [default: anypoint.mulesoft.com] Host URL. You can define this in the ANYPOINT_HOST
                                environment variable.
  --organization=<value>        Organization Name. You can define this in the ANYPOINT_ORG environment variable.
  --password=<value>            Password. You can define this in the ANYPOINT_PASSWORD environment variable.
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  Show info for specific profile

See code: src/commands/governance/profile/info.ts

anypoint-cli-governance-plugin governance:profile:list

List profiles from the organization

USAGE
  $ anypoint-cli-governance-plugin governance:profile:list [--password <value> [--username <value> | --client_id <value> | ]]
    [--client_secret <value> ] [--bearer <value> |  | ] [--organization <value>] [--environment <value>] [--host
    <value>] [--collectMetrics] [-o <value>]

FLAGS
  -o, --output=<value>          [default: table] Format for commands output. Supported values are table (default) and
                                json
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER environment variable.
  --client_id=<value>           Client ID. You can define this in the ANYPOINT_CLIENT_ID environment variable.
  --client_secret=<value>       Client Secret. You can define this in the ANYPOINT_CLIENT_SECRET environment variable.
  --collectMetrics              collect metrics. You can define this in the COLLECT_METRICS environment variable.
  --environment=<value>         Environment Name. You can define this in the ANYPOINT_ENV environment variable.
  --host=anypoint.mulesoft.com  [default: anypoint.mulesoft.com] Host URL. You can define this in the ANYPOINT_HOST
                                environment variable.
  --organization=<value>        Organization Name. You can define this in the ANYPOINT_ORG environment variable.
  --password=<value>            Password. You can define this in the ANYPOINT_PASSWORD environment variable.
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  List profiles from the organization

See code: src/commands/governance/profile/list.ts

anypoint-cli-governance-plugin governance:profile:update PROFILEID

Modifies the profile

USAGE
  $ anypoint-cli-governance-plugin governance:profile:update [PROFILEID] [--password <value> [--username <value> | --client_id
    <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization <value>] [--environment <value>]
    [--host <value>] [--collectMetrics] [--ruleset-asset-identifiers <value>] [--profile-name <value>] [--criteria
    <value>] [--description <value>]

FLAGS
  --bearer=<value>                     Token Bearer. You can define this in the ANYPOINT_BEARER environment variable.
  --client_id=<value>                  Client ID. You can define this in the ANYPOINT_CLIENT_ID environment variable.
  --client_secret=<value>              Client Secret. You can define this in the ANYPOINT_CLIENT_SECRET environment
                                       variable.
  --collectMetrics                     collect metrics. You can define this in the COLLECT_METRICS environment variable.
  --criteria=<value>                   A list of filters separated by commas, where each filter has a type and value in
                                       the format filterType:filterValue. Available filters include category, tag, and
                                       scope (the targeted API types). Example: tag:tag1,category:category1:value,catego
                                       ry:category2:value2,scope:async-api,scope:rest-api
  --description=<value>                Profile description
  --environment=<value>                Environment Name. You can define this in the ANYPOINT_ENV environment variable.
  --host=anypoint.mulesoft.com         [default: anypoint.mulesoft.com] Host URL. You can define this in the
                                       ANYPOINT_HOST environment variable.
  --organization=<value>               Organization Name. You can define this in the ANYPOINT_ORG environment variable.
  --password=<value>                   Password. You can define this in the ANYPOINT_PASSWORD environment variable.
  --profile-name=<value>               Profile name
  --ruleset-asset-identifiers=<value>  Asset identifiersArgument "ruleset-asset-identifiers" should be a list of ruleset
                                       asset identifiers formatted as follows:
                                       <group_id>/<asset_id>/<version>,<group_id>/<asset_id>/<version>.
  --username=<value>                   Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  Modifies the profile

See code: src/commands/governance/profile/update.ts

anypoint-cli-governance-plugin governance:ruleset:clone RULESET TITLE DESCRIPTION

Create a new ruleset from another

USAGE
  $ anypoint-cli-governance-plugin governance:ruleset:clone [RULESET] [TITLE] [DESCRIPTION] [--password <value> [--username
    <value> | --client_id <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization <value>]
    [--environment <value>] [--host <value>] [--collectMetrics] [--remote] [--error <value>] [--warning <value>] [--info
    <value>] [--remove <value>]

FLAGS
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER environment variable.
  --client_id=<value>           Client ID. You can define this in the ANYPOINT_CLIENT_ID environment variable.
  --client_secret=<value>       Client Secret. You can define this in the ANYPOINT_CLIENT_SECRET environment variable.
  --collectMetrics              collect metrics. You can define this in the COLLECT_METRICS environment variable.
  --environment=<value>         Environment Name. You can define this in the ANYPOINT_ENV environment variable.
  --error=<value>               List of error rules, separated by comma
  --host=anypoint.mulesoft.com  [default: anypoint.mulesoft.com] Host URL. You can define this in the ANYPOINT_HOST
                                environment variable.
  --info=<value>                List of info rules, separated by comma
  --organization=<value>        Organization Name. You can define this in the ANYPOINT_ORG environment variable.
  --password=<value>            Password. You can define this in the ANYPOINT_PASSWORD environment variable.
  --remote                      The ruleset for which to list information is published in Exchange. Ruleset should be
                                specified using group/asset/version format
  --remove=<value>              List of rules to remove, separated by comma
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.
  --warning=<value>             List of warning rules, separated by comma

DESCRIPTION
  Create a new ruleset from another

See code: src/commands/governance/ruleset/clone.ts

anypoint-cli-governance-plugin governance:ruleset:info RULESET

List ruleset rules

USAGE
  $ anypoint-cli-governance-plugin governance:ruleset:info [RULESET] [--password <value> [--username <value> | --client_id
    <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization <value>] [--environment <value>]
    [--host <value>] [--collectMetrics] [--remote]

FLAGS
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER environment variable.
  --client_id=<value>           Client ID. You can define this in the ANYPOINT_CLIENT_ID environment variable.
  --client_secret=<value>       Client Secret. You can define this in the ANYPOINT_CLIENT_SECRET environment variable.
  --collectMetrics              collect metrics. You can define this in the COLLECT_METRICS environment variable.
  --environment=<value>         Environment Name. You can define this in the ANYPOINT_ENV environment variable.
  --host=anypoint.mulesoft.com  [default: anypoint.mulesoft.com] Host URL. You can define this in the ANYPOINT_HOST
                                environment variable.
  --organization=<value>        Organization Name. You can define this in the ANYPOINT_ORG environment variable.
  --password=<value>            Password. You can define this in the ANYPOINT_PASSWORD environment variable.
  --remote                      The ruleset for which to list information is published in Exchange. Ruleset should be
                                specified using group/asset/version format
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  List ruleset rules

See code: src/commands/governance/ruleset/info.ts

anypoint-cli-governance-plugin governance:ruleset:init SCHEMA

Initializes a governance ruleset definition based on a data schema

USAGE
  $ anypoint-cli-governance-plugin governance:ruleset:init [SCHEMA] [--password <value> [--username <value> | --client_id
    <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization <value>] [--environment <value>]
    [--host <value>] [--collectMetrics] [--types <value>] [--name <value>]

FLAGS
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER environment variable.
  --client_id=<value>           Client ID. You can define this in the ANYPOINT_CLIENT_ID environment variable.
  --client_secret=<value>       Client Secret. You can define this in the ANYPOINT_CLIENT_SECRET environment variable.
  --collectMetrics              collect metrics. You can define this in the COLLECT_METRICS environment variable.
  --environment=<value>         Environment Name. You can define this in the ANYPOINT_ENV environment variable.
  --host=anypoint.mulesoft.com  [default: anypoint.mulesoft.com] Host URL. You can define this in the ANYPOINT_HOST
                                environment variable.
  --name=<value>                [default: GeneratedRuleset] Name of the ruleset. Defaults to GeneratedRuleset
  --organization=<value>        Organization Name. You can define this in the ANYPOINT_ORG environment variable.
  --password=<value>            Password. You can define this in the ANYPOINT_PASSWORD environment variable.
  --types=<value>...            [default: ] Target API types for which to initialize rules. If no types are specified,
                                rules for every type are generated
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  Initializes a governance ruleset definition based on a data schema

See code: src/commands/governance/ruleset/init.ts

anypoint-cli-governance-plugin governance:ruleset:validate RULESET

Validate Ruleset definition

USAGE
  $ anypoint-cli-governance-plugin governance:ruleset:validate [RULESET] [--password <value> [--username <value> | --client_id
    <value> | ]] [--client_secret <value> ] [--bearer <value> |  | ] [--organization <value>] [--environment <value>]
    [--host <value>] [--collectMetrics]

FLAGS
  --bearer=<value>              Token Bearer. You can define this in the ANYPOINT_BEARER environment variable.
  --client_id=<value>           Client ID. You can define this in the ANYPOINT_CLIENT_ID environment variable.
  --client_secret=<value>       Client Secret. You can define this in the ANYPOINT_CLIENT_SECRET environment variable.
  --collectMetrics              collect metrics. You can define this in the COLLECT_METRICS environment variable.
  --environment=<value>         Environment Name. You can define this in the ANYPOINT_ENV environment variable.
  --host=anypoint.mulesoft.com  [default: anypoint.mulesoft.com] Host URL. You can define this in the ANYPOINT_HOST
                                environment variable.
  --organization=<value>        Organization Name. You can define this in the ANYPOINT_ORG environment variable.
  --password=<value>            Password. You can define this in the ANYPOINT_PASSWORD environment variable.
  --username=<value>            Username. You can define this in the ANYPOINT_USERNAME environment variable.

DESCRIPTION
  Validate Ruleset definition

See code: src/commands/governance/ruleset/validate.ts

anypoint-cli-governance-plugin help [COMMAND]

Display help for anypoint-cli-governance-plugin.

USAGE
  $ anypoint-cli-governance-plugin help [COMMAND] [-n]

ARGUMENTS
  COMMAND  Command to show help for.

FLAGS
  -n, --nested-commands  Include all nested commands in the output.

DESCRIPTION
  Display help for anypoint-cli-governance-plugin.

See code: @oclif/plugin-help

anypoint-cli-governance-plugin version

USAGE
  $ anypoint-cli-governance-plugin version

See code: @oclif/plugin-version