Skip to main content

WonderSearch CLI

Upload your documents and search them from the terminal.

Install

Requires Python 3.10–3.14 on macOS, Windows, or Linux.

From a local copy of this repository, install the CLI:

python -m pip install .

Sign in

Set up your WonderSearch account in the Console, then run:

wondersearch login

Your browser will open. Check that the verification code matches the one in your terminal, then sign in and choose Connect CLI. If you are already signed in, you can connect that account directly.

If the browser does not open, run wondersearch login --no-browser and open the printed link on the same computer.

Choose where to work

List your workspaces and drives, then select the ones you want to use:

wondersearch workspace list
wondersearch workspace use WORKSPACE_ID
wondersearch drive list
wondersearch drive use DRIVE_ID

Replace WORKSPACE_ID and DRIVE_ID with IDs from the lists. The CLI remembers your selections for later commands.

Upload documents

Upload a file:

wondersearch upload ./guide.pdf --wait

Or upload a folder and its contents:

wondersearch upload ./docs --recursive --wait

Supported formats are PDF, Word (.docx), plain text, and Markdown. --wait keeps the command running until your documents are ready to search.

To preview a folder upload without sending files:

wondersearch upload ./docs --recursive --dry-run

The service operator selects the search model; there is no CLI model-selection option. The response's model field identifies the model actually used. The server enforces the active model's token limit and the 16,384 UTF-8 byte limit. Search returns at most 10 results; search --limit is not supported. Use --no-group-by-document to allow multiple passages per document, or --group-by-document to group them. --timeout-ms sets a server deadline from 1 to 20,000 milliseconds; omission uses the effort default configured by the server. This deadline is distinct from upload and processing timeouts.

Uploading the same file again creates another document. To update an existing document, use wondersearch upload ./guide.pdf --replace DOCUMENT_ID --wait.

If an upload is interrupted, use the run ID printed in the terminal to resume it:

wondersearch upload resume RUN_ID --wait

Ask a question about the documents in your selected drive:

wondersearch search "How do I reset my password?"

To search a specific folder, add --folder FOLDER_ID.

Other useful commands

Task Command
Check which account is signed in wondersearch whoami
List documents wondersearch document list
List folders wondersearch folder list
Create a folder wondersearch folder create "Research"
Check account usage wondersearch usage
Check storage wondersearch storage
Sign out of the CLI wondersearch logout

Signing out of the CLI leaves you signed in to the Console.

Use in scripts

Add --json to a command for output your script can read:

wondersearch search "What is our refund policy?" --json

For automation, sign in with an API key using wondersearch login --api-key. Paste the key at the hidden prompt. API keys can only access the workspace and actions they have permission to use.

Get help

Use --help to see the available commands and options:

wondersearch --help
wondersearch upload --help
wondersearch search --help

Metadata

Release files for wondersearch-cli 0.1.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 wondersearch-cli 0.1.0
File Size Uploaded
wondersearch_cli-0.1.0.tar.gz 56.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for wondersearch-cli 0.1.0
File Interpreter ABI Platform
wondersearch_cli-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 96.7 kB

Release files / wondersearch_cli-0.1.0.tar.gz

Download URL wondersearch_cli-0.1.0.tar.gz
Size 56.9 kB
Tags Source
SHA-256 checksum
How to use checksums
168bcc561677e76578c1026a31c3642e3b637cde5ae837b6bbf94c515c30d111
BLAKE2b-256 checksum
How to use checksums
ac5f5d131e8a4194f052f15686efcd9436b6416f4b59b4ae4614efeb404ad92d
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 Oct 6, 2026.

Transparency log

Release files / wondersearch_cli-0.1.0-py3-none-any.whl

Download URL wondersearch_cli-0.1.0-py3-none-any.whl
Size 39.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
05abb6987ab5de8bf97ea23577c2aafea6cc1115b155678641bb7cf1e3f31ec4
BLAKE2b-256 checksum
How to use checksums
c2b9d7af7eafd3571c0ca6f88cc9f937ff52b9814c1f185d6063743b948f39fb
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 Oct 6, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.1

2 release files

This release

0.1.0 This release

2 release files

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