@@ -119,10 +119,73 @@ gum version 0.14.5
119119For this mode we can also output JSON: ` pkgx +gum --json ` .
120120
121121
122- ## Silent Mode
122+ ## Quietening Output
123123
124124``` sh
125- pkgx --silent gum format ' no progress information is output'
125+ $ pkgx --quiet gum format ' download progress is still shown'
126+ # ^^ supresses resolving/syncing etc. messages but not download progress info
127+
128+ ` ` ` sh
129+ pkgx --silent gum format ' no output at all'
130+ # ^^ silences everything, even errors
131+ ` ` `
132+
133+ Note that this only effects ` pkgx` * not the tools you run with ` pkgx` * .
134+
135+ # # Other Common Needs
136+
137+ ` pkgx` is not a package manager. Thus the command itself doesn’t typically
138+ offer such operations you may expect, however the way ` pkgx` works is simple
139+ and standardized so we offer some ` mash` scripts to help.
140+
141+ Longer term we will make a tool ` pkgq` to help with these operations.
142+
143+ # ## Upgrading Packages
144+
145+ ` pkgx foo` executes the latest version of ` foo` that is * downloaded* . To
146+ ensure you have (any) newer versions installed use this command:
147+
148+ ` ` ` sh
149+ $ pkgx mash pkgx/cache upgrade
150+ updating: /Users/mxcl/.pkgx/python.org/v3.11.11
151+ # snip…
152+ ` ` `
153+
154+ # ## Pruning Older Versions of Packages
155+
156+ The ` pkgx` download cache can get large over time. To prune older versions:
157+
158+ ` ` ` sh
159+ $ pkgx mash pkgx/cache prune
160+ pruning: ~ /.pkgx/deno.land/v1.39.4
161+ pruning: ~ /.pkgx/deno.land/v1.46.3
162+ # snip…
163+ ` ` `
164+
165+ This may delete versions that you use—if so—this is fine. ` pkgx` will just
166+ reinstall them next time you need them.
167+
168+ # ## Listing Available Versions for a Package
169+
170+ ie. what versions * could be* run by ` pkgx` :
171+
172+ ` ` ` sh
173+ $ pkgx mash pkgx/pantry-inventory git
174+ 2.38.1
175+ 2.39.0
176+ # snip…
177+ ` ` `
178+
179+ # ## Listing What is Downloaded
180+
181+ ` ` ` sh
182+ $ mash pkgx/cache ls
183+
184+ Parent Directory │Version
185+ ────────────────────────────────┼──────────
186+ perl.org │5.40.0
187+ x.org/xcb │1.17.0
188+ # snip…
126189` ` `
127190
128191[SemVer]: https://devhints.io/semver
0 commit comments