cli-discover

Solid

Discover which CLI tools are installed, their versions, and authentication status

AI & Automation 648 stars 94 forks Updated today MIT

Install

View on GitHub

Quality Score: 91/100

Stars 20%
94
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# CLI Discovery When you need to discover what CLI tools are available on the system, use `host_bash` to check directly. Do not use sandboxed `bash` for discovery - it may not see host-installed CLIs or auth state, leading to false negatives. ## Checking if a CLI exists ```bash which <name> # returns path if found, exits non-zero if missing command -v <name> # alternative, works in all POSIX shells ``` ## Getting version info ```bash <name> --version # most CLIs support this flag ``` Use a 5-second timeout to avoid hanging on unresponsive CLIs. ## Auth-check commands For CLIs that support authentication, check whether the user is logged in: | CLI | Auth check command | | --------- | ----------------------------------------------------------------- | | `gh` | `gh auth status` | | `aws` | `aws sts get-caller-identity` | | `gcloud` | `gcloud auth list --filter=status:ACTIVE --format=value(account)` | | `az` | `az account show` | | `vercel` | `vercel whoami` | | `netlify` | `netlify status` | | `fly` | `fly auth whoami` | | `heroku` | `heroku auth:whoami` | | `railway...

Details

Author
vellum-ai
Repository
vellum-ai/vellum-assistant
Created
4 months ago
Last Updated
today
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category