npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

todone-cli

v1.0.0

Published

Command-line interface for managing Todone notes

Downloads

4

Readme

Todone CLI

Command-line interface for managing your Todone notes from the terminal.

📦 Installation

Choose your preferred installation method:

Option 1: npm (Cross-Platform)

npm install -g todone-cli

Option 2: Homebrew (macOS/Linux)

brew tap Pierry/todone
brew install todone

Option 3: From Source

git clone https://github.com/Pierry/todone.git
cd todone
npm install
npm link

See INSTALLATION.md for detailed instructions and troubleshooting.

🚀 Setup

1. Get Your Package

Install via your preferred method above.

2. Configure Firebase Service Account

The CLI uses Firebase Admin SDK for authentication and data access. You need to set up a service account:

  1. Go to Firebase Console
  2. Select your Todone project
  3. Go to Project Settings > Service Accounts
  4. Click Generate New Private Key
  5. Download the JSON file
  6. Create the config directory and move the file:
mkdir -p ~/.todone
mv ~/Downloads/your-service-account-file.json ~/.todone/service-account.json

3. Authenticate

todone login

Enter your email address that you use in the Todone app. The CLI will verify your account and save your credentials locally at ~/.todone/auth.json.

📖 Usage

List Commands

# List all notes
todone list

# List with aliases
todone ls

# List notes in a specific folder
todone list --folder <folderId>

# Search notes
todone list --search "keyword"

# Limit results
todone list --limit 10

# Show only done notes
todone list --done

# Show only pending notes
todone list --pending

View a Note

# View note by ID (use short ID from list command)
todone view <noteId>

# Alias
todone show <noteId>

Create a Note

# Interactive mode (prompts for all fields)
todone create

# With inline options
todone create --title "My Note" --content "Note content"

# Open editor for content
todone create --editor

# Create in a specific folder
todone create --folder <folderId>

# Alias
todone new

Edit a Note

# Interactive mode
todone edit <noteId>

# Update title
todone edit <noteId> --title "New Title"

# Update content
todone edit <noteId> --content "New content"

# Open editor for content
todone edit <noteId> --editor

Delete a Note

# Delete with confirmation
todone delete <noteId>

# Delete without confirmation
todone delete <noteId> --yes

# Alias
todone rm <noteId>

Mark as Done/Undone

# Toggle done status
todone done <noteId>

Manage Folders

# List all folders with note counts
todone folders

Search

# Search by keyword
todone search "keyword"

# Search with limit
todone search "keyword" --limit 5

Authentication

# Login
todone login

# Logout
todone logout

# Show current user
todone whoami

💡 Examples

Quick workflow

# List your notes
todone ls

# Create a new note interactively
todone new

# View a specific note
todone view a1b2c3d4

# Mark as done
todone done a1b2c3d4

# Search for notes about "project"
todone search "project"

# Edit a note in your default editor
todone edit a1b2c3d4 --editor

Advanced usage

# Create a note with all details in one command
todone create -t "Meeting Notes" -c "Discussed Q4 roadmap" -f folder123

# List only done notes in a specific folder
todone ls --folder folder123 --done

# Search and limit results
todone search "important" --limit 5

🎨 Features

  • Beautiful table output - Notes displayed in formatted tables
  • Interactive mode - Prompts guide you through creating/editing notes
  • Editor integration - Open your favorite editor (set via $EDITOR env variable)
  • Search & filter - Find notes by content, folder, or status
  • Folder support - Organize notes in folders
  • Markdown support - Create and edit notes in markdown format
  • Offline auth - Credentials cached locally for fast access

🔧 Configuration

Config Directory

All CLI configuration is stored in ~/.todone/:

  • service-account.json - Firebase service account credentials
  • auth.json - Your authentication token

Environment Variables

  • EDITOR - Default editor for note content (defaults to nano)

Example:

export EDITOR=vim
# or
export EDITOR=code  # VS Code

🛠️ Troubleshooting

"Service account file not found"

Make sure you've placed your Firebase service account JSON file at:

~/.todone/service-account.json

"Not authenticated"

Run todone login and enter your email address.

"User not found"

Make sure you have an account in the Todone web app with the email you're trying to use.

Editor not opening

Set your EDITOR environment variable:

export EDITOR=nano  # or vim, code, etc.

📝 Tips

  1. Use short IDs: The list command shows shortened note IDs (first 8 characters). You can use these instead of the full ID.

  2. Combine filters: You can combine multiple options:

    todone ls --folder folder123 --search "keyword" --limit 10
  3. Quick editing: Use the --editor flag to open notes in your favorite editor:

    todone edit a1b2c3d4 --editor
  4. Check your folders: Use todone folders to see all your folders and their IDs before creating notes.

🔐 Security

  • Service account credentials are stored locally at ~/.todone/service-account.json
  • User authentication is cached at ~/.todone/auth.json
  • Both files should be kept secure and not shared
  • Use todone logout to clear cached credentials

📄 License

Same as Todone app - All rights reserved