Ionic v3 Beta CLI : ionic cordova platform --help` throws an error

Running ionic cordova platform --help command throws below error after giving out the available commands.

Add or remove a platform target for building an Ionic app

  $ ionic cordova platform [action] [platform]
  action ................... add, remove, or update a platform; list all project platforms
  platform ................. The platform that you would like to add (e.g. ios, android)
  --noresources, -r ........ Do not add default Ionic icons and splash screen resources (corres

ponds to add)
–nosave, -e … Do not update the config.xml (corresponds to add, remove, update)

  $ ionic cordova platform add android

TypeError: Cannot read property ‘private’ of undefined
at inputs.filter (/usr/local/lib/node_modules/ionic/node_modules/@ionic/cli-utils/dist/lib/comm
at Array.filter (native)
at HelpCommand.getCleanInputsForTelemetry (/usr/local/lib/node_modules/ionic/node_modules/@ioni
at HelpCommand. (/usr/local/lib/node_modules/ionic/node_modules/@ionic/cli-utils/dis
at ()
at fulfilled (/usr/local/lib/node_modules/ionic/node_modules/@ionic/cli-utils/dist/lib/command/

You have to type something like this ionic cordova:build --help or ionic cordova: --help

So in your case you have to type ionic cordova:platform --help

Thanks for the reply. Same error with ionic cordova:platform --help too. Could be a bug in ionic v3 cli?

Do you only have problems with the --help command or can’t run any CLI commands?
Have you added the needed devdependencies in your package.json?

npm install --save-dev @ionic/cli-build-ionic-angular@beta @ionic/cli-plugin-cordova@beta

Which beta are you on? If you are on the newest, beta7, I have the same errors and don’t think I made anything wrong. Here are some Github issues, +1 votes welcome:

On the error messages in help:

And on the generally not working cordova commands for me.

@LoLStats: Same errors on the :-style commands (which seems to be have changed back to the old style commands in beta7)

Okay than this is an error with the latest beta release. I’m still on release 3@Beta5

Issue is with only the --help command. I’m able to use the other platform specific commands. Thanks.

The Github issue for this was fixed and closed, so this error should be gone in beta8 (when it is released).

Thank you for the update.