Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

consider remote CLI support (ssh) #3

Open
aureq opened this issue Aug 18, 2022 · 4 comments
Open

consider remote CLI support (ssh) #3

aureq opened this issue Aug 18, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@aureq
Copy link

aureq commented Aug 18, 2022

Is your feature request related to a problem? Please describe.

The app is awesome, but the cli and all the projects must be local. I personally don't like much programming on my windows host so everything is done through WSL or over SSH

Describe the solution you'd like

Please consider adding WSL and SSH support as a way to connect to an existing CLI.

@aureq aureq added the enhancement New feature or request label Aug 18, 2022
@praneetloke
Copy link
Contributor

In fact this is a blocker for Windows users who use WSL. The app does not communicate with the CLI through WSL today. The app should also support importing projects from WSL mounted directories.

@praneetloke
Copy link
Contributor

It looks like it is possible to execute commands in a WSL distro using the wsl command. For example, wsl -d Ubuntu --shell-type login --cd ~ -- ~/.pulumi/bin/pulumi version works. This could be used by the app to communicate with the CLI installed in the WSL distro. As you probably noticed though, it seems that PATH is not set correctly when executing the command so I had to specify the full path to the pulumi binary in order to execute it.

Lastly, there is a way to identify a Pulumi project that is located inside a WSL folder. The paths to files in a distro have the format: \\wsl.local\<distro name>\<absolute path to file>. So the app could show both WSL and native Windows-based Pulumi projects alongside and execute commands either in the default Windows shell or as a wsl command based on that.

@praneetloke
Copy link
Contributor

FYI, support for WSL mode is in-progress.

@praneetloke
Copy link
Contributor

WSL mode is now supported in the latest version v0.0.60. I'll update the title to reflect the pending support for remote environments via SSH.

@praneetloke praneetloke changed the title consider remote CLI support (ssh, wsl) consider remote CLI support (ssh) Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants