Command Line Interface¶
This page documents the command line interface provided by esbonio
esbonio server¶
The esbonio server command launches the esbonio language server.
By default this start an instance of the language server configured to communicate over STDIO.
- -p port, --port port¶
When given this starts an instance of the language server configured to communicate over TCP on the given port number.
- -i module, --include module¶
Add an additional module e.g.
esbonio.server.features.sphinx_managerto the server configuration. To add multiple modules, this option can be given multiple times.
- -e module, --exclde module¶
Exclude a module e.g.
esbonio.server.features.sphinx_managerfrom the server configuration. To exclude multiple modules, this option can be given multiple times.Note
Excluding a module will also automatically exclude any modules that depend on it
esbonio sphinx¶
Commands for interacting with Sphinx projects.
The following options apply to all commands under the esbonio sphinx namespace.
- -c PATH, --config PATH¶
Read configuration values from the given path to a
pyproject.tomlfile. If not given, commands will look for apyproject.tomlfile in the current directory.
esbonio sphinx build¶
The esbonio sphinx build command builds a sphinx project
This command builds a sphinx project in the same manner as the esbonio language server, meaning:
Esbonio’s additional sphinx extensions will be enabled
Resulting html files will contain the HTML and JS necessary to support sync scrolling
The
esbonio.dbfile will be generated.
Useful as a debugging aid for compatibility issues.
In the absence of any additional command line flags, this command will look for a
pyproject.toml file in the current working directory and use the options in the
[tool.esbonio.sphinx] section to configure the build.
If the pyproject.toml file is not found, or does not contain the relevant options this command will attempt to derive a valid configuration, following the same rules as the language server.
Providing additional command line flags will override this behaviour.
- --build-args BUILD_ARGS¶
Override the value of
esbonio.sphinx.buildArguments, arguments should be passed as a single quoted string e.g.$ esbonio sphinx build --build-args '-M dirhtml docs docs/_build'
See How To Configure the Sphinx Build for more details.
- --python-cmd PYTHON_CMD¶
Override the value of
esbonio.sphinx.pythonCommand, arguments should be passed as a single quoted string e.g.$ esbonio sphinx build --python-cmd 'uv run --with sphinx==9.1.0 python'
See How To Configure the Sphinx Build Environment for more details.
- --debug¶
Important
This option requires both
esbonioand the target Sphinx environment to be using Python 3.14+Attach a pdb debugger to the build process.