- Notifications
You must be signed in to change notification settings - Fork928
feat: add --env flag for "coder ssh"#12991
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Will let@mafredri review, but seems reasonable to me!
064956f
toe99d184
CompareThis allows environment variables to be set on the SSH session.Example: coder ssh myworkspace --env VAR1=val1,VAR2=val2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Looks great, thanks for adding this functionality!
Can this be done using API, too? |
@matifali realistically, it already is. This just uses the SSH protocol to set env vars. |
I was looking into a use case where someone is developing a custom skin over Coder API and would like to set env variables at workspace start. |
This allows environment variables to be set on the SSH session.
Example:
coder ssh myworkspace --env VAR1=val1,VAR2=val2