apisign-io
v0.1.1
Published
CLI tool for managing APISign templates and contracts
Maintainers
Readme
APISign CLI
A command-line interface for managing APISign contracts and templates.
Installation
npm install -g apisign-ioOr using Bun:
bun add -g apisign-ioQuick Start
- Initialize and authenticate:
apisign init
apisign auth login- List your templates:
apisign template list- Create a contract from a template:
apisign contract create -t TEMPLATE_ID -n "My Contract"- Send contract for signing:
apisign contract send CONTRACT_ID -e [email protected]Authentication
The CLI supports two authentication methods:
API Key Authentication
apisign auth login --api-key YOUR_API_KEYCreate a key in the dashboard under Account > API Keys.
Browser Authentication
Not available yet. apisign auth login without --api-key calls an endpoint
(/auth/cli) that the API does not implement, and will fail.
Check Authentication Status
apisign auth statusLogout
apisign auth logoutTemplate Management
List Templates
apisign template list
apisign template ls # alias
apisign template list --json # JSON outputGet Template Details
apisign template get TEMPLATE_ID
apisign template get TEMPLATE_ID --json
apisign template get TEMPLATE_ID -o template.htmlCreate Template
# Interactive mode
apisign template create -i
# From file
apisign template create -f template.html -n "My Template"
# Upload file
apisign template upload document.pdf -n "PDF Template"Update Template
apisign template update TEMPLATE_ID -n "New Name"
apisign template update TEMPLATE_ID -f updated.htmlDelete Template
apisign template delete TEMPLATE_ID
apisign template delete TEMPLATE_ID -y # Skip confirmationContract Management
List Contracts
apisign contract list
apisign contract ls # alias
apisign contract list --status sent # Filter by status
apisign contract list --json # JSON outputStatus options: draft, sent, signed, cancelled
Get Contract Details
apisign contract get CONTRACT_ID
apisign contract get CONTRACT_ID --json
apisign contract get CONTRACT_ID -o contract.pdfCreate Contract
# Interactive mode
apisign contract create -i
# From template
apisign contract create -t TEMPLATE_ID -n "Contract Name"Send Contract for Signing
# Single signer
apisign contract send CONTRACT_ID -e [email protected]
# Multiple signers
apisign contract send CONTRACT_ID -e [email protected] [email protected]
# With custom message
apisign contract send CONTRACT_ID -e [email protected] -m "Please sign by Friday"Cancel Contract
apisign contract cancel CONTRACT_ID
apisign contract cancel CONTRACT_ID -r "Changed requirements"Delete Contract
apisign contract delete CONTRACT_ID
apisign contract delete CONTRACT_ID -y # Skip confirmationView Audit Logs
apisign contract logs CONTRACT_ID
apisign contract logs CONTRACT_ID --jsonConfiguration
View Configuration
apisign config
apisign config --jsonConfiguration File Location
The CLI stores configuration in ~/.apisign/config.json
Environment Variables
APISIGN_API_URL- Override the API URL (default: https://apisign.io)
Development
Install Dependencies
bun installRun in Development
bun run devBuild
bun run build # Build for Node.js
bun run build:standalone # Build standalone executableLink for Local Testing
bun run link:localPublishing
The package is configured for public npm publishing:
npm publishLicense
MIT
