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

Dynamically execute different versions #291

Closed
Marcisbee opened this issue Jan 11, 2023 · 2 comments
Closed

Dynamically execute different versions #291

Marcisbee opened this issue Jan 11, 2023 · 2 comments

Comments

@Marcisbee
Copy link

Hello, I just read through the readme and tried tea cli myself. Looks cool.
The thing that came to mind in my workflow would be to execute package with specific version via cli, something like tea node@18 server.js.

About my usecase, in day to day life I work with a lot of node/deno projects. And quite often I need to run specific version of node in specific project (to debug other developer issues for example). So in 1 project I would love to run tea node server.js (the latest or project specified version) and tea node@16 server.js to debug in that version.

I didn't really find anything like this in readme so is this already possible or would be a great feature to add?

@jhheider
Copy link
Contributor

Already possible! We're currently updating a bunch of docs, but tea +nodejs.org^18 node server.js or tea -X node^18 server.js or even sudo ln -s tea /usr/local/bin/node^18; node^18 server.js; sudo ln -s node^18 /usr/local/bin/node; node server.js should work (can't think of any others off-hand).

@Marcisbee
Copy link
Author

@jhheider very cool!
Checked and it seems to be working perfectly, thanks! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants