After Kong portal cli is installed, not able to call or deploy the API from portal command

c:\Users\xxxx\kong-portal-template> portal -v
portal: The term ‘portal’ is not recognized as a name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included , verify that the path is correct and try again
At line: 1 char: 1

  • portal -v

  • Categoryinfo: ObjectNotFound: (portal:String) [], CommandNotFoundException

  • FullyQualifiedErrorID : CommandNotFoundException

Could anyone please help on this issue.

@Bhavani it looks like portal cli is not installed correctly.
Otherwise you would get something like
portal -v
Kong Portal CLI Tool, version 3.1.0

Could you check if you get the portal cli package when you execute this command.
npm list -g | grep portal

I would recommend to just uninstall
npm uninstall -g kong-portal-cli
And try a fresh install
npm install -g kong-portal-cli

Also run npm list -g | grep portal should see something like this and can try the version command as well.
├─┬ kong-portal-cli@3.1.0

@Satwant_Singh,
I am facing this issue , although I install the package, upon running the portal commands, they aer not recognised.
I tried the grep command , and I see nothing showing up.

I even uninstalled the package and reinstalled it. Issue persists. Could you pls help me on this asap.


© 2019 Kong Inc.    Terms  •  Privacy  •  FAQ