Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  Support profiles in WSL

    Posted 09-29-2025 13:50
    Edited by Adrián Santamaría 09-29-2025 13:52

    Hello Dev Community!

    Currently, when running Genesys Cloud CLI commands trying to use the --profile option inside WSL, it detects the environment as linux and therefore it tries to open the browser using xdg-open, which is not available. I've created this pull request that addresses that.


    #PlatformCLI

    ------------------------------
    Adrián Santamaría
    ------------------------------



  • 2.  RE: Support profiles in WSL

    Posted 10-03-2025 08:24

    Hi Adrian,

    I am behind on my pull requests.  Thank you for the PR. We will take the PR, but it will take us a little longer than a normal open-source project to merge it.  The GitHub repository you see for the CLI was generated from our Swagger doc with a few key overrides.  That process for generation is internal, so we will need to work your PR back into that internal repository.  You are welcome to continue to use a branched version of the code.

    Definitely, welcome the PR, so bear with us while we get it merged.  I will have someone post to this forum when it is done.

    Thanks,
         John



    ------------------------------
    John Carnell
    Director, Developer Engagement
    ------------------------------



  • 3.  RE: Support profiles in WSL

    Posted 10-07-2025 02:28

    Hello Adrian,

    Thanks for reporting this.

    I've sent you a contact request. This is to exchange on this and see if you can test a solution as I currently don't have access to a Windows OS with WSL.

    Thank you.

    Regards,



    ------------------------------
    Jerome Saint-Marc
    Senior Development Support Engineer
    ------------------------------



  • 4.  RE: Support profiles in WSL

    Posted 10-07-2025 11:44

    I've been able to find someone to test a change. So forget my previous message. I'll discuss with the team to see if they agree on the approach.

    Regards,



    ------------------------------
    Jerome Saint-Marc
    Senior Development Support Engineer
    ------------------------------



  • 5.  RE: Support profiles in WSL

    Posted 10-09-2025 02:29

    Hello,

    Staring with version 142.0.0, we have introduced a new environment variable (GENESYSCLOUD_BROWSER), for the linux version of the CLI, that will hopefully provide more flexibility when used fro WSL (or linux).
    See here for details: https://github.com/MyPureCloud/platform-client-sdk-cli?tab=readme-ov-file#windows-subsystem-for-linux-wsl

    Regards,



    ------------------------------
    Jerome Saint-Marc
    Senior Development Support Engineer
    ------------------------------