@uncaged/ograph-cli
v0.1.0
Published
OGraph CLI for object-graph database operations
Downloads
120
Readme
@uncaged/ograph-cli
OGraph CLI — command-line client for OGraph object-graph database.
Installation
npm install -g @oc-forge/ographConfiguration
# Set API endpoint
ograph config set endpoint https://ograph.shazhou.workers.dev
# Set auth token
ograph config set token your-auth-token
# Show current configuration
ograph config showCommands
Type Management
# List all types
ograph types
# Define object type
ograph define object Person --label "人员"
# Define relation type
ograph define relation knows --from Person --to Person --inverse known_byObject Operations
# Create new object
ograph new Person
# Get object by OID
ograph get obj_abc123
# Link objects with relation
ograph link obj_abc123 knows obj_def456
# Find neighbors
ograph neighbors obj_abc123 --rel knows --direction out --depth 2Watch Operations
# Watch object for changes
ograph watch obj_abc123
# Unwatch object
ograph unwatch obj_abc123Development
npm run build
npm run testLicense
MIT
