
Research
/Security News
Mini Shai-Hulud Campaign Hits Red Hat Cloud Services npm Packages
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.
CLI tool for mdbase collections — validate, query, CRUD, and execute Obsidian .base files
Command-line tool for working with mdbase collections. Validates, queries, and performs CRUD operations on markdown document collections. Can also execute Obsidian .base files.
Requires Node.js 22+ and the mdbase library.
git clone https://github.com/callumalpass/mdbase.git
git clone https://github.com/callumalpass/mdbase-cli.git
cd mdbase && npm ci && cd ..
cd mdbase-cli && npm ci && npm run build
The CLI is available as mdbase via the bin entry, or run directly with:
node dist/cli.js
mdbase <command> [options]
Global option:
-C, --collection <alias> Run a command against a registered collection alias (from mdbase collections add).| Command | Description |
|---|---|
validate | Validate documents against their type schemas |
query | Query documents with filters and sorting |
read | Read a single document by path or ID |
create | Create a new document |
update | Update an existing document |
delete | Delete a document |
rename | Rename a document |
types | List or inspect registered types |
| Command | Description |
|---|---|
base run | Execute an Obsidian .base file |
| Command | Description |
|---|---|
init | Initialize a new mdbase collection |
lint | Lint documents for common issues |
fmt | Format document frontmatter |
export | Export documents to CSV or JSON |
import | Import documents from CSV or JSON |
graph | Show link graph between documents |
stats | Print collection statistics |
watch | Watch for file changes and re-validate |
diff | Show differences between document versions |
schema | Generate or inspect type schemas |
collections | Manage named collection registry entries |
mdbase-fzf provides an interactive two-step picker powered by fzf:
untype for files without a type).Requirements: fzf and jq on PATH.
mdbase-fzf
Validate all documents in the current directory:
mdbase validate .
Query documents of a given type:
mdbase query "status = published" --types note --sort created --limit 10
Execute an Obsidian .base file:
mdbase base run my-view.base
Export to CSV:
mdbase export . --type note --format csv -o notes.csv
Initialize and register a collection alias:
mdbase init --register work
List markdown files from all registered collections:
mdbase collections files --format paths
| Project | Description |
|---|---|
| mdbase-workouts | Workout tracker with chat interface, built on mdbase |
mdbase-cli implements the mdbase specification.
MIT
FAQs
CLI tool for mdbase collections — validate, query, CRUD, and execute Obsidian .base files
The npm package mdbase-cli receives a total of 503 weekly downloads. As such, mdbase-cli popularity was classified as not popular.
We found that mdbase-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.

Security News
The Rust project is moving toward formal rules on LLM use in contributions after months of internal debate over maintainer burden, code quality, and contributor experience.