This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
sfdx-ntx-plugin-test with all
npm packages installed. Try it out:
sfdx-ntx-plugin-test lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
sfdx-ntx-plugin-test hello:org [FILE]
Prints a greeting and your org id(s)!
USAGE $ sfdx-ntx-plugin-test hello:org [FILE] OPTIONS -f, --force example boolean flag -n, --name=name name to print -u, --targetusername=targetusername username or alias for the target org; overrides default target org -v, --targetdevhubusername=targetdevhubusername username or alias for the dev hub org; overrides default dev hub org --apiversion=apiversion override the api version used for api requests made by this command --json format output as json --loglevel=(trace|debug|info|warn|error|fatal) logging level for this command invocation EXAMPLES $ sfdx hello:org --targetusername myOrg@example.com --targetdevhubusername firstname.lastname@example.org Hello world! This is org: MyOrg and I will be around until Tue Mar 20 2018! My hub org id is: 00Dxx000000001234 $ sfdx hello:org --name myname --targetusername myOrg@example.com Hello myname! This is org: MyOrg and I will be around until Tue Mar 20 2018!
See code: src\commands\hello\org.ts# Debugging your plugin We recommend using the Visual Studio Code (VS Code) IDE for your plugin development. Included in the `.vscode` directory of this plugin is a `launch.json` config file, which allows you to attach a debugger to the node process when running your commands.
To debug the
If you linked your plugin to the sfdx cli, call your command with the
$ sfdx hello:org -u myOrg@example.com --dev-suspend
Alternatively, to call your command using the
bin/run script, set the
NODE_OPTIONS environment variable to
--inspect-brk when starting the debugger:
$ NODE_OPTIONS=--inspect-brk bin/run hello:org -u myOrg@example.com