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

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

# Non-interactive / CI (API key, no expiry)
export RAGFLY_API_KEY=slm_live_xxxxxxxxxx

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                    ← operations against api.ragfly.ai
    ├── me
    ├── group       list | switch | clear
    ├── api-key     create | list | revoke
    ├── document    list | show | edges
    ├── space       list | show
    ├── queue       show | runs
    ├── skill       list | show | run
    ├── catalog
    ├── search
    └── chat        ask

Codes are English on the wire: filter and read catalog codes in English (--status VECTORIZED, codigo_estado_doc: VECTORIZED, skill code SUMMARIZE_DOCUMENT). The CLI translates them to RAGfly's internal codes at its edge, using the same public-code map as the MCP server (GET /catalogo/public-codes). The former Spanish command/flag names (documento listar, --estado) still work as compatibility aliases.

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

Full reference: https://api.ragfly.ai/docs and docs/integradores/CLI.md.

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

Source

The command logic is extracted from the RAGfly Desktop client (cliente/ragfly/). Canonical source of each module lives there; keep this package's copies in sync when the cloud command surface changes.

Metadata

Release files for ragfly-cli 1.18.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.18.0
File Size Uploaded Provenance
ragfly_cli-1.18.0.tar.gz 27.5 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 57.9 kB

Release files / ragfly_cli-1.18.0.tar.gz

Download URL ragfly_cli-1.18.0.tar.gz
Size 27.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1237509b3f7ef6d229ca66db29dacf2b1486a08bf0979e6dbfb6662f0b5aaf36
BLAKE2b-256 checksum
How to use checksums
0a79d6ea0f4353187ae5dd9bb35fe5f8cdb09a73fcfd373bd96b769be94b65e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

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

Download URL ragfly_cli-1.18.0-py3-none-any.whl
Size 30.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2fe335554f6ef2f79b9fb65af59d6750bff09c73aaf12522134046307fdde6ef
BLAKE2b-256 checksum
How to use checksums
5a974ba2b3f03f5c9854c333427fbbf513b4eb07e374595420f38814a436f1c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Security for ragfly-cli 1.18.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