New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@cli4ai/mongodb

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cli4ai/mongodb

MongoDB queries

latest
Source
npmnpm
Version
1.0.10
Version published
Maintainers
1
Created
Source

@cli4ai/mongodb

Official @cli4ai package • https://cli4ai.com • Install cli4ai: npm i -g cli4ai

MongoDB explorer and query helper (JSON in/out).

Setup

npm i -g cli4ai
cli4ai add -g mongodb

Optional: set a default connection URI (defaults to mongodb://localhost:27017):

cli4ai secrets set MONGO_URI

Commands

cli4ai run mongodb databases
cli4ai run mongodb collections <db>
cli4ai run mongodb schema <db> <collection> [samples]
cli4ai run mongodb find <db> <collection> [queryJson] [limit]
cli4ai run mongodb one <db> <collection> [queryJson]
cli4ai run mongodb aggregate <db> <collection> <pipelineJson>
cli4ai run mongodb count <db> <collection> [queryJson]
cli4ai run mongodb indexes <db> <collection>
cli4ai run mongodb stats <db> <collection>
cli4ai run mongodb distinct <db> <collection> <field> [queryJson]
cli4ai run mongodb sample <db> <collection> [size]
cli4ai run mongodb explain <db> <collection> [queryJson]

Examples

# List databases
cli4ai run mongodb databases

# Find recent users (query/pipeline args are JSON)
cli4ai run mongodb find app users '{"status":"active"}' 10
cli4ai run mongodb aggregate app events '[{"$match":{"type":"signup"}},{"$limit":5}]'

Keywords

cli4ai

FAQs

Package last updated on 21 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts