huyab-install-tools
Install the dev tools of a machine with one command, and check later that the machine is still fine. It is the scripts/install-tools.sh of huyabhome as a pip package. It needs bash (Linux or macOS) and no Python dependencies.
pipx install huyab-install-tools
install-tools # install the generic tools
install-tools --doctor # read-only health check
Install
| With | Command | Upgrade | Remove |
|---|---|---|---|
| pipx (recommended) | pipx install huyab-install-tools |
pipx upgrade huyab-install-tools |
pipx uninstall huyab-install-tools |
| pipx, no install | pipx run --spec huyab-install-tools install-tools --doctor |
always the latest | nothing to remove |
| mise | mise use -g pipx:huyab-install-tools |
mise upgrade pipx:huyab-install-tools |
mise unuse -g pipx:huyab-install-tools |
| pip | pip install huyab-install-tools |
pip install -U huyab-install-tools |
pip uninstall huyab-install-tools |
| git | pipx install "git+https://github.com/nguyenhuy158/huyabhome#subdirectory=python" |
run it again with --force |
pipx uninstall huyab-install-tools |
- mise installs the package through its
pipx:backend, which usesuvwhen it is installed andpipxotherwise. Pin a version withmise use -g pipx:huyab-install-tools@1.1.0. To use it in one project only, leave out-g; mise writes it tomise.toml. - Version 1.1.0 and later install two commands,
install-toolsandhuyab-install-tools, sopipx run huyab-install-tools --doctoralso works. Older versions have onlyinstall-tools; use the--specform above. - Version 1.1.1 and later also install the short command
itools, the same asinstall-tools.curl -fsSL https://raw.githubusercontent.com/nguyenhuy158/huyabhome/main/scripts/itools.sh | bashruns the script the same way as theinstall-tools.shURL, which stays. - With pipx and mise the commands are not on
PATHuntil you runpipx ensurepathormise activate(see their docs), once per machine.
Doctor
install-tools --doctor checks the machine and installs nothing. It prints one line per check and a summary, and exits 1 when a check failed, so it works in a script or in cron.
ok git git version 2.43.0
ok node >= 22 v22.23.5
FAIL cloudflared not installed
warn PATH /usr/local/bin is not on PATH
skip git-identity (INSTALL_SKIP)
doctor: 20 ok, 1 warnings, 1 failed
| Level | Means |
|---|---|
ok |
The check passed. |
warn |
Worth a look, but it does not fail the run (an old Node, a folder not on PATH, a missing token source). |
FAIL |
A tool or a step you asked for is missing or broken. The exit code is 1. |
skip |
The step is not turned on. |
What it checks:
- Always:
git,curl,python3,node(22 or newer),npm, whether the install folder is onPATH, and each tool with its version: bws, gh, mise, cf, wrangler, biome, cloudflared, browse, gitleaks, jq, rg, fd, shellcheck, shfmt, sqlite3. - Only for the steps you turn on with
--with STEP: the git identity, the git hook, Tailscale connected, the tailnet ssh block, the shell env, pipiops (clone,pipimcpandpipiclilinks, token source), and the bws login with the names of the secrets (never their values).
Doctor is read-only. It writes no file in your home folder and in the install folder. The tools it runs for their version, and for the bws check, run in a throwaway HOME, so their own caches and logs stay out of yours.
The same check is in the script: curl -fsSL https://raw.githubusercontent.com/nguyenhuy158/huyabhome/main/scripts/install-tools.sh | bash -s doctor. There it checks every step that is not in INSTALL_SKIP, which is all of them by default.
Safe by default
A plain install-tools installs only the generic CLI tools: bws, gh, mise, cf, wrangler, biome, cloudflared, browse, gitleaks, jq, rg, fd, shellcheck, shfmt, sqlite3.
It does not change your git config, your ssh config or your shell rc files, does not log in to any service, and does not write a README. Those are separate steps that run only when you ask:
| Step | What it does when you turn it on |
|---|---|
git-identity |
Sets the global git user.name and user.email. Needs --git-name and --git-email. |
git-hook |
Sets a global pre-commit hook that scans staged changes with gitleaks (changes core.hooksPath). |
ssh |
Adds tailnet hosts to ~/.ssh/config (userspace Tailscale only). |
shell-env |
Makes new shells export CLOUDFLARE_API_TOKEN from bws (edits ~/.bashrc / ~/.zshrc). |
tailscale |
Installs Tailscale and logs in with TS_AUTH_KEY. Uses sudo. |
pipiops |
Clones the author's private pipiops repo with your logged-in gh. Useless without access to it. |
verify |
Checks the Cloudflare and Browserbase keys stored in your bws. |
readme |
Writes ~/README.md for the machine. |
The tools themselves are installed with sudo when the install directory (/usr/local/bin) is not writable. Set INSTALL_DIR to install somewhere else.
Command
| Option | Does |
|---|---|
| (none) | Install the generic tools. |
--doctor |
Check the machine instead of installing (read-only, exit 1 on a failed check). |
--with STEP |
Also run (or, with --doctor, also check) a step from the table (repeatable). |
--git-name NAME --git-email EMAIL |
Turn on git-identity with your own name and email. |
--skip-auth |
Set SKIP_AUTH=1: install only, no login, no key checks. |
--list-steps |
List the steps. |
--path / --print |
Print the bundled script path / the script itself. |
--version |
Print the package version. |
Environment variables pass through (BWS_ACCESS_TOKEN, TS_AUTH_KEY, INSTALL_DIR, ...).
Library
import install_tools
install_tools.script_path() # pathlib.Path of the bundled script
install_tools.run() # generic tools only, returns the exit code
install_tools.run(enable=["git-hook"], env={"SKIP_AUTH": "1"})
install_tools.doctor() # read-only check, returns 0 or 1
install_tools.STEPS # the step names
run() raises ValueError for an unknown step, and for git-identity without GIT_USER_NAME and GIT_USER_EMAIL. doctor() does not need them: it only reads the identity.
The bundled script is the same file as scripts/install-tools.sh in the repo, where curl ... | bash runs every step. The pip command sets INSTALL_SKIP for you; to run the script yourself, use the same variable, for example INSTALL_SKIP="git-identity ssh" bash script.sh.
License
MIT. See LICENSE. The tools this package installs keep their own licenses.
Release (maintainers)
The script is copied here by pnpm build:install-tools. Do not edit it by hand.
python -m build python/
twine check python/dist/*
Upload with an API token that is read from a secret store into the environment of the twine process only (TWINE_USERNAME=__token__, TWINE_PASSWORD). Never put the token on a command line or in a file. After the first upload, replace the account-wide token with one limited to this project, or switch to PyPI Trusted Publishing.
Metadata
Release files for huyab-install-tools 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| huyab_install_tools-1.1.1.tar.gz | 18.2 kB | Without provenance | Details for huyab_install_tools-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| huyab_install_tools-1.1.1-py3-none-any.whl | Python 3 | none | any | Details for huyab_install_tools-1.1.1-py3-none-any.whl |
Total release size: 35.8 kB
Release files / huyab_install_tools-1.1.1.tar.gz
| Download URL | huyab_install_tools-1.1.1.tar.gz |
|---|---|
| Size | 18.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6a7b5279d046e718254e7980a9637d1028c39c4209b81f803affbfab4982ad51
|
|
BLAKE2b-256 checksum How to use checksums |
2b9f4a1e5c3c96709b0f160515d4efd9f6673720ab652bd04de4f680dbc3dfb7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.18
|
Release files / huyab_install_tools-1.1.1-py3-none-any.whl
| Download URL | huyab_install_tools-1.1.1-py3-none-any.whl |
|---|---|
| Size | 17.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7a1f99cdfaa362d89ae290d2b975069935e6478d273546d455b74801776bd96d
|
|
BLAKE2b-256 checksum How to use checksums |
0a3fbe09f8888eb37f3a72d7fb36521810441116b056c2be3f8d184dbbb8bd08
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.18
|
Security for huyab-install-tools 1.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.