FessCTL
fessctl is a command-line interface (CLI) tool to manage Fess via its Admin API.
Fess is an open-source enterprise search server based on OpenSearch.
fessctl allows developers and operators to automate and script administrative tasks such as:
- Creating or updating crawler configurations
- Managing users and roles
- Starting or stopping scheduled jobs
- Exporting and importing settings
- Monitoring system health
(Currently under development, more features and improvements are on the way. Stay tuned for updates!)
Installation and Usage
There are four ways to use fessctl:
Method 1: Install from PyPI (recommended)
fessctl is published to PyPI. Install it with pip,
or use pipx / uv tool
for an isolated, globally available CLI:
pip install fessctl
# or, for an isolated install:
pipx install fessctl
# or:
uv tool install fessctl
Usage
export FESS_ACCESS_TOKEN=your_access_token_here
export FESS_ENDPOINT=https://your-fess-server
export FESS_VERSION=15.8.0
fessctl --help
fessctl ping
fessctl user list
Method 2: Using Pre-built Docker Image
If you prefer a container-based workflow, use the pre-built Docker image:
docker run --rm \
-e FESS_ENDPOINT=https://your-fess-server \
-e FESS_ACCESS_TOKEN=your_access_token_here \
-e FESS_VERSION=15.8.0 \
ghcr.io/codelibs/fessctl:0.3.0 --help
Run actual commands:
docker run --rm \
-e FESS_ENDPOINT=https://your-fess-server \
-e FESS_ACCESS_TOKEN=your_access_token_here \
-e FESS_VERSION=15.8.0 \
ghcr.io/codelibs/fessctl:0.3.0 ping
docker run --rm \
-e FESS_ENDPOINT=https://your-fess-server \
-e FESS_ACCESS_TOKEN=your_access_token_here \
-e FESS_VERSION=15.8.0 \
ghcr.io/codelibs/fessctl:0.3.0 user list
Method 3: Building Your Own Docker Image
Clone the repository and build the Docker image locally:
git clone https://github.com/codelibs/fessctl.git
cd fessctl
docker build -t fessctl:latest .
Then run with your custom image:
docker run --rm \
-e FESS_ENDPOINT=https://your-fess-server \
-e FESS_ACCESS_TOKEN=your_access_token_here \
-e FESS_VERSION=15.8.0 \
fessctl:latest --help
Method 4: Install from Source
For development or when you need to modify the source code:
Requirements
- Python 3.13+
uv(recommended for environment setup)
Setup
git clone https://github.com/codelibs/fessctl.git
cd fessctl
uv venv
source .venv/bin/activate # or .venv\Scripts\activate on Windows
uv pip install -e src
Usage
export FESS_ACCESS_TOKEN=your_access_token_here
export FESS_ENDPOINT=https://your-fess-server
export FESS_VERSION=15.8.0
fessctl --help
fessctl ping
fessctl user list
fessctl webconfig create --name TestConfig --url https://test.config.com/
Environment Variables
All four methods require the following environment variables:
FESS_ENDPOINT: The URL of your Fess server's API endpoint (default:http://localhost:8080)FESS_ACCESS_TOKEN: Bearer token for API authentication (required)FESS_VERSION: Target Fess version for API compatibility (default:15.8.0). Set this to match your Fess server. Fess 14.x and 15.x are supported; the value controls version-specific behavior such as HTTP methods for CRUD operations and the health-check endpoint (/api/v1/healthfor versions before 15.7,/api/v2/healthfor 15.7 and later).
License
This project is licensed under the Apache License 2.0. See the LICENSE file for details.
Contributing
Pull requests are welcome! Feel free to open issues or discussions to suggest features, report bugs, or ask questions.
Metadata
Release files for fessctl 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fessctl-0.3.0.tar.gz | 35.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fessctl-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 94.6 kB
Release files / fessctl-0.3.0.tar.gz
| Download URL | fessctl-0.3.0.tar.gz |
|---|---|
| Size | 35.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1540335af4aefa0509467bca2f2009e4fc2724eafc110f9cdaa4432de2274e8f
|
|
BLAKE2b-256 checksum How to use checksums |
da72b9b407bc8b24f5eeaf0aac2ec0153e88159809d67631bd200d6baf03a4da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 23, 2026.
Transparency logRelease files / fessctl-0.3.0-py3-none-any.whl
| Download URL | fessctl-0.3.0-py3-none-any.whl |
|---|---|
| Size | 58.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
205708b7d6d42f2eb3423effbb75710200b99c084a28722462e8b2fa485788c0
|
|
BLAKE2b-256 checksum How to use checksums |
53a50a577629bd5256a1090dba2e4f660964402c749e7b84149759d44fd7a9ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 23, 2026.
Transparency log