stdn.gd
v0.1.1
Published
Standard Garden CLI - Manage your digital garden from the command line
Maintainers
Readme
@stdn.gd
A command-line interface for managing your Standard Garden notes.
Installation
npm install -g @stdn.gd
# or
npx @stdn.gdSetup
Install dependencies:
npm installLink globally (optional):
npm link
Configuration
Set the API URL (optional, defaults to http://localhost:8090):
export STANDARD_API_URL=http://localhost:8090Authentication
Before using the CLI, you need to authenticate with your API key:
standard loginYou'll be prompted to enter your API key (available from your user profile).
Commands
Authentication
standard login # Authenticate with API key
standard whoami # Check current userNote Management
standard note send "Your note content" # Create a new note
standard note read # Read your latest note
standard note search "keyword" # Search notes
standard note random # Get a random note
standard note edit <id> "New content" # Edit a note
standard note delete <id> # Delete a noteAPI Compatibility
The CLI is compatible with the Standard Garden API worker and uses:
- UUID-based API key authentication
- RESTful endpoints for note management
- Full-text search capabilities
- User isolation and permissions
Publishing
To publish a new version to npm:
# Update version in package.json
npm version patch # or minor/major
# Publish to npm
npm publishMake sure you have:
- NPM account with publishing rights
- Proper authentication (
npm login) - Updated version number
Development
The CLI connects to the API worker at http://localhost:8090 by default. Make sure the API worker is running:
cd apps/api
npm run dev