{"id":47321256,"url":"https://github.com/gleanwork/glean-cli","last_synced_at":"2026-05-03T00:08:37.274Z","repository":{"id":274377029,"uuid":"922714661","full_name":"gleanwork/glean-cli","owner":"gleanwork","description":"Work seamlessly with Glean from your command line.","archived":false,"fork":false,"pushed_at":"2026-03-25T23:16:27.000Z","size":69610,"stargazers_count":26,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-03-25T23:53:06.517Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gleanwork.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","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":"2025-01-26T22:44:18.000Z","updated_at":"2026-03-25T15:07:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"27530a79-3a2a-4983-805a-f5b9cfe1a4ca","html_url":"https://github.com/gleanwork/glean-cli","commit_stats":null,"previous_names":["scalvert/glean-cli","gleanwork/glean-cli"],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/gleanwork/glean-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gleanwork%2Fglean-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gleanwork%2Fglean-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gleanwork%2Fglean-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gleanwork%2Fglean-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gleanwork","download_url":"https://codeload.github.com/gleanwork/glean-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gleanwork%2Fglean-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31215262,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-30T15:24:02.938Z","status":"ssl_error","status_checked_at":"2026-03-30T15:23:44.804Z","response_time":138,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-03-17T18:00:35.355Z","updated_at":"2026-05-03T00:08:37.266Z","avatar_url":"https://github.com/gleanwork.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u003cimg src=\"demo/glean-logo.png\" width=\"28\" height=\"28\" style=\"vertical-align: middle; margin-right: 4px\"\u003e Glean CLI\n\nYour company's knowledge, search, and AI — from the command line.\n\nSearch across your company's knowledge, chat with Glean Assistant, manage the full Glean API surface, and integrate Glean into automated workflows — all without leaving the terminal.\n\n\u003cp\u003e\n  \u003ca href=\"https://github.com/gleanwork/.github/blob/main/docs/repository-stability.md#prerelease\"\u003e\u003cimg src=\"https://img.shields.io/badge/-Prerelease-F6F3EB?style=flat-square\u0026logo=data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMzIgMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0yNC4zMDA2IDIuOTU0MjdMMjAuNzY1NiAwLjE5OTk1MUwxNy45MDI4IDMuOTk1MjdDMTMuNTY1MyAxLjkzNDk1IDguMjMwMTkgMy4wODQzOSA1LjE5Mzk0IDcuMDA5ODNDMS42NTg4OCAxMS41NjQyIDIuNDgzIDE4LjExMzggNy4wMzczOCAyMS42NDg5QzguNzcyMzggMjIuOTkzNSAxMC43ODkzIDIzLjcwOTIgMTIuODI3OSAyMy44MTc3QzE2LjE0NjEgMjQuMDEyOCAxOS41MDc3IDIyLjYyNDggMjEuNjc2NSAxOS44MDU1QzI0LjczNDQgMTUuODggMjQuNTE3NSAxMC40MTQ4IDIxLjQ1OTYgNi43Mjc4OUwyNC4zMDA2IDIuOTU0MjdaTTE4LjExOTcgMTcuMDUxMkMxNi4xMDI4IDE5LjYzMiAxMi4zNzI1IDIwLjEwOTEgOS43NzAwMSAxOC4wOTIyQzcuMTg5MTkgMTYuMDc1MiA2LjcxMjA3IDEyLjMyMzMgOC43MjkwMSA5Ljc0MjQ2QzkuNzA0OTQgOC40ODQ1OCAxMS4xMTQ2IDcuNjgyMTQgMTIuNjc2MSA3LjQ4Njk2QzEzLjA0NDggNy40NDM1OCAxMy40MTM1IDcuNDIxOSAxMy43ODIyIDcuNDQzNThDMTQuOTc1IDcuNTA4NjUgMTYuMTI0NCA3Ljk0MjM5IDE3LjA3ODcgOC42Nzk3N0MxOS42NTk1IDEwLjcxODQgMjAuMTM2NiAxNC40NzAzIDE4LjExOTcgMTcuMDUxMloiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0yNC41MTc2IDIxLjY5MjJDMjMuOTMyIDIyLjQ1MTMgMjMuMjgxNCAyMy4xMjM2IDIyLjU2NTcgMjMuNzUyNUMyMS44NzE3IDI0LjMzODEgMjEuMTEyNyAyNC44ODAzIDIwLjMxMDIgMjUuMzM1N0MxOS41Mjk1IDI1Ljc2OTUgMTguNjgzNyAyNi4xMzgyIDE3LjgzNzggMjYuNDIwMUMxNi45OTIgMjYuNzAyIDE2LjEwMjggMjYuODk3MiAxNS4yMTM3IDI3LjAwNTdDMTQuMzI0NSAyNy4xMTQxIDEzLjQzNTMgMjcuMTU3NSAxMi41MjQ0IDI3LjA5MjRDMTEuNjEzNSAyNy4wMjczIDEwLjcyNDMgMjYuODc1NSA5Ljg1Njg0IDI2LjY1ODdMOS42NjE2NSAyNy4zNzQzTDguNzcyNDYgMzAuOTk2MkM5LjkwMDIxIDMxLjI5OTggMTEuMDQ5NyAzMS40NzMzIDEyLjIyMDggMzEuNTZDMTIuMjY0MiAzMS41NiAxMi4zMjkyIDMxLjU2IDEyLjM3MjYgMzEuNTZDMTMuNTAwMyAzMS42MjUxIDE0LjY0OTggMzEuNTgxNyAxNS43NTU4IDMxLjQ1MTZDMTYuOTI3IDMxLjI5OTggMTguMDk4MSAzMS4wMzk1IDE5LjIyNTggMzAuNjcwOEMyMC4zNTM2IDMwLjMwMjIgMjEuNDU5NyAyOS44MjUgMjIuNTAwNyAyOS4yMzk1QzIzLjU2MzQgMjguNjUzOSAyNC41NjEgMjcuOTM4MiAyNS40OTM1IDI3LjE1NzVDMjYuNDQ3OCAyNi4zNTUgMjcuMzE1MyAyNS40NDQyIDI4LjA3NDQgMjQuNDQ2NUMyOC4xODI4IDI0LjMxNjQgMjguMjY5NSAyNC4xNjQ2IDI4LjM3OCAyNC4wMTI4TDI0Ljc3NzkgMjEuMzQ1MkMyNC42Njk0IDIxLjQ1MzcgMjQuNjA0NCAyMS41ODM4IDI0LjUxNzYgMjEuNjkyMloiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPg==\u0026labelColor=343CED\" alt=\"Prerelease\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/gleanwork/glean-cli/releases\"\u003e\u003cimg src=\"https://img.shields.io/github/v/release/gleanwork/glean-cli\" alt=\"latest release\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/gleanwork/glean-cli/blob/main/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/gleanwork/glean-cli\" alt=\"license\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/gleanwork/glean-cli/actions/workflows/ci.yml\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/gleanwork/glean-cli/ci.yml?branch=main\u0026label=CI\" alt=\"CI status\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Contents\n\n- [ Glean CLI](#-glean-cli)\n  - [Contents](#contents)\n  - [Installation](#installation)\n  - [Quick Start](#quick-start)\n  - [Why Glean CLI?](#why-glean-cli)\n  - [Authentication](#authentication)\n    - [API Token (CI/CD)](#api-token-cicd)\n    - [Credential resolution order](#credential-resolution-order)\n  - [Interactive TUI](#interactive-tui)\n    - [Keyboard Shortcuts](#keyboard-shortcuts)\n    - [Slash Commands](#slash-commands)\n    - [File Attachments](#file-attachments)\n  - [Commands](#commands)\n    - [Core](#core)\n    - [`glean search`](#glean-search)\n    - [`glean chat`](#glean-chat)\n    - [`glean api`](#glean-api)\n    - [API Namespace Commands](#api-namespace-commands)\n      - [Example payloads](#example-payloads)\n  - [Agent Workflow](#agent-workflow)\n  - [Environment Variables](#environment-variables)\n  - [Exit Codes](#exit-codes)\n  - [Shell Completions](#shell-completions)\n  - [Agent Skills](#agent-skills)\n    - [Install](#install)\n    - [Available Skills](#available-skills)\n  - [Contributing](#contributing)\n  - [Acknowledgments](#acknowledgments)\n  - [License](#license)\n\n## Installation\n\n```bash snippet=readme/snippet-01.sh\n# Homebrew (recommended)\nbrew install gleanwork/tap/glean-cli\n\n# Manual\ncurl -fsSL https://raw.githubusercontent.com/gleanwork/glean-cli/main/install.sh | sh\n```\n\nPre-built binaries for macOS, Linux, and Windows are available on the [Releases](https://github.com/gleanwork/glean-cli/releases) page.\n\n## Quick Start\n\n```bash snippet=readme/snippet-02.sh\n# 1. Authenticate\nglean auth login                          # OAuth via browser (recommended)\n# — OR set env vars for CI/CD:\n# export GLEAN_SERVER_URL=https://your-server-url GLEAN_API_TOKEN=your-token\n\n# 2. Search\nglean search \"vacation policy\"\n\n# 3. Chat\nglean chat \"Summarize our Q1 engineering goals\"\n\n# 4. Open the interactive TUI\nglean\n```\n\n## Why Glean CLI?\n\nIf your workflow involves searching Glean, asking Glean AI questions, or wiring Glean data into scripts or agent pipelines — the CLI is faster than a browser tab and composable with everything else in your terminal.\n\nEvery command returns structured JSON. Use `--dry-run` to preview requests before they're sent. Use `glean schema \u003ccommand\u003e` to get machine-readable flag documentation. Results pipe cleanly to `jq`, scripts, or any tool that reads stdin.\n\n```bash snippet=readme/snippet-03.sh\n# Discover what commands are available\nglean schema | jq '.commands'\n\n# Preview a request before sending\nglean search --dry-run --datasource confluence \"Q1 planning\"\n\n# Parse results with jq — each result has .title and nested .document fields\nglean search \"onboarding\" | jq '.results[].title'\n\n# Stream results as NDJSON — one SearchResult object per line\nglean search \"engineering docs\" --output ndjson | jq .title\n```\n\n## Authentication\n\n```bash snippet=readme/snippet-04.sh\nglean auth login    # interactive login (detects the best method automatically)\nglean auth status   # verify credentials, host, and token expiry\nglean auth logout   # remove all stored credentials\n```\n\n`glean auth login` detects the right authentication method for your environment automatically:\n\n| Method | When it's used | What happens |\n| --- | --- | --- |\n| **Browser login** | Default for most Glean instances | Opens your browser, you approve, done |\n| **Device code login** | Organizations using an external IdP (e.g. Okta) | Prints a URL and code — open the URL, enter the code |\n| **API token** | Instances without OAuth support | Prompts you to paste a token from Glean Admin |\n\nYou don't need to choose — `auth login` tries each method in order and uses the first one that works. Tokens are stored securely in the system keyring and refreshed automatically.\n\n### API Token (CI/CD)\n\nFor non-interactive environments, set credentials via environment variables:\n\n```bash snippet=readme/snippet-05.sh\nexport GLEAN_API_TOKEN=your-token\nexport GLEAN_SERVER_URL=https://your-server-url\nglean search \"test\"\n```\n\nAPI tokens are scoped to an individual user account. Generate one from **Glean Admin → Settings → API Tokens**.\n\n### Credential resolution order\n\nCredentials are resolved in this order: environment variables → system keyring → `~/.glean/config.json`.\n\n## Interactive TUI\n\nRunning `glean` with no arguments opens a full-screen chat powered by Glean Assistant.\n\n```bash snippet=readme/snippet-06.sh\nglean            # open TUI\nglean --continue # resume the most recent session\n```\n\n### Keyboard Shortcuts\n\n| Key              | Action                                   |\n| ---------------- | ---------------------------------------- |\n| `enter`          | Send message                             |\n| `↑` / `↓`        | Scroll history / navigate command picker |\n| `ctrl+r`         | New session                              |\n| `ctrl+l`         | Clear screen                             |\n| `ctrl+y`         | Copy last response                       |\n| `ctrl+h`         | Toggle help                              |\n| `ctrl+c` / `esc` | Quit                                     |\n\n### Slash Commands\n\nType `/` in the input to open the command picker:\n\n| Command                      | Description                  |\n| ---------------------------- | ---------------------------- |\n| `/mode auto\\|fast\\|advanced` | Switch agent reasoning depth |\n| `/clear`                     | Start a new session          |\n| `/help`                      | Show keyboard shortcuts      |\n\n### File Attachments\n\nType `@` followed by a filename to attach a local file to your message. The file's contents are sent as context to Glean AI.\n\n```\n@go.mod          # attach go.mod from current directory\n@src/config.go   # attach a specific file\n```\n\nUse ↑/↓ to navigate matches, Enter to attach, Esc to dismiss.\n\n## Commands\n\n### Core\n\n| Command                  | Description                                                 |\n| ------------------------ | ----------------------------------------------------------- |\n| `glean search \u003cquery\u003e`   | Search across your company's knowledge                      |\n| `glean chat [message]`   | Chat with Glean Assistant (non-interactive)                 |\n| `glean api \u003cendpoint\u003e`   | Make a raw authenticated HTTP request to the Glean REST API |\n| `glean schema [command]` | Show machine-readable JSON schema for any command           |\n| `glean auth`             | Authenticate with Glean                                     |\n| `glean --version`        | Print the CLI version                                       |\n\n### `glean search`\n\n```bash snippet=readme/snippet-07.sh\nglean search \"vacation policy\"\nglean search \"Q1 planning\" --datasource confluence --page-size 5\nglean search \"docs\" --fields \"results.document.title,results.document.url\"\nglean search \"docs\" --output ndjson | jq .title\nglean search --json '{\"query\":\"onboarding\",\"pageSize\":3}'\nglean search --dry-run \"test\"\n```\n\n| Flag                    | Description                                              |\n| ----------------------- | -------------------------------------------------------- |\n| `--output` / `--format` | `json` (default), `ndjson` (one result per line), `text` |\n| `--fields`              | Dot-path field projection — prefix paths with `results.` |\n| `--datasource` / `-d`   | Filter by datasource (repeatable)                        |\n| `--type` / `-t`         | Filter by document type (repeatable)                     |\n| `--page-size`           | Results per page (default 10)                            |\n| `--json`                | Raw SDK request body (overrides all flags)               |\n| `--dry-run`             | Print request body without sending                       |\n\n### `glean chat`\n\n```bash snippet=readme/snippet-08.sh\nglean chat \"What are our company holidays?\"\nglean chat --timeout 120000 \"Summarize all Q1 OKRs across teams\"\nglean chat --json '{\"messages\":[{\"author\":\"USER\",\"messageType\":\"CONTENT\",\"fragments\":[{\"text\":\"What is Glean?\"}]}]}'\nglean chat --dry-run \"test\"\necho \"What is Glean?\" | glean chat\nglean chat                                # interactive multiline input, Ctrl+D to send\n```\n\nWhen called without a message argument, `glean chat` reads from stdin until EOF (Ctrl+D).\nThis enables multiline messages and piping input from other commands.\n\n| Flag        | Description                                     |\n| ----------- | ----------------------------------------------- |\n| `--timeout` | Request timeout in milliseconds (default 60000) |\n| `--json`    | Raw SDK request body (overrides all flags)      |\n| `--dry-run` | Print request body without sending              |\n| `--save`    | Persist chat for continuation (default true)    |\n\n### `glean api`\n\nRaw authenticated HTTP access to any Glean REST API endpoint (relative to `/rest/api/v1/`).\n\n```bash snippet=readme/snippet-09.sh\nglean api search --method POST --raw-field '{\"query\":\"rust\",\"pageSize\":3}'\nglean api --preview search --method POST --raw-field '{\"query\":\"test\"}'\n```\n\n### API Namespace Commands\n\nAll namespace commands accept `--json`, `--output`, `--fields`, and `--dry-run`. Run `glean \u003ccommand\u003e --help` for full usage.\n\n| Namespace             | Subcommands                                                             | Description                                    |\n| --------------------- | ----------------------------------------------------------------------- | ---------------------------------------------- |\n| `glean agents`        | `list`, `get`, `schemas`, `run`                                         | Manage and invoke Glean AI agents              |\n| `glean answers`       | `list`, `get`, `create`, `update`, `delete`                             | Curated Q\u0026A pairs                              |\n| `glean announcements` | `create`, `update`, `delete`                                            | Time-bounded company announcements             |\n| `glean collections`   | `list`, `get`, `create`, `update`, `delete`, `add-items`, `delete-item` | Curated document collections                   |\n| `glean documents`     | `get`, `summarize`, `get-by-facets`, `get-permissions`                  | Document retrieval and summarization           |\n| `glean entities`      | `list`, `read-people`                                                   | People, teams, and custom entities             |\n| `glean insights`      | `get`                                                                   | Search and usage analytics                     |\n| `glean messages`      | `get`                                                                   | Retrieve indexed messages (Slack, Teams, etc.) |\n| `glean pins`          | `list`, `get`, `create`, `update`, `remove`                             | Promoted search results                        |\n| `glean shortcuts`     | `list`, `get`, `create`, `update`, `delete`                             | Go-links / memorable short URLs                |\n| `glean tools`         | `list`, `run`                                                           | Glean platform tools                           |\n| `glean verification`  | `list`, `verify`, `remind`                                              | Document verification and review               |\n| `glean activity`      | `report`, `feedback`                                                    | User activity reporting                        |\n\n#### Example payloads\n\n```bash snippet=readme/snippet-10.sh\n# Retrieve a document by URL\nglean documents get --json '{\"documentSpecs\":[{\"url\":\"https://...\"}]}'\n\n# Summarize a document\nglean documents summarize --json '{\"documentSpecs\":[{\"url\":\"https://...\"}]}'\n\n# Look up people\nglean entities list --json '{\"entityType\":\"PEOPLE\",\"query\":\"engineering\"}'\n\n# Create a go-link\nglean shortcuts create --json '{\"data\":{\"inputAlias\":\"onboarding\",\"destinationUrl\":\"https://...\"}}'\n\n# Create a shortcut with a variable template\nglean shortcuts create --json '{\"data\":{\"inputAlias\":\"jira\",\"urlTemplate\":\"https://jira.example.com/browse/{arg}\"}}'\n\n# Pin a result for a query\nglean pins create --json '{\"queries\":[\"onboarding\"],\"documentId\":\"https://...\"}'\n\n# List available AI agents (table view)\nglean agents list --output text\n\n# List agents — filter to specific fields without jq\nglean agents list --fields agents.agent_id,agents.name\n\n# Get a specific agent\nglean agents get --json '{\"agentId\":\"\u003cid\u003e\"}'\n\n# Get schemas for an agent\nglean agents schemas --json '{\"agentId\":\"\u003cid\u003e\"}'\n\n# Run an agent\nglean agents run --json '{\"agentId\":\"\u003cid\u003e\",\"messages\":[{\"author\":\"USER\",\"fragments\":[{\"text\":\"summarize Q1 results\"}]}]}'\n```\n\n## Agent Workflow\n\nThe CLI is designed as a first-class tool for AI coding agents. Every command returns JSON on stdout and errors on stderr with non-zero exit codes.\n\n```bash snippet=readme/snippet-11.sh\n# 1. Discover all available commands\nglean schema | jq '.commands'\n\n# 2. Understand a command's flags\nglean schema search | jq '.flags | keys'\nglean schema search | jq '.flags[\"--output\"]'\n\n# 3. Preview the exact request before sending\nglean shortcuts create --dry-run \\\n  --json '{\"data\":{\"inputAlias\":\"test\",\"destinationUrl\":\"https://example.com\"}}'\n\n# 4. Execute and parse results\nglean search \"engineering values\" | jq '.results[].title'\n\n# 5. Stream NDJSON for large result sets — one SearchResult object per line\nglean search \"all docs\" --output ndjson --page-size 50 | jq .title\n```\n\n## Environment Variables\n\n| Variable          | Description                                               |\n| ----------------- | --------------------------------------------------------- |\n| `GLEAN_API_TOKEN`  | API token — overrides keyring and config file             |\n| `GLEAN_SERVER_URL` | Full Glean server URL. See [developers.glean.com](https://developers.glean.com/get-started/authentication) for how to find yours. |\n\nEnvironment variables take precedence over stored configuration.\n\n## Exit Codes\n\n| Code | Meaning                                                          |\n| ---- | ---------------------------------------------------------------- |\n| `0`  | Success                                                          |\n| `1`  | General error (authentication failure, API error, invalid input) |\n\nAll error details are written to stderr. Stdout contains only structured output (JSON/NDJSON/text), making the CLI safe for piping.\n\n## Shell Completions\n\n```bash snippet=readme/snippet-12.sh\nglean completion bash   # Bash\nglean completion zsh    # Zsh\nglean completion fish   # Fish\n```\n\n## Agent Skills\n\nThe `skills/` directory contains [Agent Skills](https://agentskills.io) — structured instructions that teach AI coding agents how to use the Glean CLI effectively. Skills are supported by Claude Code, Cursor, GitHub Copilot, VS Code, Gemini CLI, OpenAI Codex, Goose, Amp, Roo Code, Junie, and [many others](https://agentskills.io).\n\nEach skill covers a specific command: flags, output formats, `--json` request shapes, and composition patterns.\n\n### Install\n\nUse [`npx skills`](https://github.com/agentskills/agentskills) to install into your agent:\n\n```bash snippet=readme/snippet-13.sh\n# Install all skills at once\nnpx skills add https://github.com/gleanwork/glean-cli\n\n# Or pick only what you need\nnpx skills add https://github.com/gleanwork/glean-cli/tree/main/skills/glean-cli-search\nnpx skills add https://github.com/gleanwork/glean-cli/tree/main/skills/glean-cli-chat\n```\n\n### Available Skills\n\n| Skill                     | Description                                            |\n| ------------------------- | ------------------------------------------------------ |\n| `glean-cli`               | Root skill: discovery, auth, global flags, output formatting |\n| `glean-cli-search`        | Search across company knowledge                        |\n| `glean-cli-chat`          | Chat with Glean Assistant                              |\n| `glean-cli-schema`        | Runtime JSON schema introspection                      |\n| `glean-cli-agents`        | List, inspect, and run Glean AI agents                 |\n| `glean-cli-documents`     | Retrieve and summarize documents                       |\n| `glean-cli-collections`   | Manage curated document collections                    |\n| `glean-cli-entities`      | Look up people, teams, and entities                    |\n| `glean-cli-answers`       | Manage curated Q\u0026A pairs                               |\n| `glean-cli-shortcuts`     | Manage go-links                                        |\n| `glean-cli-pins`          | Manage promoted search results                         |\n| `glean-cli-announcements` | Manage company announcements                           |\n| `glean-cli-api`           | Raw authenticated API access                           |\n| `glean-cli-activity`      | Report user activity and feedback                      |\n| `glean-cli-verification`  | Document verification workflows                        |\n| `glean-cli-tools`         | List and run platform tools                            |\n| `glean-cli-messages`      | Retrieve indexed messages                              |\n| `glean-cli-insights`      | Search and usage analytics                             | 545db25 (refactor: namespace skills as glean-cli-* via generator)\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for development setup, coding conventions, and how to submit pull requests.\n\n## Acknowledgments\n\nThe Glean CLI's agent-first design — structured JSON output, `--dry-run` previews, `glean schema` introspection, and agent skills — was heavily inspired by the [Google Workspace CLI](https://github.com/googleworkspace/cli) built by [Justin Poehnelt](https://github.com/jpoehnelt). His work on `gws` and his writing on designing CLIs for AI agents shaped how we think about making command-line tools that work as well for agents as they do for humans.\n\n## License\n\nMIT — see [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgleanwork%2Fglean-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgleanwork%2Fglean-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgleanwork%2Fglean-cli/lists"}