Replies: 4 comments 1 reply
|
Hey @yanskun! Thanks for opening this. There is no natively supported way of doing this. However, about 9 months ago I hacked together https://github.com/williammartin/gh-exact to play around with this idea. There's lots of sharp edges and design issues but it probably gets a long way to the goal. Would you be open to trying that out and giving feedback on it? We can definitely open an feature request to track this work but it's much more likely to get done if the UX can be validated via an extension. |
- name: gh bump-up
repo: yanskun/gh-bump-up
version: e167f740
- name: gh copilot
repo: github/gh-copilot
version: v1.0.4
- name: gh dash
repo: dlvhdr/gh-dash
version: v4.5.4
- name: gh exact
repo: williammartin/gh-exact
version: v0.0.3
- name: gh langs
repo: yanskun/gh-langs
version: v1.1.11
- name: gh page
repo: yanskun/gh-page
version: f01b64d9
- name: gh skyline
repo: github/gh-skyline
version: v0.0.4Hey @williammartin! Awesome! Thank you, |
|
I don't think there is a native built-in "extensions manifest file" feature in What is built in now is enough to script a simple export/import workflow:
So the practical workaround is to keep your own manifest file and loop over it in a shell script. For example, a text file like: and then: while read repo; do
gh extension install "$repo"
done < gh-extensions.txtIf you care about exact versions, So: no native Brewfile-style support that I know of, but the current extension commands are enough to build a lightweight version of it yourself. |
|
There is no Brewfile-style manifest built into Export (JSON β best for scripts)gh extension list --json name,host,owner,url > gh-extensions.jsonCheck that file into dotfiles (or a private repo) and reinstall on a new machine with something like: jq -r '.[].name' gh-extensions.json | while read -r ext; do
gh extension install "$ext"
doneOn PowerShell: Get-Content gh-extensions.json | ConvertFrom-Json | ForEach-Object {
gh extension install $_.name
}Export (plain text)gh extension list > gh-extensions.txtEach line is an install spec you can feed back to Tips
Related: enterprises often pair this with an allowlist of extension repos (see discussion #13622) so the manifest only contains approved entries. If a first-class |
Uh oh!
There was an error while loading. Please reload this page.
I'd like to be able to manage pre-installed extensions in a file or something so that I can easily install them when setting up another PC, like with Brewfile. Is there currently a function to do this?
All reactions