{"id":51625950,"url":"https://github.com/diskd-ai/diskd-cli","last_synced_at":"2026-07-13T01:02:49.656Z","repository":{"id":369509388,"uuid":"1290050556","full_name":"diskd-ai/diskd-cli","owner":"diskd-ai","description":"Rust command-line client and MCP bridge for diskd Drive","archived":false,"fork":false,"pushed_at":"2026-07-05T18:04:05.000Z","size":88,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-05T18:10:25.717Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://diskd.ai","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/diskd-ai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-07-05T14:21:45.000Z","updated_at":"2026-07-05T18:04:09.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/diskd-ai/diskd-cli","commit_stats":null,"previous_names":["diskd-ai/diskd-cli"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/diskd-ai/diskd-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diskd-ai%2Fdiskd-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diskd-ai%2Fdiskd-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diskd-ai%2Fdiskd-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diskd-ai%2Fdiskd-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diskd-ai","download_url":"https://codeload.github.com/diskd-ai/diskd-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diskd-ai%2Fdiskd-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35406584,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-12T02:00:06.386Z","response_time":87,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-07-13T01:02:47.293Z","updated_at":"2026-07-13T01:02:49.642Z","avatar_url":"https://github.com/diskd-ai.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# diskd CLI\n\n`diskd` is a small Rust command-line client for the diskd Drive API. It gives\nhumans, shell scripts, and coding agents a Unix-style interface for listing,\nreading, searching, uploading, syncing, and querying Drive files through the\npublic `apis-service` gateway.\n\nThe CLI is published as the public `diskd-ai/diskd-cli` GitHub repository.\nRelease tags build platform archives and SHA-256 checksum files for Linux,\nmacOS, and Windows.\n\n## What You Can Do\n\n- Browse Drive paths with `ls`, `tree`, `glob`, and `stat`.\n- Stream file bytes with `cat`.\n- Search indexed content with `grep` and `vsearch`.\n- Ask natural-language questions over CSV, TSV, XLS, and XLSX files with `biquery`.\n- Work with generic Drive DBs through `database` (alias `db`).\n- Create, insert, query, commit, inspect, and drop Telegram Drive DBs with `telegram-db`.\n- Upload files, create folders, rename, copy, remove, and one-way sync folders.\n- Run an embedded MCP stdio server with Drive tools for MCP clients.\n- Update itself from signed GitHub release checksums.\n- Use text output for humans or `--json` output for scripts.\n\n## Install\n\nInstall the latest release:\n\n```sh\ncurl -fsSL https://raw.githubusercontent.com/diskd-ai/diskd-cli/main/install.sh | sh\n```\n\nPin a release:\n\n```sh\ncurl -fsSL https://raw.githubusercontent.com/diskd-ai/diskd-cli/main/install.sh | DISKD_VERSION=v0.1.5 sh\n```\n\nInstall into a custom directory:\n\n```sh\ncurl -fsSL https://raw.githubusercontent.com/diskd-ai/diskd-cli/main/install.sh | DISKD_INSTALL_DIR=\"$HOME/bin\" sh\n```\n\nThe installer detects your platform, downloads the matching archive from GitHub\nReleases, verifies the `.sha256` file, and installs `diskd`.\n\nUpdate an installed binary:\n\n```sh\ndiskd update\n```\n\nNormal human-facing commands check GitHub Releases on startup. When a newer\nrelease is available, `diskd` prints a yellow stderr notice with the update\ncommand. Checks are skipped for `--json`, `--quiet`, and MCP stdio serving.\n\n## Quick Start\n\nAuthenticate through the browser:\n\n```sh\ndiskd login\n```\n\nThis opens `https://app.iosya.com/oauth-apps`, creates diskd CLI credentials\nfrom your logged-in browser session, and stores the returned bearer token.\n\nUse the development app host:\n\n```sh\ndiskd login --dev\n```\n\nAuthenticate with an already-issued bearer token:\n\n```sh\ndiskd login --token \"$APIS_ACCESS_TOKEN\"\n```\n\nOr keep a token only in the environment:\n\n```sh\nexport APIS_ACCESS_TOKEN=\"...\"\nexport APIS_BASE_URL=\"https://apis.iosya.com\"\n```\n\nCheck identity metadata decoded from the token:\n\n```sh\ndiskd --json whoami\n```\n\nList projects and select one as the current context:\n\n```sh\ndiskd --json set-context --list\ndiskd set-context \"Project Name\"\ndiskd get-context\n```\n\nWork with files under that project:\n\n```sh\ndiskd mkdir docs\ndiskd upload ./report.pdf --dest docs --force\ndiskd ls docs\ndiskd cat docs/report.pdf \u003e report.pdf\ndiskd grep \"payment terms\" docs --limit 10 --offset 0\ndiskd vsearch \"contract renewal clauses\" docs/report.pdf --limit 5 --offset 0\n```\n\nGlobal flags must be placed before the subcommand:\n\n```sh\ndiskd --json ls docs\n```\n\n## Common Commands\n\n```sh\ndiskd ls [path] [--recursive] [--long]    # \u003cDIR\u003e/\u003cFILE\u003e, size, index status, name + display metadata\ndiskd tree [path] -L 2 -s                 # Drive tree with depth-limited traversal\ndiskd glob \"**/*.pdf\" [--path docs]\ndiskd grep \"exact text\" [path...] --limit 10 --offset 0\ndiskd vsearch \"semantic query\" [path...] --limit 10 --offset 0\ndiskd cat path/to/file \u003e local-file\ndiskd read path/to/file --limit 3 --offset 0\ndiskd stat path/to/file\ndiskd biquery \"what is the total amount?\" sheet.csv\ndiskd --json database query generic-db \"SELECT id, text FROM messages LIMIT 20\" --db-type telegram\ndiskd --json telegram-db query team-chat \"SELECT id, text FROM messages LIMIT 20\"\ndiskd upload ./file.txt --dest docs --force\ndiskd sync ./local-folder --dest docs --once\ndiskd update\ndiskd mcp serve\n```\n\nSee [docs/commands.md](docs/commands.md) for the full command reference.\n\n## Documentation\n\n- [Quick start](docs/quick-start.md)\n- [Command reference](docs/commands.md)\n- [How-tos](docs/how-to.md)\n- [Configuration and authentication](docs/configuration.md)\n- [MCP server](docs/mcp.md)\n- [Development and releases](docs/development.md)\n\n## Configuration\n\nBy default, `diskd` uses `$HOME/.diskd/`:\n\n```text\n$HOME/.diskd/\n  config.yaml\n  credentials\n```\n\nYou can override the state directory with `DISKD_HOME`.\n\nImportant environment variables:\n\n```sh\nexport APIS_BASE_URL=\"https://apis.iosya.com\"\nexport APIS_ACCESS_TOKEN=\"...\"\nexport DISKD_HOME=\"$HOME/.diskd\"\nexport DISKD_NO_UPDATE_CHECK=1\n```\n\nResolution order is:\n\n```text\nCLI flags -\u003e environment -\u003e config files -\u003e built-in defaults\n```\n\n## MCP\n\nRun the embedded MCP stdio server:\n\n```sh\ndiskd mcp serve\n```\n\nWhen launched directly in a terminal, this prints an LLM-agent MCP\nconfiguration snippet. When launched by an MCP client over stdio, it starts the\nserver protocol without human text on stdout.\n\nThe server exposes these tool names:\n\n```text\ntools__ls\ntools__read\ntools__glob\ntools__grep\ntools__vsearch\ntools__bi_query\n```\n\nSee [docs/mcp.md](docs/mcp.md) for client configuration examples.\n\n## Development\n\n```sh\ncargo test --workspace\ncargo clippy --workspace -- -D warnings\n```\n\nRelease builds are produced by `.github/workflows/release.yml` when a `v*` tag\nis pushed or when the workflow is run manually.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiskd-ai%2Fdiskd-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiskd-ai%2Fdiskd-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiskd-ai%2Fdiskd-cli/lists"}