Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions docs/wlc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,29 @@ This allows you to store keys in your personal settings, while using the
:file:`.weblate` configuration in the VCS repository so that :program:`wlc` knows which
server it should talk to.


Environment variables
+++++++++++++++++++++

.. versionadded:: 1.18.0

The API URL and key can also be configured using environment variables. This is
especially useful for CI workflows:

.. envvar:: WLC_URL

API URL

.. envvar:: WLC_KEY

API key

The configuration precedence (highest to lowest) is:

1. Command-line arguments (:option:`--url`, :option:`--key`).
2. Environment variables (:envvar:`WLC_URL`, :envvar:`WLC_KEY`).
3. Configuration file (see :ref:`wlc-config`).

Examples
++++++++

Expand Down
Loading