Interactive CLI to test the matrix-client-api.
cd playground
cp .env.example .env
# Edit .env with your Matrix credentialsnode cli.mjsType help in the CLI for a full command list. Quick start:
login # Connect and authenticate
projects # List your projects
open <odin-id> # Open a specific project
layers # See layers in the project
layer-content <layer-id> # Fetch layer operations
listen # Stream live changes
stop # Stop streaming
loglevel 3 # Enable DEBUG logging
Set MATRIX_ENCRYPTION=true in .env to enable End-to-End Encryption.
Use crypto-status to check the OlmMachine state after login.
After login, credentials are saved to .state.json so you don't need to re-authenticate every time. Delete this file to force a fresh login.
- This playground uses the library directly via relative import (
../index.mjs) - No
npm installneeded in the playground dir (dependencies come from the parent) - The
.envand.state.jsonfiles are gitignored