🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@getnote/cli

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@getnote/cli

CLI tool for Get笔记 — manage notes and knowledge bases from the terminal

Source
npmnpm
Version
0.1.3
Version published
Weekly downloads
512
-44.23%
Maintainers
1
Weekly downloads
 
Created
Source

getnote-cli

CLI tool for Get笔记 — manage notes and knowledge bases from the terminal.

Designed for both humans and AI agents.

Installation

npm install -g @getnote/cli

Manual

Download the latest binary from Releases and place it on your $PATH.

Build from source

git clone https://github.com/iswalle/getnote-cli.git
cd getnote-cli
make install

Quick Start

# Authenticate (OAuth browser flow)
getnote auth login

# Save a URL
getnote save https://example.com/article --title "Great article"

# Save plain text
getnote save "Remember to review the docs" --tag work

# List recent notes
getnote notes

# List all notes (auto-paginate)
getnote notes --all

Commands

Authentication

getnote auth login                   Authenticate via OAuth (browser)
getnote auth login --api-key <key>   Authenticate with API key directly
getnote auth status                  Show authentication status
getnote auth logout                  Remove saved credentials

Save & Tasks

getnote save <url|text>              Save a URL or text note
  --title <title>                    Optional title
  --tag <tag>                        Tag (repeatable)

getnote task <task_id>               Check the progress of an async save task

Notes

getnote notes                        List recent notes (default 20)
  --limit <n>                        Number of notes (default 20)
  --since-id <id>                    Pagination cursor
  --all                              Fetch all notes (auto-paginate)

getnote note <id>                    Show note details
  --field <name>                     Output a single field as plain text
                                     (id, title, content, type,
                                      created_at, updated_at, url, excerpt)

getnote note update <id>             Update a note
  --title <title>
  --content <content>                plain_text notes only
  --tag <tags>                       Comma-separated, replaces existing tags

getnote note delete <id>             Delete a note (moves to trash)
  -y, --yes                          Skip confirmation

Knowledge Bases

getnote kbs                          List all knowledge bases

getnote kb <topic_id>                List notes in a knowledge base
  --limit <n>                        Number of notes (default 20)
  --all                              Fetch all notes (auto-paginate)

getnote kb create <name>             Create a knowledge base
  --desc <description>

getnote kb add <topic_id> <note_id> [note_id...]     Add notes
getnote kb remove <topic_id> <note_id> [note_id...]  Remove notes

Global Flags

FlagDescription
--api-key <key>Override API key for this command
-o, --output json|tableOutput format (default: table)
--env prod|devTarget environment (default: prod)

Field Output (Pipe-friendly)

Use --field to extract a single value for use in scripts:

# Get note content
getnote note 1234567890 --field content

# Get source URL of a link note
getnote note 1234567890 --field url

# Pipe into another command
getnote note 1234567890 --field content | pbcopy

Configuration

Credentials are stored in ~/.getnote/config.json:

{
  "api_key": "gk_live_xxx",
  "client_id": "cli_xxx"
}

Environment variables (higher priority than config file):

VariableDescription
GETNOTE_API_KEYAPI key
GETNOTE_CLIENT_IDClient ID
GETNOTE_API_URLOverride the API base URL

AI Agent Usage

All commands support -o json for machine-readable output. See the skills/ directory for agent skill documentation.

License

MIT

Keywords

getnote

FAQs

Package last updated on 02 Apr 2026

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