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
    ├── workspace      set [WORKSPACE_CODE] | set --clear
    ├── area           set [AREA_CODE] | set --release | list
    ├── location       list
    ├── group          list | switch | clear      (signed-in person)
    ├── api-key        create | list | revoke     (signed-in person)
    ├── document       list | show | edges
    ├── collection     list | show | compose | read | refresh | save
    ├── 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 --collection 12
ragfly cloud search "Q1 revenue"
ragfly cloud search "statements" --filter @filter.json --collection 12
ragfly cloud chat ask "How do I release the workspace 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 2.0.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 2.0.0
File Size Uploaded Provenance
ragfly_cli-2.0.0.tar.gz 30.7 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 60.1 kB

Release files / ragfly_cli-2.0.0.tar.gz

Download URL ragfly_cli-2.0.0.tar.gz
Size 30.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8ae571129858a95b9762824a65642ca10faf25cfba2de0ff617508cc211552e3
BLAKE2b-256 checksum
How to use checksums
6732c3486140e01f2245be1a78f7e347351513f9ee7171b2f7783e2b5dfdb4d6
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-2.0.0-py3-none-any.whl

Download URL ragfly_cli-2.0.0-py3-none-any.whl
Size 29.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0497b84fe5cc541fd48e18989c6df1c3002ac866a08631ea3bfd770829545576
BLAKE2b-256 checksum
How to use checksums
2f23911f26474246330984beb8fa93b73e6aae1ffb440ddca46972d636a69e97
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 2.0.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