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

Feature request: add uv script to manage global scripts #7242

Open
shoucandanghehe opened this issue Sep 10, 2024 · 4 comments
Open

Feature request: add uv script to manage global scripts #7242

shoucandanghehe opened this issue Sep 10, 2024 · 4 comments

Comments

@shoucandanghehe
Copy link

I often write small standalone python scripts and I'll use them anywhere.

If using uv run /path/to/script.py is a bit cumbersome for me (mostly typing the path)
So I want a uv script command to globally install these scripts

Maybe something like uv tool, but uv script manages scripts, uv tool manages tools.

Related: pypa/pipx#1388 (although pipx doesn't implement it too)

@shoucandanghehe shoucandanghehe changed the title Feature request: add uv script to support global scripts Feature request: add uv script to manage global scripts Sep 10, 2024
@nikhilweee
Copy link

Is this related to #5903? Or do you specifically want uv to install scripts globally?

@shoucandanghehe
Copy link
Author

Is this related to 5903? Or do you specifically want uv to install scripts globally?

It's not quite the same, 5903 is a project-level command alias, something like npm run xxx
Whereas what I want is to make a single-file script available globally, like uv tool does for packages

@zanieb
Copy link
Member

zanieb commented Sep 10, 2024

I guess we could support something like uv tool install ./script.py 🤔

@kj-9
Copy link

kj-9 commented Oct 23, 2024

I'm also looking forward to this feature.

In the meantime, I created a template that generates the minimum required files for uv tool install as a temporary solution:
https://github.com/kj-9/uv-tool-min-copier

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

4 participants