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.

Opening an original file on disk (optional)

Searching and citing need no local path setup. A document result may include an fs object. For a local relative file, read fs.home_var and join that environment variable's value with fs.relative_path. Each root has its own variable; configure only the roots available on this machine.

export RAGFLY_HOME_442681="/Users/ana/Dropbox"
export RAGFLY_HOME_991203="/Volumes/Archive"

If fs.is_cloud_only is true, use the authorized cloud provider. If fs.is_public_url is true, open its public URL. If fs.is_absolute is true, use the absolute path on the machine where it exists. If fs.home_var is null or unset, do not guess a local root. See the MCP guide for the full order and examples.

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 | compose | read | refresh | promote
    ├── queue          show | runs
    ├── skill          list | show | run
    ├── catalog
    ├── document-type  list
    ├── characteristic list
    ├── 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"
ragfly cloud search "statements" --filter @filter.json --space 12
ragfly cloud chat ask "How do I release the entity of my key?" --mode help

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.20.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.20.0
File Size Uploaded Provenance
ragfly_cli-1.20.0.tar.gz 29.2 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 57.7 kB

Release files / ragfly_cli-1.20.0.tar.gz

Download URL ragfly_cli-1.20.0.tar.gz
Size 29.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c1cdb33f650eecfd604a942f44103e84d694f780c11e039f2f8f195468874bfe
BLAKE2b-256 checksum
How to use checksums
01488d2eb4d08de48e33a9251ac4d917de5ef0ec4471cf0bcaeeaecb723744ec
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.20.0-py3-none-any.whl

Download URL ragfly_cli-1.20.0-py3-none-any.whl
Size 28.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1e62f4c48132c4fadacc3f51b0e0685bb945604bcc8229a72b7711bf7cf52937
BLAKE2b-256 checksum
How to use checksums
81ffdb68cfafb0a3875d053510dfe648baa18419b4303ef5b0334f956a882efc
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.20.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