Command-line interface for JEP: A Judgment Event Protocol.
JEP CLI is a command-line tool for interacting with the JEP protocol. It allows you to:
- Create and manage judgment records
- Delegate authority to other entities
- Terminate responsibility chains
- Verify records and receipts
- Configure API access
npm install -g @jep/cligit clone https://github.com/jep-protocol/cli.git
cd cli
npm install
npm linkhjs config set api-key YOUR_API_KEYIf you're using a self-hosted HJS API instance, you can also set the API URL:
jep config set api-url https://your-jep-instance.comjep judgment create \
--entity user@example.com \
--action approve \
--scope '{"amount": 1000, "currency": "USD"}'jep judgment get jgd_1234567890abcdjep verify jgd_1234567890abcdManage judgment records.
| Command | Description |
|---|---|
create |
Create a new judgment record |
get <id> |
Retrieve a judgment by ID |
list |
List judgment records (with filters) |
export |
Export judgment records |
Options:
--entity, -e- Entity identifier (required for create)--action, -a- Action name (required for create)--scope, -s- JSON scope/context--timestamp, -t- Custom timestamp (ISO 8601)--immutability, -i- Anchor type (ots, none)--format, -f- Output format (json, text)
Manage delegations.
| Command | Description |
|---|---|
create |
Create a new delegation |
get <id> |
Retrieve a delegation by ID |
list |
List delegations |
revoke <id> |
Revoke a delegation |
Manage terminations.
| Command | Description |
|---|---|
create |
Create a termination record |
get <id> |
Retrieve a termination by ID |
list |
List terminations |
Verify records and receipts.
| Command | Description |
|---|---|
<id> |
Verify a record by ID |
receipt <file> |
Verify a receipt file |
Manage CLI configuration.
| Command | Description |
|---|---|
set <key> <value> |
Set a configuration value |
get <key> |
Get a configuration value |
list |
List all configuration |
clear |
Clear configuration |
Configuration is stored in ~/.jep/config.json.
jep judgment create \
--entity loan-officer-123 \
--action approve_loan \
--scope '{"amount": 50000, "risk_score": 0.12, "customer_id": "cust_789"}'# Create a judgment first
JUDGMENT_ID=$(jep judgment create --entity manager@company.com --action "delegate_access" --quiet)
# Delegate to an employee
jep delegation create \
--delegator manager@company.com \
--delegatee employee@company.com \
--judgment-id $JUDGMENT_ID \
--scope '{"permissions": ["read", "write"]}' \
--expiry "2026-12-31T23:59:59Z"# Download receipt
jep judgment get jgd_1234567890abcd --format receipt > record.ots
# Verify offline
jep verify receipt record.otsThe CLI can be configured via:
- Command-line arguments (highest priority)
- Environment variables
- Config file (
~/.jep/config.json)
| Variable | Description |
|---|---|
JEP_API_URL |
API endpoint (default: https://api.jep.sh) |
JEP_API_KEY |
API key for authentication |
JEP_OUTPUT |
Default output format (json, text) |
{
"apiUrl": "https://api.jep.sh",
"apiKey": "your-api-key-here",
"output": "text",
"defaults": {
"immutability": "none"
}
}git clone https://github.com/jep-protocol/cli.git
cd cli
npm installnpm testnpm run buildPlease see our Contributing Guide and Code of Conduct.
MIT © HJS Ltd.
© 2026 HJS Foundation Ltd.
This document is licensed under the MIT License.