Loading

How to Get Verbose (DEBUG) Information From Anypoint CLI

Udgivelsesdato: Aug 5, 2025
Opgave

GOAL

When using the Anypoint CLI tool one may face a variety of issues (connectivity, etc.) and a need for more verbose information may be necessary to investigate the issue or to be passed to the Support team.
 

Trin
The Anypoint CLI tool is based on node.js. In order to get further verbose information displayed one needs to enable the CLI modules to debug mode. For this, add the environment variable NODE_DEBUG=moduleNames where moduleNames should be replaced by the CLI modules (separated by comma).

Example for maxOS/Linux:
$ export NODE_DEBUG=request,http,axios
Example for Windows Command Prompt
C:\>set NODE_DEBUG=request,http,axios
Example for Windows PowerShell
PS C:\> $env:NODE_DEBUG = "request,http,axios"

The example above will enable DEBUG logs for the request and http modules. For more information on Node.js modules check the Node.js modules documentation

Note: Example of verbose information
> designcenter project upload test1  /opt/tmp/api
REQUEST { method: 'GET',
  json: true,
  strictSSL: false,
  baseUrl: 'https://anypoint.mulesoft.com',
  timeout: 60000,
  callback: undefined,
  url: '/designcenter/api-designer/projects',
  headers: 
   { 'User-Agent': 'Anypoint-CLI/2.1.0-beta.3',
     Authorization: 'bearer 3422ca7c-0fab-xxxxx',
     'x-owner-id': '0e7a677b-xxxxxxxxxxx',
     'x-organization-id': 'aa5xxxxxxxxxxxxxxx',
     'X-ANYPNT-ORG-ID': 'aa51bc87-xxxxxxxxxxxxxxxxx',
     'X-ANYPNT-ENV-ID': '549xxxxxxxxxxxxxxxxxxx' },
  transform: undefined,
  simple: true,
  resolveWithFullResponse: false }
REQUEST make request https://anypoint.mulesoft.com/designcenter/api-designer/projects
HTTP 89994: call onSocket 0 0
HTTP 89994: createConnection anypoint.mulesoft.com:443:::::::false: { servername: 'anypoint.mulesoft.com',
Vidensartikelnummer

001114879

 
Indlæser
Salesforce Help | Article