Install LaTeX with one command
bibby-latex installs TeX, latexmk, the packages papers normally need, and a working VS Code setup, then compiles a test document to confirm it worked. Free and open source, on macOS, Windows and Linux.
Quick start
macOS and Linux
curl -fsSL https://raw.githubusercontent.com/BibbyAI/Bibby-LaTeX-CLI/main/install.sh | bashTakes about 3 to 5 minutes. No admin password needed.
Windows (PowerShell)
irm https://raw.githubusercontent.com/BibbyAI/Bibby-LaTeX-CLI/main/windows/install.ps1 | iexNode already installed
npx bibby-latexSame installer, from npm. Nothing is downloaded from GitHub.
To skip the four questions and take the defaults:
curl -fsSL https://raw.githubusercontent.com/BibbyAI/Bibby-LaTeX-CLI/main/install.sh | bash -s -- --yes --profile=standard --scaffoldnpm package
The whole installer ships in the npm package, so npx bibby-latex runs it without fetching anything else. On macOS and Linux it hands off to src/bibby-latex.sh, on Windows to windows/install.ps1, with prompts intact. Every flag below works the same way.
Run once
npx bibby-latexInstall the command
npm i -g bibby-latex- Package
- bibby-latex
- Version
- 1.0.0
- License
- MIT
- Published
- 25 November 2026
- Requires
- node >= 16
Requirements
- An internet connection. Packages are downloaded during install.
- Disk space for the profile you choose, from about 200 MB to about 2.5 GB.
curlandtaron macOS and Linux. Both ship with the system.- No admin password, on the default TinyTeX backend.
- VS Code is optional. Skip that step with
--no-vscode.
Opening a terminal
| macOS | Press ⌘ + Space, type Terminal, press Enter. |
| Windows | Start menu, type PowerShell, open it. |
| Linux | Press Ctrl + Alt + T. |
What it does
- 01
Checks what you already have
Operating system, Linux distribution, any TeX already installed, and whether VS Code is on your PATH.
- 02
Asks four questions
How big a TeX you want, whether to set up VS Code, and where files go. Every question has a default.
- 03
Installs TeX
TinyTeX at user level, which needs no admin password. It can use your distribution's TeX Live, MacTeX or MiKTeX instead.
- 04
Installs the package set for your profile
Done with tlmgr, so \usepackage{siunitx} does not fail on your first real document.
- 05
Puts TeX on your PATH
In the correct shell startup file, so pdflatex and latexmk work in a new terminal.
- 06
Sets up VS Code
Installs LaTeX Workshop and merges settings into settings.json. Your file is backed up first and conflicting keys are left alone.
- 07
Writes the Colab and Kaggle setup
Notebook files, plus a single line to paste into any notebook.
- 08
Compiles a test document
Math, tables, fonts and hyperref, so you know the install works before you trust it with a paper.
Profiles
Set with --profile=NAME, or answer the prompt.
| Profile | Size | Contents |
|---|---|---|
minimal | ~200 MB | TinyTeX and the basics. Downloads extra packages the first time a document needs them. |
standard | ~1.2 GB | Default. What a thesis or paper normally needs, installed up front. |
full | ~2.5 GB | Standard plus ACM, IEEE, Springer LNCS, REVTeX and APA class files. |
Options
-y, --yes | Accept every default. No questions. |
--profile=NAME | minimal, standard or full. |
--backend=NAME | tinytex, system or mactex. |
--no-vscode | Skip the VS Code setup. |
--extras | Also install spell check and grammar extensions. |
--cloud | Write the Colab and Kaggle setup files here. |
--scaffold[=DIR] | Create a starter main.tex, .latexmkrc and .vscode folder. |
--force-settings | Overwrite conflicting VS Code settings. |
--vscode-only | Only do the VS Code setup. |
--cloud-only | Only print or write the cloud setup. |
--doctor | Diagnose an existing install and run a test compile. |
--uninstall | Remove TinyTeX and the PATH entry it added. |
-v, --verbose | Show every command as it runs. |
Through a pipe, pass flags after bash -s --, as in the quick start example.
Diagnosing a broken setup
Works on installs it did not create.
bibby-latex --doctorPrints which TeX you have and where it lives, checks every binary, confirms LaTeX Workshop is installed, then compiles a document using math, tables, fonts and hyperref. If that document compiles, the installation is fine and the problem is in your file. See the LaTeX tutorials and the common LaTeX errors guide.
Uninstalling
bibby-latex --uninstallRemoves TinyTeX and the PATH entry it added. Anything that was on the machine beforehand is left alone.
Colab and Kaggle
Paste into the first cell of a notebook:
!curl -fsSL https://raw.githubusercontent.com/BibbyAI/Bibby-LaTeX-CLI/main/cloud/bibby_cloud.py | python3 - --profile standardThen bibby_cloud.write_tex(...) writes your document and bibby_cloud.compile_and_show(...) compiles it and renders the PDF inline. On Kaggle, switch internet access on first under Settings.
VS Code and Cursor
Coming soon
The extension trybibby.bibby-latex is on its way to the VS Code Marketplace and to Cursor. It adds a status bar TeX indicator, one-click install inside the editor, automatic installation of missing packages when a build fails on a missing .sty, and builds that report errors as diagnostics rather than a wall of log. Until then, the install command sets up VS Code with LaTeX Workshop.
Supported systems
| macOS | Intel and Apple silicon |
| Debian family | Debian, Ubuntu, Mint, Pop!_OS |
| Red Hat family | Fedora, RHEL, Rocky |
| Arch family | Arch, Manjaro |
| Other Linux | openSUSE, Alpine |
| Windows | Windows 10 and 11, and WSL |
Security notes
The quick start pipes a script from the internet into your shell. What that script does:
- Readable before you run it. MIT licensed and public. Download
install.sh, read it, run it locally. Behaviour is identical. - No sudo on the default TinyTeX backend. It installs into your home directory.
- Backs up before editing. Your VS Code
settings.jsonis copied first, and conflicting keys are kept unless you pass--force-settings. - Reversible.
--uninstallremoves what it added.
FAQ
- Is it safe to pipe curl into bash?
- It runs code from the internet on your machine, so check the source first. The installer is MIT licensed and public at BibbyAI/Bibby-LaTeX-CLI. Download
install.sh, read it, and run it locally if you prefer. It installs TinyTeX at user level without sudo and backs up your VS Codesettings.jsonbefore touching it. - Do I need the full 5 GB TeX Live?
- No.
standardis about 1.2 GB and covers what a thesis or paper needs.minimalis about 200 MB and downloads packages on demand. - I already have TeX installed. Will this break it?
- No. It detects what is there and works with it. To set up only the editor, run with
--vscode-only. - My LaTeX is already broken. Can this tell me why?
- Run
bibby-latex --doctor. If its test document compiles, the installation is fine and the problem is in your file. The LaTeX tutorials cover that case. - Does it work on Windows?
- Yes, on Windows 10 and 11, with the PowerShell command. In WSL, use the macOS and Linux command instead.
- Do I need a Bibby account?
- No. The installer is free, MIT licensed, and installs open-source software. To install nothing at all, the browser compiler needs no setup.
- Is there a VS Code or Cursor extension?
- Coming soon. See the extension section above.
Source
- BibbyAI/Bibby-LaTeX-CLI the installer itself, MIT licensed.
- BibbyAI/Awesome-Latex-Tools a list of LaTeX and AI writing tools.
- npmjs.com/package/bibby-latex v1.0.0, MIT, published 25 November 2026.
Prefer not to install anything? Bibby compiles LaTeX in the browser, with nothing on your machine and co-authors editing the same paper.