Topic: cant login to MDB via powershell in VCS, wont return results even is checking version

Sylwester free asked 1 year ago


Expected behavior login successful

Actual behavior not recognized

Resources (screenshots, code snippets etc.)

mdn : The term 'mdn' is not recognized as the 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. + mdn -v + ~~~ + CategoryInfo : ObjectNotFound: (mdn:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException

Cant even get results of MDB version via powershell terminal in VSC , bash for example returns correct results


Sebastian Kaczmarek staff commented 1 year ago

Looks like you misspelled the command name. The correct command is mdb, not mdn. Note the letter "b" at the end, not "n".


Sylwester free commented 1 year ago

oh, my typo, it was spelled properly just me having a typo, issue lives well:

PS C:\Users**********> mdb login mdb : File C:\Users***\AppData\Roaming\npm\mdb.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170. At line:1 char:1 + mdb login + ~~~ + CategoryInfo : SecurityError: (:) [], PSSecurityException + FullyQualifiedErrorId : UnauthorizedAccess


Sebastian Kaczmarek staff commented 1 year ago

Are you 100% sure you installed MDB CLI using the npm install mdb-cli -g command? The -g flag is important



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: MDB5 6.4.2
  • Device: Nitro 5
  • Browser: Chrome
  • OS: Win 10 Home
  • Provided sample code: No
  • Provided link: No