tx

module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2026 License: MIT

README

tx

Command-line client for TexOps — a remote LaTeX compilation service.

Install

go install github.com/texops/tx/cmd/tx@latest

Usage

tx login                        # Authenticate with TexOps
tx init                         # Initialize a project in the current directory
tx build                        # Build all documents
tx build <name>                 # Build a specific document
tx status                       # Show project status
tx token create [--name "CI"]   # Create an API token
tx token list                   # List API tokens
tx token delete [name]          # Delete an API token
Getting started
  1. Run tx login to authenticate.
  2. In your LaTeX project directory, run tx init to create a .texops.yaml config file. This auto-discovers .tex files with \documentclass and lets you select which documents to build.
  3. Run tx build to compile your documents remotely. The first build creates the project on TexOps; subsequent builds use incremental file sync for speed.
Configuration

Project settings are stored in .texops.yaml:

  • project_key — unique identifier (safe to commit)
  • distribution_version — TexLive version (e.g. texlive:2021)
  • compiler — LaTeX compiler: pdflatex (default), xelatex, lualatex, latex, platex, uplatex
  • documents — list of documents to build

The API URL defaults to https://api.texops.dev and can be overridden with TX_API_URL or api_url in .texops.yaml.

License

MIT

Directories

Path Synopsis
cmd
tx command
internal
cli

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL