@enscribe/enscribe-cli
v0.2.0
Published
Standalone TypeScript CLI for Enscribe subname operations
Readme
@enscribe/enscribe-cli
Standalone TypeScript CLI for Enscribe subname operations. The installed command-line name is enscribe-cli.
Installation
After publishing this package to npm, install it globally with:
npm install -g @enscribe/enscribe-cliThen verify the CLI is available:
enscribe-cli --helpLocal Development
npm install
npm run build
node dist/cli.js --helpYou can also run the TypeScript entrypoint directly during development:
npx tsx src/cli.ts --helpPublishing To npm
Before publishing:
- Confirm you can publish to the
@enscribescope on npm. - Remove
"private": truefrompackage.jsonif present. - Bump the version in
package.json. - Build and verify the package contents locally.
- Log in with
npm login. - Publish with
npm publish(scoped packages often usenpm publish --access publicon first publish).
Configuration
Environment variables:
ENSCRIBE_API_BASE_URLENSCRIBE_API_KEYENSCRIBE_ORG_ID
Commands
enscribe-cli --help
enscribe-cli list --help
enscribe-cli create --help
enscribe-cli metadata --helpExamples
enscribe-cli list --org-id org_123 --chain-id 8453
enscribe-cli create --org-id org_123 --parent myorg.eth --label app --chain-id 8453
enscribe-cli metadata list --org-id org_123 --name app.myorg.eth --chain-id 8453
enscribe-cli metadata add --org-id org_123 --name app.myorg.eth --chain-id 8453 --text url=https://app.example.com
enscribe-cli metadata add --org-id org_123 --name app.myorg.eth --chain-id 8453 --addr 60=0x1234567890abcdef1234567890abcdef12345678
enscribe-cli metadata rm --org-id org_123 --name app.myorg.eth --chain-id 8453 --text url
enscribe-cli metadata del --org-id org_123 --name app.myorg.eth --chain-id 8453 --addr 60AI Agent Integration
Use your agent's skill installation steps to add the enscribe-cli skill to it. Here's how to install & use this skill for the Cursor IDE:
Install The Skill In Cursor
- Install the published CLI so Cursor agents can invoke
enscribe-cli:
npm install -g @enscribe/enscribe-cli- Create a project-local Cursor skills directory:
mkdir -p .cursor/skills/enscribe-cli- Copy this repository's skill definition into Cursor's expected location:
cp SKILL.md .cursor/skills/enscribe-cli/SKILL.md- Make sure the required environment variables are created in an .env file:
export ENSCRIBE_API_BASE_URL=...
export ENSCRIBE_API_KEY=...
export ENSCRIBE_ORG_ID=...- Open Cursor IDE in this workspace and ask the agent to use the
@enscribe/enscribe-cliskill for Enscribe subname tasks.
Example Prompts
Use the @enscribe/enscribe-cli skill to list all subnames for my org on Sepolia (chain ID 11155111).Use the @enscribe/enscribe-cli skill to create a subname xyz under my org on Sepolia (chain ID 11155111).
