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 | bash

Takes about 3 to 5 minutes. No admin password needed.

Windows (PowerShell)

irm https://raw.githubusercontent.com/BibbyAI/Bibby-LaTeX-CLI/main/windows/install.ps1 | iex

Node already installed

npx bibby-latex

Same 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 --scaffold

npm 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-latex

Install the command

npm i -g bibby-latex
Package
bibby-latex
Version
1.0.0
License
MIT
Published
25 November 2026
Requires
node >= 16
View on npm

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.
  • curl and tar on 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

macOSPress ⌘ + Space, type Terminal, press Enter.
WindowsStart menu, type PowerShell, open it.
LinuxPress Ctrl + Alt + T.

What it does

  1. 01

    Checks what you already have

    Operating system, Linux distribution, any TeX already installed, and whether VS Code is on your PATH.

  2. 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.

  3. 03

    Installs TeX

    TinyTeX at user level, which needs no admin password. It can use your distribution's TeX Live, MacTeX or MiKTeX instead.

  4. 04

    Installs the package set for your profile

    Done with tlmgr, so \usepackage{siunitx} does not fail on your first real document.

  5. 05

    Puts TeX on your PATH

    In the correct shell startup file, so pdflatex and latexmk work in a new terminal.

  6. 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.

  7. 07

    Writes the Colab and Kaggle setup

    Notebook files, plus a single line to paste into any notebook.

  8. 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.

ProfileSizeContents
minimal~200 MBTinyTeX and the basics. Downloads extra packages the first time a document needs them.
standard~1.2 GBDefault. What a thesis or paper normally needs, installed up front.
full~2.5 GBStandard plus ACM, IEEE, Springer LNCS, REVTeX and APA class files.

Options

-y, --yesAccept every default. No questions.
--profile=NAMEminimal, standard or full.
--backend=NAMEtinytex, system or mactex.
--no-vscodeSkip the VS Code setup.
--extrasAlso install spell check and grammar extensions.
--cloudWrite the Colab and Kaggle setup files here.
--scaffold[=DIR]Create a starter main.tex, .latexmkrc and .vscode folder.
--force-settingsOverwrite conflicting VS Code settings.
--vscode-onlyOnly do the VS Code setup.
--cloud-onlyOnly print or write the cloud setup.
--doctorDiagnose an existing install and run a test compile.
--uninstallRemove TinyTeX and the PATH entry it added.
-v, --verboseShow 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 --doctor

Prints 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 --uninstall

Removes 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 standard

Then 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

macOSIntel and Apple silicon
Debian familyDebian, Ubuntu, Mint, Pop!_OS
Red Hat familyFedora, RHEL, Rocky
Arch familyArch, Manjaro
Other LinuxopenSUSE, Alpine
WindowsWindows 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.json is copied first, and conflicting keys are kept unless you pass --force-settings.
  • Reversible. --uninstall removes 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 Code settings.json before touching it.
Do I need the full 5 GB TeX Live?
No. standard is about 1.2 GB and covers what a thesis or paper needs. minimal is 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

Prefer not to install anything? Bibby compiles LaTeX in the browser, with nothing on your machine and co-authors editing the same paper.