Skip to content

Commit 461b7d7

Browse files
authored
Merge pull request #54 from dgwyer/add-uv-docs
Add uv installation docs
2 parents 23546d8 + 904ad41 commit 461b7d7

File tree

3 files changed

+726
-3
lines changed

3 files changed

+726
-3
lines changed

README.md

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,54 @@ Install ShellSage directly from PyPI using pip:
3535
pip install shell-sage
3636
```
3737

38-
### Prerequisites
38+
## Installing with `uv`
39+
40+
If you have `uv` installed then you can use its powerful `tool` feature
41+
to install ShellSage as a global CLI — safely, with per-tool isolation
42+
and no need for manual virtualenv management.
43+
44+
``` sh
45+
uv tool install shell_sage
46+
```
47+
48+
This will make the `ssage` CLI available everywhere on your system.
49+
50+
If you also want to install additional dependencies (for example
51+
`fastlite`), you can do it at install time:
52+
53+
``` sh
54+
uv tool install --with fastlite shell_sage
55+
```
56+
57+
### Upgrade
58+
59+
To upgrade ShellSage to the latest version:
60+
61+
``` sh
62+
uv tool upgrade shell_sage
63+
```
64+
65+
### List All Installed Tools
66+
67+
See everything you’ve installed via `uv tool`:
68+
69+
``` sh
70+
uv tool list
71+
```
72+
73+
### Uninstall
74+
75+
To completely remove ShellSage and its environment:
76+
77+
``` sh
78+
uv tool uninstall shell_sage
79+
```
80+
81+
Using `uv tool` keeps ShellSage completely isolated from your project
82+
dependencies, so you can safely use `ssage` even when inside another
83+
virtual environment.
84+
85+
## Prerequisites
3986

4087
1. **API Key Setup**
4188

nbs/index.ipynb

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
},
4646
{
4747
"cell_type": "markdown",
48-
"id": "082bf63c",
48+
"id": "915c854d",
4949
"metadata": {},
5050
"source": [
5151
"## Installation\n",
@@ -55,8 +55,49 @@
5555
"```sh\n",
5656
"pip install shell-sage\n",
5757
"```\n",
58+
"## Installing with `uv`\n",
5859
"\n",
59-
"### Prerequisites\n",
60+
"If you have `uv` installed then you can use its powerful `tool` feature to install ShellSage as a global CLI — safely, with per-tool isolation and no need for manual virtualenv management.\n",
61+
"\n",
62+
"```sh\n",
63+
"uv tool install shell_sage\n",
64+
"```\n",
65+
"\n",
66+
"This will make the `ssage` CLI available everywhere on your system.\n",
67+
"\n",
68+
"If you also want to install additional dependencies (for example `fastlite`), you can do it at install time:\n",
69+
"\n",
70+
"```sh\n",
71+
"uv tool install --with fastlite shell_sage\n",
72+
"```\n",
73+
"\n",
74+
"### Upgrade\n",
75+
"\n",
76+
"To upgrade ShellSage to the latest version:\n",
77+
"\n",
78+
"```sh\n",
79+
"uv tool upgrade shell_sage\n",
80+
"```\n",
81+
"\n",
82+
"### List All Installed Tools\n",
83+
"\n",
84+
"See everything you’ve installed via `uv tool`:\n",
85+
"\n",
86+
"```sh\n",
87+
"uv tool list\n",
88+
"```\n",
89+
"\n",
90+
"### Uninstall\n",
91+
"\n",
92+
"To completely remove ShellSage and its environment:\n",
93+
"\n",
94+
"```sh\n",
95+
"uv tool uninstall shell_sage\n",
96+
"```\n",
97+
"\n",
98+
"Using `uv tool` keeps ShellSage completely isolated from your project dependencies, so you can safely use `ssage` even when inside another virtual environment.\n",
99+
"\n",
100+
"## Prerequisites\n",
60101
"\n",
61102
"1. **API Key Setup**\n",
62103
" ```sh\n",

0 commit comments

Comments
 (0)