Download the PHP package jeffersongoncalves/obsidian-notes-cli without Composer

On this page you can find all versions of the php package jeffersongoncalves/obsidian-notes-cli. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package obsidian-notes-cli

![Obsidian Notes CLI](https://raw.githubusercontent.com/jeffersongoncalves/obsidian-notes-cli/main/art/jeffersongoncalves-obsidian-notes-cli.png)

Obsidian Notes CLI

Buy Me A Coffee

Tests PHPStan Latest Release Packagist PHP 8.3+

CLI that writes structured Markdown notes into an Obsidian vault — built so Claude Code (or any script) can persist documentation/decisions as notes you can browse and search natively in Obsidian. No custom viewer, no lock-in: it's just Markdown files with frontmatter, in a folder Obsidian already understands.

Part of a 3-repo integration:

Requirements

Install

Composer (recommended)

PHAR

Download obsidian-notes.phar from the latest release, then:

Every release after the first is built and attached by CI (.github/workflows/release.yml) — the binary that ships is exactly what git log for that tag shows, nothing built out-of-band.

Commands

Command What it does
vault:init <path> Scaffolds .claude-notes.json and a Claude Notes/ folder in a vault, and saves it as the default vault. Safe to re-run — leaves an existing config file untouched. Pass --no-default to skip saving the default.
vault:config [path] Saves a default vault path (~/.obsidian-notes-cli/config.json) so --vault / OBSIDIAN_VAULT can be skipped. No path shows the current default.
note:create Writes a note. Body comes from stdin.
note:list Lists notes with source: claude-code frontmatter in a vault, optionally filtered by --project.
self-update Replaces the running binary with the latest release's .phar (PHAR installs only — no-op for Composer installs, which update via composer global update).

note:create options

Option Required Notes
--project= yes Groups the note in the folder structure and in the Obsidian plugin's sidebar.
--title= yes Used to build the filename slug and stored in frontmatter.
--tags= no Repeatable: --tags=architecture --tags=backend.
--vault= no* Vault path. *Falls back to OBSIDIAN_VAULT, then the vault:config default — one of the three must resolve.

Usage

Set OBSIDIAN_VAULT to skip passing --vault every time:

Or persist it once with vault:config (handy so Claude Code/scripts never need to know the path):

Resolution order: --vault > OBSIDIAN_VAULT > vault:config default.

The .claude-notes.json contract

A vault's .claude-notes.json (created by vault:init, or hand-written) is the single source of truth shared with the Obsidian plugin — both read the same file, nothing is duplicated:

If no .claude-notes.json exists, the CLI falls back to config/notes.php's defaults — same values as above.

The bridge

After writing a file, the CLI makes a best-effort POST http://127.0.0.1:<bridgePort>/notes to the Obsidian plugin, so its sidebar refreshes instantly. If the bridge is off (it's opt-in on the plugin side) or Obsidian isn't running, the call is silently ignored — the file is already on disk, and Obsidian picks up external changes natively the next time it gains focus. The CLI never depends on the plugin being installed.

Development

Windows note

Local PHAR builds (composer build / php obsidian-notes app:build) fail on a stock Herd/Windows PHP install because phar.readonly defaults to On. CI builds on Linux with phar.readonly=Off set explicitly, so releases are unaffected — this only blocks building a .phar on your own Windows machine.

License

MIT.


All versions of obsidian-notes-cli with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package jeffersongoncalves/obsidian-notes-cli contains the following files

Loading the files please wait ...