exchange plugin
@mulesoft/exchange
===============




sh-session
$ npm install -g @mulesoft/anypoint-cli-exchange-plugin
$ anypoint-cli-exchange-plugin COMMAND
running command...
$ anypoint-cli-exchange-plugin (--version)
@mulesoft/anypoint-cli-exchange-plugin/0.4.0 darwin-x64 node-v16.14.2
$ anypoint-cli-exchange-plugin --help [COMMAND]
USAGE
$ anypoint-cli-exchange-plugin COMMAND
...
`
Commands
* [anypoint-cli-exchange-plugin conf [KEY] [VALUE]](#anypoint-cli-exchange-plugin-conf-key-value)
* anypoint-cli-exchange-plugin exchange:asset:copy SOURCE TARGET
* anypoint-cli-exchange-plugin exchange:asset:delete ASSETIDENTIFIER
* anypoint-cli-exchange-plugin exchange:asset:deprecate ASSETIDENTIFIER
* anypoint-cli-exchange-plugin exchange:asset:describe ASSETIDENTIFIER
* [anypoint-cli-exchange-plugin exchange:asset:download [ASSETIDENTIFIER] [DIRECTORY]](#anypoint-cli-exchange-plugin-exchangeassetdownload-assetidentifier-directory)
* [anypoint-cli-exchange-plugin exchange:asset:list [SEARCHTEXT]](#anypoint-cli-exchange-plugin-exchangeassetlist-searchtext)
* anypoint-cli-exchange-plugin exchange:asset:modify ASSETIDENTIFIER
* [anypoint-cli-exchange-plugin exchange:asset:mutableDataUpload ASSETIDENTIFIER [PROPERTIES]](#anypoint-cli-exchange-plugin-exchangeassetmutabledataupload-assetidentifier-properties)
* [anypoint-cli-exchange-plugin exchange:asset:page:delete ASSETIDENTIFIER [PAGENAME]](#anypoint-cli-exchange-plugin-exchangeassetpagedelete-assetidentifier-pagename)
* [anypoint-cli-exchange-plugin exchange:asset:page:download ASSETIDENTIFIER DIRECTORY [PAGENAME]](#anypoint-cli-exchange-plugin-exchangeassetpagedownload-assetidentifier-directory-pagename)
* anypoint-cli-exchange-plugin exchange:asset:page:list ASSETIDENTIFIER
* anypoint-cli-exchange-plugin exchange:asset:page:modify ASSETIDENTIFIER PAGENAME
* anypoint-cli-exchange-plugin exchange:asset:page:update ASSETIDENTIFIER PAGENAME MDPATH
* anypoint-cli-exchange-plugin exchange:asset:page:upload ASSETIDENTIFIER PAGENAME MDPATH
* anypoint-cli-exchange-plugin exchange:asset:resource:delete ASSETIDENTIFIER RESOURCEPATH
* anypoint-cli-exchange-plugin exchange:asset:resource:download ASSETIDENTIFIER RESOURCEPATH FILEPATH
* anypoint-cli-exchange-plugin exchange:asset:resource:list ASSETIDENTIFIER
* anypoint-cli-exchange-plugin exchange:asset:resource:upload ASSETIDENTIFIER FILEPATH
* anypoint-cli-exchange-plugin exchange:asset:undeprecate ASSETIDENTIFIER
* anypoint-cli-exchange-plugin exchange:asset:updateStatus ASSETIDENTIFIER
* [anypoint-cli-exchange-plugin exchange:asset:upload ASSETIDENTIFIER [PROPERTIES]](#anypoint-cli-exchange-plugin-exchangeassetupload-assetidentifier-properties)
* [anypoint-cli-exchange-plugin help [COMMAND]](#anypoint-cli-exchange-plugin-help-command)
* anypoint-cli-exchange-plugin versionanypoint-cli-exchange-plugin conf [KEY] [VALUE]Manage authentication credentials in a configuration file (config.json)
`
USAGE
$ anypoint-cli-exchange-plugin conf [KEY] [VALUE] [-h] [-k ] [-v ] [-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= key of the config
-v, --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-exchange-plugin conf username myuser
$ anypoint-cli-exchange-plugin conf password mypwd
`anypoint-cli-exchange-plugin exchange:asset:copy SOURCE TARGETCopy an asset. Arguments "source" and "target" should be formatted as follows: ([group_id]/)/. If "group_id" is not specified, it will default to the currently selected Organization ID.
`
USAGE
$ anypoint-cli-exchange-plugin exchange:asset:copy [SOURCE] [TARGET] [--password [--username |
--client_id | ]] [--client_secret ] [--bearer | | ] [--organization ] [--environment
] [--host ] [--collectMetrics] [-h] [-t ]FLAGS
-h, --help Show CLI help.
-t, --targetOrganizationId= Target organization id
--bearer= Token Bearer. You can define this in the ANYPOINT_BEARER environment variable.
--client_id= Client ID. You can define this in the ANYPOINT_CLIENT_ID environment variable.
--client_secret= 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= 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= Organization Name. You can define this in the ANYPOINT_ORG environment variable.
--password= Password. You can define this in the ANYPOINT_PASSWORD environment variable.
--username= Username. You can define this in the ANYPOINT_USERNAME environment variable.
DESCRIPTION
Copy an asset. Arguments "source" and "target" should be formatted as follows: ([group_id]/)/. If
"group_id" is not specified, it will default to the currently selected Organization ID.
`_See code: src/commands/exchange/asset/copy.ts_
anypoint-cli-exchange-plugin exchange:asset:delete ASSETIDENTIFIERDelete an asset. Argument "assetIdentifier" should be formatted as follows: ([group_id]/)/. If "group_id" is not specified, it will default to the currently selected Organization ID.
`
USAGE
$ anypoint-cli-exchange-plugin exchange:asset:delete [ASSETIDENTIFIER] [--password [--username |
--client_id | ]] [--client_secret ] [--bearer | | ] [--organization ] [--environment
] [--host ] [--collectMetrics] [-h] [-f]FLAGS
-f, --force
-h, --help Show CLI help.
--bearer= Token Bearer. You can define this in the ANYPOINT_BEARER environment variable.
--client_id= Client ID. You can define this in the ANYPOINT_CLIENT_ID environment variable.
--client_secret= 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= 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= Organization Name. You can define this in the ANYPOINT_ORG environment variable.
--password= Password. You can define this in the ANYPOINT_PASSWORD environment variable.
--username= Username. You can define this in the ANYPOINT_USERNAME environment variable.
DESCRIPTION
Delete an asset. Argument "assetIdentifier" should be formatted as follows: ([group_id]/)/. If
"group_id" is not specified, it will default to the currently selected Organization ID.
`_See code: src/commands/exchange/asset/delete.ts_
anypoint-cli-exchange-plugin exchange:asset:deprecate ASSETIDENTIFIERDeprecate an asset. Argument "assetIdentifier" should be formatted as follows: ([group_id]/)/. If "group_id" is not specified, it will default to the currently selected Organization ID
`
USAGE
$ anypoint-cli-exchange-plugin exchange:asset:deprecate [ASSETIDENTIFIER] [--password [--username |
--client_id | ]] [--client_secret ] [--bearer | | ] [--organization ] [--environment
] [--host ] [--collectMetrics] [-h]FLAGS
-h, --help Show CLI help.
--bearer= Token Bearer. You can define this in the ANYPOINT_BEARER environment variable.
--client_id= Client ID. You can define this in the ANYPOINT_CLIENT_ID environment variable.
--client_secret= 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= 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= Organization Name. You can define this in the ANYPOINT_ORG environment variable.
--password= Password. You can define this in the ANYPOINT_PASSWORD environment variable.
--username= Username. You can define this in the ANYPOINT_USERNAME environment variable.
DESCRIPTION
Deprecate an asset. Argument "assetIdentifier" should be formatted as follows: ([group_id]/)/. If
"group_id" is not specified, it will default to the currently selected Organization ID
`_See code: src/commands/exchange/asset/deprecate.ts_
anypoint-cli-exchange-plugin exchange:asset:describe ASSETIDENTIFIERShow a given asset's information. Argument "assetIdentifier" should be formatted as follows: ([group_id]/)/. If "group_id" is not specified, it will default to the currently selected Organization ID.
`
USAGE
$ anypoint-cli-exchange-plugin exchange:asset:describe [ASSETIDENTIFIER] [--password [--username |
--client_id | ]] [--client_secret ] [--bearer | | ] [--organization ] [--environment
] [--host ] [--collectMetrics] [-h] [-o ]FLAGS
-h, --help Show CLI help.
-o, --output= [default: table] Format for commands output. Supported values are table (default) and
json
--bearer= Token Bearer. You can define this in the ANYPOINT_BEARER environment variable.
--client_id= Client ID. You can define this in the ANYPOINT_CLIENT_ID environment variable.
--client_secret= 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= 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= Organization Name. You can define this in the ANYPOINT_ORG environment variable.
--password= Password. You can define this in the ANYPOINT_PASSWORD environment variable.
--username= Username. You can define this in the ANYPOINT_USERNAME environment variable.
DESCRIPTION
Show a given asset's information. Argument "assetIdentifier" should be formatted as follows:
([group_id]/)/. If "group_id" is not specified, it will default to the currently selected
Organization ID.
`_See code: src/commands/exchange/asset/describe.ts_
anypoint-cli-exchange-plugin exchange:asset:download [ASSETIDENTIFIER] [DIRECTORY]Download an asset to the specified directory. Argument "assetIdentifier" should be formatted as follows: ([group_id]/)/. If "group_id" is not specified, it will default to the currently selected Organization ID.
`
USAGE
$ anypoint-cli-exchange-plugin exchange:asset:download [ASSETIDENTIFIER] [DIRECTORY] [--password [--username
| --client_id | ]] [--client_secret ] [--bearer | | ] [--organization ]
[--environment ] [--host ] [--collectMetrics] [-h] [-f]FLAGS
-f, --force
-h, --help Show CLI help.
--bearer= Token Bearer. You can define this in the ANYPOINT_BEARER environment variable.
--client_id= Client ID. You can define this in the ANYPOINT_CLIENT_ID environment variable.
--client_secret= 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= 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= Organization Name. You can define this in the ANYPOINT_ORG environment variable.
--password= Password. You can define this in the ANYPOINT_PASSWORD environment variable.
--username= Username. You can define this in the ANYPOINT_USERNAME environment variable.
DESCRIPTION
Download an asset to the specified directory. Argument "assetIdentifier" should be formatted as follows:
([group_id]/)/. If "group_id" is not specified, it will default to the currently selected
Organization ID.
`_See code: src/commands/exchange/asset/download.ts_
anypoint-cli-exchange-plugin exchange:asset:list [SEARCHTEXT]Lists all assets
`
USAGE
$ anypoint-cli-exchange-plugin exchange:asset:list [SEARCHTEXT] [--password [--username | --client_id
| ]] [--client_secret ] [--bearer | | ] [--organization ] [--environment ]
[--host ] [--collectMetrics] [-h] [--organizationId ] [-l ] [-o ] [-o ]FLAGS
-h, --help Show CLI help.
-l, --limit= [default: 10] Number of results to retrieve
-o, --offset= Offset
-o, --output= [default: table] Format for commands output. Supported values are table (default) and
json
--bearer= Token Bearer. You can define this in the ANYPOINT_BEARER environment variable.
--client_id= Client ID. You can define this in the ANYPOINT_CLIENT_ID environment variable.
--client_secret= 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= 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= Organization Name. You can define this in the ANYPOINT_ORG environment variable.
--organizationId= Filter by organization id
--password= Password. You can define this in the ANYPOINT_PASSWORD environment variable.
--username= Username. You can define this in the ANYPOINT_USERNAME environment variable.
DESCRIPTION
Lists all assets
`_See code: src/commands/exchange/asset/list.ts_
anypoint-cli-exchange-plugin exchange:asset:modify ASSETIDENTIFIERModify an asset. Argument "assetIdentifier" should be formatted as follows: ([group_id]/)/. If "group_id" is not specified, it will default to the currently selected Organization ID.
`
USAGE
$ anypoint-cli-exchange-plugin exchange:asset:modify [ASSETIDENTIFIER] [--password [--username |
--client_id | ]] [--client_secret ] [--bearer | | ] [--organization ] [--environment
] [--host ] [--collectMetrics] [-h] [-n ] [-t ]FLAGS
-h, --help Show CLI help.
-n, --name= New asset name
-t, --tags= Asset comma-separated tags list
--bearer= Token Bearer. You can define this in the ANYPOINT_BEARER environment variable.
--client_id= Client ID. You can define this in the ANYPOINT_CLIENT_ID environment variable.
--client_secret= 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= 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= Organization Name. You can define this in the ANYPOINT_ORG environment variable.
--password= Password. You can define this in the ANYPOINT_PASSWORD environment variable.
--username= Username. You can define this in the ANYPOINT_USERNAME environment variable.
DESCRIPTION
Modify an asset. Argument "assetIdentifier" should be formatted as follows: ([group_id]/)/. If
"group_id" is not specified, it will default to the currently selected Organization ID.
`_See code: src/commands/exchange/asset/modify.ts_
anypoint-cli-exchange-plugin exchange:asset:mutableDataUpload ASSETIDENTIFIER [PROPERTIES]Uploads mutable data (tags, categories, fields and documentation) to an already created asset. Basic example to upload mutable data: exchange asset mutableData --tags tag1,tag2 --categories.someKey someValue --docs /..../file-path/docs.zip asset-id/1.0.0. Describing the asset. Argument "assetIdentifier" should be formatted as follows: ([group_id]/)/. If "group_id" is not specified, it will default to the currently selected Organization ID.
`
USAGE
$ anypoint-cli-exchange-plugin exchange:asset:mutableDataUpload [ASSETIDENTIFIER] [PROPERTIES] [--password [--username
| --client_id | ]] [--client_secret ] [--bearer | | ] [--organization ]
[--environment ] [--host ] [--collectMetrics] [-h] [--tags ] [--categories ] [--fields
] [--docs ]FLAGS
-h, --help Show CLI help.
--bearer= Token Bearer. You can define this in the ANYPOINT_BEARER environment variable.
--categories= Categories. Should be used as --categories='{"someKey": "someValue"}'
--client_id= Client ID. You can define this in the ANYPOINT_CLIENT_ID environment variable.
--client_secret= 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.
--docs= Docs file. (Should specify the the "zip" file path. E.g. "--docs
/.../file-path/docs.zip")
--environment= Environment Name. You can define this in the ANYPOINT_ENV environment variable.
--fields= Custom Fields. Should be used as --fields='{"someKey": "someValue"}'
--host=anypoint.mulesoft.com [default: anypoint.mulesoft.com] Host URL. You can define this in the ANYPOINT_HOST
environment variable.
--organization= Organization Name. You can define this in the ANYPOINT_ORG environment variable.
--password= Password. You can define this in the ANYPOINT_PASSWORD environment variable.
--tags= Tags. Should be used as a comma separated list. E.g. "tag1,tag2,tag3"
--username= Username. You can define this in the ANYPOINT_USERNAME environment variable.
DESCRIPTION
Uploads mutable data (tags, categories, fields and documentation) to an already created asset. Basic example to upload
mutable data: exchange asset mutableData --tags tag1,tag2 --categories.someKey someValue --docs
/..../file-path/docs.zip asset-id/1.0.0. Describing the asset. Argument "assetIdentifier" should be formatted as
follows: ([group_id]/)/. If "group_id" is not specified, it will default to the currently selected
Organization ID.
To learn more about the creation endpoint visit https://anypoint.mulesoft.com/exchange/portals/anypoint-platform/f1e97
bc6-315a-4490-82a7-23abe036327a.anypoint-platform/exchange-experience-api/minor/2.0/pages/Asset%20Creation/
`_See code: src/commands/exchange/asset/mutableDataUpload.ts_
anypoint-cli-exchange-plugin exchange:asset:page:delete ASSETIDENTIFIER [PAGENAME]Delete an asset's description page. Argument "assetIdentifier" should be formatted as follows: ([group_id]/)/. If "group_id" is not specified, it will default to the currently selected Organization ID.
`
USAGE
$ anypoint-cli-exchange-plugin exchange:asset:page:delete [ASSETIDENTIFIER] [PAGENAME] [--password [--username
| --client_id | ]] [--client_secret ] [--bearer | | ] [--organization ]
[--environment ] [--host ] [--collectMetrics] [-h] [-n ] [-f]FLAGS
-f, --force
-h, --help Show CLI help.
-n, --name= name to print
--bearer= Token Bearer. You can define this in the ANYPOINT_BEARER environment variable.
--client_id= Client ID. You can define this in the ANYPOINT_CLIENT_ID environment variable.
--client_secret= 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= 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= Organization Name. You can define this in the ANYPOINT_ORG environment variable.
--password= Password. You can define this in the ANYPOINT_PASSWORD environment variable.
--username= Username. You can define this in the ANYPOINT_USERNAME environment variable.
DESCRIPTION
Delete an asset's description page. Argument "assetIdentifier" should be formatted as follows:
([group_id]/)/. If "group_id" is not specified, it will default to the currently selected
Organization ID.
`_See code: src/commands/exchange/asset/page/delete.ts_
anypoint-cli-exchange-plugin exchange:asset:page:download ASSETIDENTIFIER DIRECTORY [PAGENAME]Download an asset's description page in Markdown format. When "pageName" is not specified, all pages are downloaded. Argument "assetIdentifier" should be formatted as follows: ([group_id]/)/. If "group_id" is not specified, it will default to the currently selected Organization ID.
`
USAGE
$ anypoint-cli-exchange-plugin exchange:asset:page:download [ASSETIDENTIFIER] [DIRECTORY] [PAGENAME] [--password
[--username | --client_id | ]] [--client_secret ] [--bearer | | ] [--organization
] [--environment ] [--host ] [--collectMetrics] [-h]FLAGS
-h, --help Show CLI help.
--bearer= Token Bearer. You can define this in the ANYPOINT_BEARER environment variable.
--client_id= Client ID. You can define this in the ANYPOINT_CLIENT_ID environment variable.
--client_secret= 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= 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= Organization Name. You can define this in the ANYPOINT_ORG environment variable.
--password= Password. You can define this in the ANYPOINT_PASSWORD environment variable.
--username= Username. You can define this in the ANYPOINT_USERNAME environment variable.
DESCRIPTION
Download an asset's description page in Markdown format. When "pageName" is not specified, all pages are downloaded.
Argument "assetIdentifier" should be formatted as follows: ([group_id]/)/. If "group_id" is not
specified, it will default to the currently selected Organization ID.
`_See code: src/commands/exchange/asset/page/download.ts_
anypoint-cli-exchange-plugin exchange:asset:page:list ASSETIDENTIFIERList all pages for a given asset. Argument "assetIdentifier" should be formatted as follows: ([group_id]/)/. If "group_id" is not specified, it will default to the currently selected Organization ID.
`
USAGE
$ anypoint-cli-exchange-plugin exchange:asset:page:list [ASSETIDENTIFIER] [--password [--username |
--client_id | ]] [--client_secret ] [--bearer | | ] [--organization ] [--environment
] [--host ] [--collectMetrics] [-h] [-o ]FLAGS
-h, --help Show CLI help.
-o, --output= [default: table] Format for commands output. Supported values are table (default) and
json
--bearer= Token Bearer. You can define this in the ANYPOINT_BEARER environment variable.
--client_id= Client ID. You can define this in the ANYPOINT_CLIENT_ID environment variable.
--client_secret= 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= 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= Organization Name. You can define this in the ANYPOINT_ORG environment variable.
--password= Password. You can define this in the ANYPOINT_PASSWORD environment variable.
--username= Username. You can define this in the ANYPOINT_USERNAME environment variable.
DESCRIPTION
List all pages for a given asset. Argument "assetIdentifier" should be formatted as follows:
([group_id]/)/. If "group_id" is not specified, it will default to the currently selected
Organization ID.
`_See code: src/commands/exchange/asset/page/list.ts_
anypoint-cli-exchange-plugin exchange:asset:page:modify ASSETIDENTIFIER PAGENAMEModify an asset's description page name. Renames page specified with --name to the new name . The page name "home" makes a page the main description page. Argument "assetIdentifier" should be formatted as follows: ([group_id]/)/. If "group_id" is not specified, it will default to the currently selected Organization ID.
`
USAGE
$ anypoint-cli-exchange-plugin exchange:asset:page:modify [ASSETIDENTIFIER] [PAGENAME] -n [--password
[--username | --client_id | ]] [--client_secret ] [--bearer | | ] [--organization
] [--environment ] [--host ] [--collectMetrics] [-h] [-f]FLAGS
-f, --force
-h, --help Show CLI help.
-n, --name= (required) New asset page name
--bearer= Token Bearer. You can define this in the ANYPOINT_BEARER environment variable.
--client_id= Client ID. You can define this in the ANYPOINT_CLIENT_ID environment variable.
--client_secret= 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= 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= Organization Name. You can define this in the ANYPOINT_ORG environment variable.
--password= Password. You can define this in the ANYPOINT_PASSWORD environment variable.
--username= Username. You can define this in the ANYPOINT_USERNAME environment variable.
DESCRIPTION
Modify an asset's description page name. Renames page specified with --name to the new name . The page name
"home" makes a page the main description page. Argument "assetIdentifier" should be formatted as follows:
([group_id]/)/. If "group_id" is not specified, it will default to the currently selected
Organization ID.
`_See code: src/commands/exchange/asset/page/modify.ts_
anypoint-cli-exchange-plugin exchange:asset:page:update ASSETIDENTIFIER PAGENAME MDPATHUpdate an asset's description page in Markdown format. The page name "home" represents the main description page. Argument "assetIdentifier" should be formatted as follows:Argument "assetIdentifier" should be formatted as follows: ([group_id]/)/. If "group_id" is not specified, it will default to the currently selected Organization ID.
`
USAGE
$ anypoint-cli-exchange-plugin exchange:asset:page:update [ASSETIDENTIFIER] [PAGENAME] [MDPATH] [--password
[--username | --client_id | ]] [--client_secret ] [--bearer | | ] [--organization
] [--environment ] [--host ] [--collectMetrics] [-h] [-n ] [-f]FLAGS
-f, --force
-h, --help Show CLI help.
-n, --name= name to print
--bearer= Token Bearer. You can define this in the ANYPOINT_BEARER environment variable.
--client_id= Client ID. You can define this in the ANYPOINT_CLIENT_ID environment variable.
--client_secret= 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= 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= Organization Name. You can define this in the ANYPOINT_ORG environment variable.
--password= Password. You can define this in the ANYPOINT_PASSWORD environment variable.
--username= Username. You can define this in the ANYPOINT_USERNAME environment variable.
DESCRIPTION
Update an asset's description page in Markdown format. The page name "home" represents the main description page.
Argument "assetIdentifier" should be formatted as follows:Argument "assetIdentifier" should be formatted as follows:
([group_id]/)/. If "group_id" is not specified, it will default to the currently selected
Organization ID.
`_See code: src/commands/exchange/asset/page/update.ts_
anypoint-cli-exchange-plugin exchange:asset:page:upload ASSETIDENTIFIER PAGENAME MDPATHUpload an asset's description page in Markdown format. The page name "home" makes a page the main description page. Argument "assetIdentifier" should be formatted as follows: Argument "assetIdentifier" should be formatted as follows: ([group_id]/)/. If "group_id" is not specified, it will default to the currently selected Organization ID.
`
USAGE
$ anypoint-cli-exchange-plugin exchange:asset:page:upload [ASSETIDENTIFIER] [PAGENAME] [MDPATH] [--password
[--username | --client_id | ]] [--client_secret ] [--bearer | | ] [--organization
] [--environment ] [--host ] [--collectMetrics] [-h] [-n ] [-f]FLAGS
-f, --force
-h, --help Show CLI help.
-n, --name= name to print
--bearer= Token Bearer. You can define this in the ANYPOINT_BEARER environment variable.
--client_id= Client ID. You can define this in the ANYPOINT_CLIENT_ID environment variable.
--client_secret= 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= 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= Organization Name. You can define this in the ANYPOINT_ORG environment variable.
--password= Password. You can define this in the ANYPOINT_PASSWORD environment variable.
--username= Username. You can define this in the ANYPOINT_USERNAME environment variable.
DESCRIPTION
Upload an asset's description page in Markdown format. The page name "home" makes a page the main description page.
Argument "assetIdentifier" should be formatted as follows: Argument "assetIdentifier" should be formatted as follows:
([group_id]/)/. If "group_id" is not specified, it will default to the currently selected
Organization ID.
`_See code: src/commands/exchange/asset/page/upload.ts_
anypoint-cli-exchange-plugin exchange:asset:resource:delete ASSETIDENTIFIER RESOURCEPATHDelete the specified resource from the asset portal as draft
`
USAGE
$ anypoint-cli-exchange-plugin exchange:asset:resource:delete [ASSETIDENTIFIER] [RESOURCEPATH] [--password [--username
| --client_id | ]] [--client_secret ] [--bearer | | ] [--organization ]
[--environment ] [--host ] [--collectMetrics] [-h]FLAGS
-h, --help Show CLI help.
--bearer= Token Bearer. You can define this in the ANYPOINT_BEARER environment variable.
--client_id= Client ID. You can define this in the ANYPOINT_CLIENT_ID environment variable.
--client_secret= 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= 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= Organization Name. You can define this in the ANYPOINT_ORG environment variable.
--password= Password. You can define this in the ANYPOINT_PASSWORD environment variable.
--username= Username. You can define this in the ANYPOINT_USERNAME environment variable.
DESCRIPTION
Delete the specified resource from the asset portal as draft
`_See code: src/commands/exchange/asset/resource/delete.ts_
anypoint-cli-exchange-plugin exchange:asset:resource:download ASSETIDENTIFIER RESOURCEPATH FILEPATHDownloads the specified published resource () from the asset portal to
`
USAGE
$ anypoint-cli-exchange-plugin exchange:asset:resource:download [ASSETIDENTIFIER] [RESOURCEPATH] [FILEPATH] [--password
[--username | --client_id | ]] [--client_secret ] [--bearer | | ] [--organization
] [--environment ] [--host ] [--collectMetrics] [-h] [-n ] [-f]FLAGS
-f, --force
-h, --help Show CLI help.
-n, --name= name to print
--bearer= Token Bearer. You can define this in the ANYPOINT_BEARER environment variable.
--client_id= Client ID. You can define this in the ANYPOINT_CLIENT_ID environment variable.
--client_secret= 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= 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= Organization Name. You can define this in the ANYPOINT_ORG environment variable.
--password= Password. You can define this in the ANYPOINT_PASSWORD environment variable.
--username= Username. You can define this in the ANYPOINT_USERNAME environment variable.
DESCRIPTION
Downloads the specified published resource () from the asset portal to
`_See code: src/commands/exchange/asset/resource/download.ts_
anypoint-cli-exchange-plugin exchange:asset:resource:list ASSETIDENTIFIERLists published resources in the asset portal
`
USAGE
$ anypoint-cli-exchange-plugin exchange:asset:resource:list [ASSETIDENTIFIER] [--password [--username |
--client_id | ]] [--client_secret ] [--bearer | | ] [--organization ] [--environment
] [--host ] [--collectMetrics] [-h] [-d] [-o ]FLAGS
-d, --draft Lists draft resources in the asset portal
-h, --help Show CLI help.
-o, --output= [default: table] Format for commands output. Supported values are table (default) and
json
--bearer= Token Bearer. You can define this in the ANYPOINT_BEARER environment variable.
--client_id= Client ID. You can define this in the ANYPOINT_CLIENT_ID environment variable.
--client_secret= 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= 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= Organization Name. You can define this in the ANYPOINT_ORG environment variable.
--password= Password. You can define this in the ANYPOINT_PASSWORD environment variable.
--username= Username. You can define this in the ANYPOINT_USERNAME environment variable.
DESCRIPTION
Lists published resources in the asset portal
`_See code: src/commands/exchange/asset/resource/list.ts_
anypoint-cli-exchange-plugin exchange:asset:resource:upload ASSETIDENTIFIER FILEPATHUpload a resource to an asset page Supported file extensions: jpeg, jpg, jpe, gif, bmp, png, webp, ico, svg, tiff, tif
`
USAGE
$ anypoint-cli-exchange-plugin exchange:asset:resource:upload [ASSETIDENTIFIER] [FILEPATH] [--password [--username
| --client_id | ]] [--client_secret ] [--bearer | | ] [--organization ]
[--environment ] [--host ] [--collectMetrics] [-h] [-n ] [-f]FLAGS
-f, --force
-h, --help Show CLI help.
-n, --name= name to print
--bearer= Token Bearer. You can define this in the ANYPOINT_BEARER environment variable.
--client_id= Client ID. You can define this in the ANYPOINT_CLIENT_ID environment variable.
--client_secret= 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= 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= Organization Name. You can define this in the ANYPOINT_ORG environment variable.
--password= Password. You can define this in the ANYPOINT_PASSWORD environment variable.
--username= Username. You can define this in the ANYPOINT_USERNAME environment variable.
DESCRIPTION
Upload a resource to an asset page Supported file extensions: jpeg, jpg, jpe, gif, bmp, png, webp, ico, svg, tiff,
tif
`_See code: src/commands/exchange/asset/resource/upload.ts_
anypoint-cli-exchange-plugin exchange:asset:undeprecate ASSETIDENTIFIERUndeprecate an asset. Argument "assetIdentifier" should be formatted as follows: ([group_id]/)/. If "group_id" is not specified, it will default to the currently selected Organization ID
`
USAGE
$ anypoint-cli-exchange-plugin exchange:asset:undeprecate [ASSETIDENTIFIER] [--password [--username |
--client_id | ]] [--client_secret ] [--bearer | | ] [--organization ] [--environment
] [--host ] [--collectMetrics] [-h]FLAGS
-h, --help Show CLI help.
--bearer= Token Bearer. You can define this in the ANYPOINT_BEARER environment variable.
--client_id= Client ID. You can define this in the ANYPOINT_CLIENT_ID environment variable.
--client_secret= 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= 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= Organization Name. You can define this in the ANYPOINT_ORG environment variable.
--password= Password. You can define this in the ANYPOINT_PASSWORD environment variable.
--username= Username. You can define this in the ANYPOINT_USERNAME environment variable.
DESCRIPTION
Undeprecate an asset. Argument "assetIdentifier" should be formatted as follows: ([group_id]/)/. If
"group_id" is not specified, it will default to the currently selected Organization ID
`_See code: src/commands/exchange/asset/undeprecate.ts_
anypoint-cli-exchange-plugin exchange:asset:updateStatus ASSETIDENTIFIERUpdates asset status. Argument "assetIdentifier" should be formatted as follows: ([group_id]/)/. If "group_id" is not specified, it will default to the currently selected Organization ID.
`
USAGE
$ anypoint-cli-exchange-plugin exchange:asset:updateStatus [ASSETIDENTIFIER] --status [--password [--username
| --client_id | ]] [--client_secret ] [--bearer | | ] [--organization ]
[--environment ] [--host ] [--collectMetrics] [-h]FLAGS
-h, --help Show CLI help.
--bearer= Token Bearer. You can define this in the ANYPOINT_BEARER environment variable.
--client_id= Client ID. You can define this in the ANYPOINT_CLIENT_ID environment variable.
--client_secret= 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= 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= Organization Name. You can define this in the ANYPOINT_ORG environment variable.
--password= Password. You can define this in the ANYPOINT_PASSWORD environment variable.
--status= (required) (required) New asset status
--username= Username. You can define this in the ANYPOINT_USERNAME environment variable.
DESCRIPTION
Updates asset status. Argument "assetIdentifier" should be formatted as follows: ([group_id]/)/. If
"group_id" is not specified, it will default to the currently selected Organization ID.
`_See code: src/commands/exchange/asset/updateStatus.ts_
anypoint-cli-exchange-plugin exchange:asset:upload ASSETIDENTIFIER [PROPERTIES]Upload a rest-api, soap-api, http-api, custom, app, template, example, policy and connector asset. Basic example to upload a raml asset: exchange:asset:upload --name "Raml Asset" --description "RAML" --properties='{"mainFile":"encrypt.raml", "apiVersion":"v1"}' --files='{"raml.zip":".../file-path/raml.zip" }"' raml-asset/1.0.0. Describing the asset. Argument "assetIdentifier" should be formatted as follows: ([group_id]/)/. If "group_id" is not specified, it will default to the currently selected Organization ID.
`
USAGE
$ anypoint-cli-exchange-plugin exchange:asset:upload [ASSETIDENTIFIER] [PROPERTIES] [--password [--username
| --client_id | ]] [--client_secret ] [--bearer | | ] [--organization ]
[--environment ] [--host ] [--collectMetrics] [-h] [--name ] [--description ] [--type
] [--keywords ] [--tags ] [--categories ] [--fields ] [--dependencies ]
[--properties ] [--headers ] [--files ] [--status development|published]FLAGS
-h, --help Show CLI help.
--bearer= Token Bearer. You can define this in the ANYPOINT_BEARER environment variable.
--categories= Categories. Should be used as --categories='{"someKey": "someValue"}'
--client_id= Client ID. You can define this in the ANYPOINT_CLIENT_ID environment variable.
--client_secret= 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.
--dependencies= Asset dependencies, separated by ",". E.g. dependencies
groupId:assetId:version,groupId2...
--description= Asset description
--environment= Environment Name. You can define this in the ANYPOINT_ENV environment variable.
--fields= Custom Fields. Should be used as --fields='{"someKey": "someValue"}'
--files= Asset file. (it should be identified as classifier.packaging or just "packaging" as key
of a json. E.g. --files='{"raml.zip":".../file-path/raml.zip" }"' (to send multiple
files, use the same option multiple times. Example:
--files='{"raml.zip":".../file-path/raml.zip" , "pom.xml": "./pom.xml"}'
--host=anypoint.mulesoft.com [default: anypoint.mulesoft.com] Host URL. You can define this in the ANYPOINT_HOST
environment variable.
--keywords= Keywords. Should be used as a comma separated list. E.g. "keyword1,keyword2,keyword3"
--name= Asset name (required if no pom file is specified)
--organization= Organization Name. You can define this in the ANYPOINT_ORG environment variable.
--password= Password. You can define this in the ANYPOINT_PASSWORD environment variable.
--properties= Asset properties. Should be used as --properties='{"mainFile":"main.raml",
"apiVersion":"v1", "assetLink": "http://api.com"}'
--headers= Request headers. Should be used as --headers='{"assign-roles":"true",
"x-user-id": "user_id"}'
--status=
DESCRIPTION
Upload a rest-api, soap-api, http-api, custom, app, template, example, policy and connector asset. Basic example to
upload a raml asset: exchange:asset:upload --name "Raml Asset" --description "RAML"
--properties='{"mainFile":"encrypt.raml", "apiVersion":"v1"}' --files='{"raml.zip":".../file-path/raml.zip" }"'
raml-asset/1.0.0. Describing the asset. Argument "assetIdentifier" should be formatted as follows:
([group_id]/)/. If "group_id" is not specified, it will default to the currently selected
Organization ID.
To learn more about the creation endpoint visit https://anypoint.mulesoft.com/exchange/portals/anypoint-platform/f1e97
bc6-315a-4490-82a7-23abe036327a.anypoint-platform/exchange-experience-api/minor/2.0/pages/Asset%20Creation/
`_See code: src/commands/exchange/asset/upload.ts_
anypoint-cli-exchange-plugin help [COMMAND]Display help for anypoint-cli-exchange-plugin.
`
USAGE
$ anypoint-cli-exchange-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-exchange-plugin.
`_See code: @oclif/plugin-help_
anypoint-cli-exchange-plugin version`
USAGE
$ anypoint-cli-exchange-plugin version
``_See code: @oclif/plugin-version_