cdx-cli-0.7.0 is not a library.
cdx-cli
Command-line interface for working with Codex Document Format (.cdx) files.
Installation
Or build from source:
Usage
cdx <command> [options]
Commands:
create Create a new Codex document
validate Validate document structure and hashes
inspect Display document information
status Show comprehensive document status
sign Add a digital signature
verify Verify signatures and integrity
extract Extract content or assets
submit-review Submit document for review (draft -> review)
freeze Freeze document (review -> frozen)
publish Publish document (frozen -> published)
revert Revert document to draft (review -> draft)
fork Fork document to create new version with lineage
prove Generate a Merkle proof for a block
verify-proof Verify a Merkle proof against a document
show-lineage Show document lineage (ancestor chain)
get-metadata Display document metadata
set-metadata Set document metadata fields
pack Pack a directory or JSON into a .cdx archive
diff Compare two Codex documents
show-timestamps Show timestamps in a document
verify-timestamps Verify timestamps in a document
add-timestamp Add a timestamp record to a document
timestamp-acquire Acquire a timestamp from a timestamp authority
encrypt Encrypt a document with password-based encryption
decrypt Decrypt a password-encrypted document
completions Generate shell completions
Create a Document
# Create a simple document
# Create with author and input file
# Create with specific state
Validate a Document
Inspect a Document
# Basic inspection
# Show block details
# Show signature details
# Show provenance chain
Document Status
# Show comprehensive document status
Sign a Document
# Sign with ECDSA (ES256)
# Sign with EdDSA
# Sign to a new file
Verify a Document
# Verify document integrity
# Verify with public key
Extract Content
# Extract content as JSON
# Extract as plain text
# Extract a specific asset
# Extract all assets
State Transitions
# Submit for review (draft -> review)
# Freeze document (review -> frozen)
# Publish document (frozen -> published)
# Revert to draft (review -> draft, only if no signatures)
Forking and Lineage
# Fork a document to create new version
# Show document lineage
Merkle Proofs
# Generate a proof for a specific block
# Generate a proof by block index
# Verify a proof
Metadata Management
# Get document metadata
# Set metadata fields
Timestamps
# Show document timestamps
# Verify timestamps
# Acquire timestamp from TSA
# Add timestamp record manually
Encryption
# Encrypt a document (will prompt for password)
# Encrypt with password
# Decrypt a document
Pack Archives
# Pack from JSON (Pandoc output)
# Pack from directory
Compare Documents
# Diff two documents
Global Options
-v, --verbose Increase output verbosity
-q, --quiet Suppress non-error output
--json Output as JSON (for scripting)
--color <WHEN> Color output [auto, always, never]
Shell Completions
# Bash
# Zsh
# Fish
# PowerShell
JSON Output
All commands support --json flag for machine-readable output:
|
License
MIT OR Apache-2.0