{"id":14990708,"url":"https://github.com/prantlf/zigup","last_synced_at":"2026-01-21T22:32:03.984Z","repository":{"id":253643447,"uuid":"844082071","full_name":"prantlf/zigup","owner":"prantlf","description":"Upgrades to the latest version of Zig, or manages more versions of Zig on the same machine, supporting all platforms including RISC-V, as simple es rustup.","archived":false,"fork":false,"pushed_at":"2025-06-07T23:06:06.000Z","size":82,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-08T00:19:20.310Z","etag":null,"topics":["bash","install","shell","version","version-manager","zig","zsh"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prantlf.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-08-18T10:27:38.000Z","updated_at":"2025-06-07T23:06:09.000Z","dependencies_parsed_at":"2024-08-18T13:25:05.888Z","dependency_job_id":"7eb4f65e-c57e-400f-b776-cdae379f41bd","html_url":"https://github.com/prantlf/zigup","commit_stats":{"total_commits":5,"total_committers":2,"mean_commits":2.5,"dds":0.4,"last_synced_commit":"92b830eaf5808660b4475789ac3f366f668d4d28"},"previous_names":["prantlf/zigup"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/prantlf/zigup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prantlf%2Fzigup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prantlf%2Fzigup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prantlf%2Fzigup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prantlf%2Fzigup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prantlf","download_url":"https://codeload.github.com/prantlf/zigup/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prantlf%2Fzigup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28645549,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T21:29:11.980Z","status":"ssl_error","status_checked_at":"2026-01-21T21:24:31.872Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","install","shell","version","version-manager","zig","zsh"],"created_at":"2024-09-24T14:20:38.365Z","updated_at":"2026-01-21T22:32:03.979Z","avatar_url":"https://github.com/prantlf.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zig Upgrader and Version Manager\n\nUpgrades to the latest version of Zig, or manages more versions of Zig on the same machine, supporting all platforms including RISC-V, as simple es `rustup`.\n\n* Small. Written in `bash`, easily extensible.\n* Fast. Downloads and unpacks pre-built binary builds.\n* Portable. Writes only to the user home directory.\n* Simple. Switches the version globally, no environment variable changes needed.\n* Efficient. Just run `zigup up`.\n\nPlatforms: `macos-x86_64`, `macos-aarch64`, `freebsd-x86_64`, `linux-x86`, `linux-x86_64`, `linux-aarch64`, `linux-armv7a`, `linux-powerpc64le`, `linux-riscv64`, `windows-x86`, `windows-x86_64`, `windows-aarch64`.\n\n## Getting Started\n\nMake sure that you have `bash` 4 or newer and `curl` available, execute the following command:\n\n    curl -fSs https://raw.githubusercontent.com/prantlf/zigup/master/install.sh | bash\n\nBefore you continue, make sure that you have the following tools available: `curl`, `grep`, `jq`, `ln`, `rm`, `rmdir`, `sed`, `tar` (non-Windows), `uname`, `unxz` (non-Windows), `unzip` (Windows). It's likely that `jq` will be missing. You can install it like this on Debian: `apt-get install -y jq`.\n\nInstall the latest version of Zig, if it hasn't been installed yet:\n\n    zigup install latest\n\nUpgrade both the installer script and the Zig language, if they're not the latest versions, and delete the previously active latest version from the disk too:\n\n    zigup up\n\n## Installation\n\nMake sure that you have `bash` 4 or newer and `curl` available, execute the following command:\n\n    curl -fSs https://raw.githubusercontent.com/prantlf/zigup/master/install.sh | bash\n\nBoth the `zigup` and `zig` should be executable in any directory via the `PATH` environment variable. The installer script will modify the RC-file of the shell, from which you launched it. The following RC-files are supported:\n\n    ~/.bashrc\n    ~/.zshrc\n    ~/.config/fish/config.fish\n\nIf you use other shell or more shells, update the other RC-files by putting both the installer directory and the Zig binary directory to `PATH`, for example:\n\n    $HOME/.zigup:$HOME/.zig:$PATH\n\nStart a new shell after the installer finishes. Or extend the `PATH` in the current shell as the instructions on the console will tell you.\n\n## Locations\n\n| Path       | Description                                             |\n|:-----------|:--------------------------------------------------------|\n| `~/.zigup` | directory with the installer script and versions of Zig |\n| `~/.zig`   | symbolic link to the currently active version of Zig    |\n\nFor example, with the Zig 0.13.0 activated:\n\n    /home/prantlf/.zigup\n      ├── 0.12.0   (another version)\n      ├── 0.13.0   (linked to /home/prantlf/.zig)\n      └── zigup    (installer script)\n\n## Usage\n\n    zigup \u003ctask\u003e [version]\n\n    Tasks:\n\n      current              print the currently selected version of Zig\n      latest               print the latest version of Zig for download\n      local                print versions of Zig ready to be selected\n      remote               print versions of Zig available for download\n      update               update this tool to the latest version\n      upgrade              upgrade Zig to the latest and remove the current version\n      up                   perform both update and upgrade tasks\n      install \u003cversion\u003e    add the specified or the latest version of Zig\n      uninstall \u003cversion\u003e  remove the specified version of Zig\n      use \u003cversion\u003e        use the specified or the latest version of Zig\n      help                 print usage instructions for this tool\n      version              print the version of this tool\n\nYou can enter just `MAJ` or `MAJ.MIN` as `\u003cversion\u003e`, instead of the full `MAJ.MIN.PAT`. When using the `install` or `use` tasks, the *most* recent full version that starts by the entered partial version will be picked. When using the `uninstall` task, the *least* recent full version that starts by the entered partial version will be picked.\n\n## Debugging\n\nIf you enable `bash` debugging, every line of the script will be printed on the console. You'll be able to see values of local variables and follow the script execution:\n\n    bash -x zigup ...\n\nYou can debug the installer too:\n\n    curl -fSs https://raw.githubusercontent.com/prantlf/zigup/master/install.sh | bash -x\n\n## Platform Detection\n\n### Environment Variables\n\nThe following environment variables can be set before running `install.sh` or `zigup`, if you know what you're doing:\n\n| Variable        | Default value                           |\n|:----------------|:----------------------------------------|\n| `PLATFORM`      | detected using `uname`                  |\n| `OS`            | part of `PLATFORM` before `-`           |\n| `ARCH`          | part of `PLATFORM` after `-`            |\n| `TOOL_URL_LIST` | https://ziglang.org/download/index.json |\n| `TOOL_URL_DIR`  | https://ziglang.org/download            |\n| `INST_DIR`      | `$HOME/.zigup`                          |\n| `TOOL_DIR`      | `$HOME/.zig`                            |\n\n## Contributing\n\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Lint and test your code.\n\n## License\n\nCopyright (c) 2024-2025 Ferdinand Prantl\n\nLicensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprantlf%2Fzigup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprantlf%2Fzigup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprantlf%2Fzigup/lists"}