KB Article #182029
How to debug axway CLI commands
Problem
How to debug Axway CLI and obtain extra details for troubleshooting or better understanding the functionality.
Resolution
- On Linux: add DEBUG=* in front of the Axway CLI command. Example:
$ DEBUG=* axway auth whoami 2022-02-16T13:03:48.608Z config-kit:types Registering store type "JSStore" for ".js" files 2022-02-16T13:03:48.706Z config-kit:types Registering store type "JSONStore" for ".json" files 2022-02-16T13:03:48.706Z config-kit:types Registering store type "XMLStore" for ".xml" files 2022-02-16T13:03:48.707Z config-kit:json-store Loading /home/apig/.axway/axway-cli/config.json 2022-02-16T13:03:48.804Z cli-kit:command Requiring /home/apig/.nvm/versions/node/v16.0.0/lib/node_modules/axway/dist/commands/config.js [..] 2022-02-16T13:03:49.036Z amplify-sdk:auth:token-store Purged 1 entry You are not logged in.
- On Windows: When using CMD add set DEBUG=* & in front of the Axway CLI command. Example:
> set DEBUG=* & axway auth whoami 2022-02-16T13:10:55.310Z config-kit:types Registering store type "JSStore" for ".js" files 2022-02-16T13:10:55.400Z config-kit:types Registering store type "JSONStore" for ".json" files 2022-02-16T13:10:55.400Z config-kit:types Registering store type "XMLStore" for ".xml" files 2022-02-16T13:10:55.401Z config-kit:json-store Loading C:\Users\axway\.axway\axway-cli\config.json 2022-02-16T13:10:55.472Z cli-kit:command Requiring C:\Users\axway\AppData\Roaming\npm\node_modules\axway\dist\commands\config.js [..] 2022-02-16T13:10:55.771Z amplify-sdk:auth:token-store Purged 2 entries You are not logged in.
When using PowerShell one can use a syntax like $env:DEBUG='app';axway auth whoami to obtain the same result.