Skip to content

Installing CLI on Windows #57

Closed
Closed

Description

@dseail

Hi,

i am trying to install CLI on my Windows 10. I tried both installer and binary file, however, it is not working as expected. The installation finishes successfully but whenever i try the "cf" or "cf --help" commands on the command prompt i get the following message
"mkdir N:: The system cannot find the path specified. FAILED"

I also tried executing the .exe files in the Cloud Foundry folder. In this case a black windows pops up and shut down inmediately.

Could you please support on this? Thanks

Activity

  1. cf-gitbot commented on Apr 15, 2020

    @cf-gitbot

    We have created an issue in Pivotal Tracker to manage this. Unfortunately, the Pivotal Tracker project is private so you may be unable to view the contents of the story.

    The labels on this github issue will be updated when the story is started.

  2. quixoticmonk commented on Apr 19, 2020

    @quixoticmonk
    Contributor

    Hi @dseail , did you see this one : cloudfoundry/cli#1748
    And for windows installations, you can try chocolatey package manager as well.

    • Open powershell in an admin mode. Right click and open as admin ( assuming you have access to do so)
    • type choco install cloudfoundry-cli
    • If there is an issue with the path being set, chocolatey usually takes care of it and should give you any errors in the logs there itself around access or permissions.
  3. jncd commented on Apr 20, 2020

    @jncd

    @quixoticmonk Thanks for making that suggestion. I hope it helps.

    @dseail In general, the docs repos are not the best way to get technical support. In general, for help with open-source Cloud Foundry, I suggest querying one of the CF mailing lists or Stack Overflow.

  4. dseail commented on Apr 20, 2020

    @dseail
    Author

    Indeed. The statement SET HOMEDRIVE=C: solved it out

    Thanks a lot!

  5. jncd commented on Apr 21, 2020

    @jncd

    I also contacted the cf CLI team and they took a look too:

    Update: seems like this issue is related to the ability of the cf executable to write to CF_HOME (as was suggested by the other commenters on the issue). It may be worth adding a note about this to the CF CLI github page (https://github.com/cloudfoundry/cli#known-issues) but I doubt we need to update the actual docs as this seems fairly uncommon. I’ll suggest this to the team.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions