Skip to main content

RAGfly CLI

Operate RAGfly from the terminal and CI — login + the full cloud API surface against api.ragfly.ai. Lightweight: depends only on click, rich, httpx and keyring. No desktop / PySide6 / OCR dependencies.

pip install ragfly-cli
ragfly version
ragfly login
ragfly cloud me

This package ships the ragfly binary for scripting and automation. It is distinct from pip install ragfly (the Python SDK, import import ragfly) and from RAGfly Desktop (the DMG/exe that bundles the local file worker for ragfly local scan/sync/daemon).

Authentication

# A person (JWT, stored in the OS keyring)
ragfly login

# Non-interactive / CI / agents (API key, only reaches /v1)
export RAGFLY_API_KEY=rf_xxxxxxxxxx

cloud group and cloud api-key manage a person's session and credentials: they need ragfly login, and the server refuses them for an API key.

RAGFLY_ROOT (optional) — open original files on disk

Searching, asking and citing need zero extra config. Only if a script or agent on this machine must open the original file on disk, set RAGFLY_ROOT once: it is the parent folder of the folder you selected when uploading your documents via the web app. RAGfly never reads it nor stores your absolute path — documents uploaded via browser carry a relative ruta_archivo, and the real path is $RAGFLY_ROOT + ruta_archivo.

# Example: you uploaded /Users/ana/Dropbox/MisDocumentos → the PARENT is the root
echo 'export RAGFLY_ROOT="/Users/ana/Dropbox"' >> ~/.zshrc
# "/MisDocumentos/letras/cancion.txt" → /Users/ana/Dropbox/MisDocumentos/letras/cancion.txt

Not needed for documents loaded via RAGfly Desktop (their paths are already absolute). Step-by-step walkthrough: https://ragfly.ai/build/mcp#setting-up-ragfly_root--once-per-machine-in-3-steps

Command surface

ragfly
├── login / logout / version
└── cloud                      ← the English REST /v1 contract of api.ragfly.ai
    ├── me
    ├── group          list | switch | clear      (signed-in person)
    ├── api-key        create | list | revoke     (signed-in person)
    ├── document       list | show | edges
    ├── space          list | show
    ├── queue          show | runs
    ├── skill          list | show | run
    ├── catalog
    ├── function       show
    ├── search
    ├── chat           ask
    ├── agent          context | tool
    ├── usage
    ├── conversation   list | delete
    ├── process        list | show | update
    ├── organization   show | update | draft
    └── operation      list | show | run

Every operation of the RAGfly application is available through cloud operation, with the same permissions and audit as the web app:

ragfly cloud operation list
ragfly cloud operation show document_types.update          # input/output schema
ragfly cloud operation run document_types.update --input-json '{"code": "TDOC_...", "name": "Invoices"}'

# write_confirm operations (deletes, reverts, resets) only run with --confirm
ragfly cloud operation run document_types.delete --input-json @input.json --confirm

--input-json takes inline JSON, @file or - (stdin). Never put secrets in it. Output is English end to end (--status VECTORIZED, -o json | jq).

ragfly cloud document list --status VECTORIZED --limit 20 -o id
ragfly cloud skill run SUMMARIZE_DOCUMENT --space 12
ragfly cloud search "Q1 revenue"

Full reference: https://api.ragfly.ai/docs.

Local operations (ragfly local scan/sync/daemon) require the local file worker and ship with RAGfly Desktop, not with this package.

Relation to RAGfly Desktop

RAGfly Desktop bundles its own ragfly binary with the local commands and a signed-in person's session. This package is the standalone cloud surface: since 1.19.0 its cloud commands use only the public /v1 contract, so they no longer mirror the Desktop copy.

Metadata

Release files for ragfly-cli 1.19.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ragfly-cli 1.19.0
File Size Uploaded Provenance
ragfly_cli-1.19.0.tar.gz 26.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ragfly-cli 1.19.0
File Interpreter ABI Platform
ragfly_cli-1.19.0-py3-none-any.whl Python 3 none any Details

Total release size: 53.7 kB

Release files / ragfly_cli-1.19.0.tar.gz

Download URL ragfly_cli-1.19.0.tar.gz
Size 26.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c0b7618b84e105f4b3d2f050a7c66d9a92ad14488f3e62039619be7fb69659a3
BLAKE2b-256 checksum
How to use checksums
18b40a7bcd3465ec6021b8137a3e5117f1e23323407d2ebd02a042093559ad8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / ragfly_cli-1.19.0-py3-none-any.whl

Download URL ragfly_cli-1.19.0-py3-none-any.whl
Size 27.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c82885a5410eda31a28eb4eca94c8d4be674a51e2bb0a25989cb35d2c46ac672
BLAKE2b-256 checksum
How to use checksums
1ed545762173ea3c5d620a1285345c51e57552d0a1e9a416432860df7055747c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for ragfly-cli 1.19.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page