Skip to main content

QuantumLockβ„’ CLI Reference

Command Line Interface Tool​

The QuantumLockβ„’ CLI is a powerful tool for administrators to manage quantum licenses via terminal.

Version 2.1.3

Current version with full license lifecycle management: generate, list, show, validate, revoke.


πŸ“¦ Installation​

pip install quantumlock-cli

Via Portal Download​

  1. Go to portal.softquantus.com
  2. Navigate to Downloads β†’ CLI
  3. Download the binary for your platform

Available Platforms​

PlatformFile
Linux ARM64quantumlock-linux-arm64
Linux x86_64quantumlock-linux-x86_64
macOS ARM64quantumlock-darwin-arm64
Windows x64quantumlock-windows-x64.exe

Verify Installation​

quantumlock --version
# QuantumLock CLI 2.1.3

πŸ”§ Configuration​

Command: configure​

Configures the CLI with your API credentials.

quantumlock configure

Interactive Flow:

QuantumLockβ„’ CLI Configuration

Current API URL: https://api.quantumlock.softquantus.com
API URL [https://api.quantumlock.softquantus.com]:
No API key configured
API Key: ********

βœ“ Configuration saved!
Config file: /home/user/.quantumlock/config.json

Testing connection...
βœ“ Connected as: admin@acme.com
Plan: BUSINESS
Monthly limit: 100000

Environment Variables​

export QUANTUMLOCK_API_KEY="your_api_key"
export QUANTUMLOCK_API_URL="https://api.quantumlock.softquantus.com"

Configuration File​

Location: ~/.quantumlock/config.json

{
"api_url": "https://api.quantumlock.softquantus.com",
"api_key": "qlk_abc123..."
}

πŸ“‹ Commands Overview​

quantumlock --help
Usage: quantumlock [OPTIONS] COMMAND [ARGS]...

QuantumLockβ„’ CLI - Quantum-enhanced license management

Options:
--version Show version and exit
--help Show this message and exit

Commands:
configure Configure API credentials
generate Generate a new license
validate Validate a license key
list List all licenses
show Show license details
revoke Revoke a license
stats Show usage statistics
info Show account information
version Show version information

πŸ”‘ Generate License​

Command: generate​

Generates a new quantum license.

quantumlock generate [OPTIONS]

Options:

OptionShortRequiredDescription
--customer-cβœ“End-customer ID (email or unique ID)
--features-fβœ“Comma-separated features
--days-dValidity in days (default: 365)
--metadata-mMetadata key=value (repeatable)
--output-oSave to JSON file

Examples:

# Basic license
quantumlock generate \
--customer "customer@company.com" \
--features "basic"

# License with multiple features
quantumlock generate \
--customer "enterprise@acme.com" \
--features "premium,api_access,analytics" \
--days 365

# License with metadata
quantumlock generate \
--customer "user@startup.io" \
--features "enterprise,unlimited" \
--days 730 \
--metadata "company=StartupIO" \
--metadata "department=Engineering" \
--output license.json

Output:

Generating license...
Customer: customer@company.com
Features: premium, api_access
Expires in: 365 days

βœ“ License generated successfully!

┏━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Field ┃ Value ┃
┑━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
β”‚ License Key β”‚ QCOS-7A3F-9B2C-4E1D-8F5A-2B1C β”‚
β”‚ Customer ID β”‚ customer@company.com β”‚
β”‚ Features β”‚ premium, api_access β”‚
β”‚ Issued At β”‚ 2026-01-03T20:15:00Z β”‚
β”‚ Expires At β”‚ 2027-01-03T20:15:00Z β”‚
β”‚ Quantum Fidelity β”‚ 0.9987 β”‚
β”‚ Generation Time β”‚ 45ms β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

βœ“ Saved to: license.json

βœ… Validate License​

Command: validate​

Validates a license key.

quantumlock validate LICENSE_KEY

Examples:

# Validate license key
quantumlock validate "QCOS-7A3F-9B2C-4E1D-8F5A-2B1C"

Output (Valid):

Validating license...
License: QCOS-7A3F-9B2C-4E1D-8F5A-2B1C

βœ“ License is VALID

┏━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Field ┃ Value ┃
┑━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
β”‚ Customer ID β”‚ acme_corp β”‚
β”‚ End Customer β”‚ customer@company.com β”‚
β”‚ Features β”‚ premium, api_access β”‚
β”‚ Issued At β”‚ 2026-01-03T20:15:00Z β”‚
β”‚ Expires At β”‚ 2027-01-03T20:15:00Z β”‚
β”‚ Days Remaining β”‚ 365 β”‚
β”‚ Quantum Verified β”‚ βœ“ Yes β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Output (Invalid):

Validating license...
License: QCOS-XXXX-XXXX-XXXX

βœ— License is INVALID
The license may be expired, revoked, or forged.

πŸ“‹ List Licenses​

Command: list​

Lists all generated licenses with pagination and filters.

quantumlock list [OPTIONS]

Options:

OptionShortDefaultDescription
--page-p1Page number
--limit-l20Items per page
--status-sFilter: active, expired, revoked
--customer-cFilter by customer ID

Examples:

# List all licenses
quantumlock list

# List only active licenses
quantumlock list --status active

# List with pagination
quantumlock list --page 2 --limit 50

# Filter by customer
quantumlock list --customer "user@company.com"

Output:

Fetching licenses...

Licenses (Page 1/5)
┏━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━┓
┃ License Key ┃ Customer ┃ Features ┃ Status ┃ Expires ┃
┑━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━━┩
β”‚ QCOS-7A3F-9B2C-4E1D... β”‚ customer@acme... β”‚ premium... β”‚ ACTIVE β”‚ 2027-01-03 β”‚
β”‚ QCOS-8B4G-0C3D-5F2E... β”‚ user@startup.io β”‚ basic β”‚ ACTIVE β”‚ 2026-06-15 β”‚
β”‚ QCOS-9C5H-1D4E-6G3F... β”‚ dev@company.com β”‚ enterprise β”‚ EXPIRED β”‚ 2025-12-01 β”‚
β”‚ QCOS-1A2B-3C4D-5E6F... β”‚ test@demo.com β”‚ trial β”‚ REVOKED β”‚ 2026-03-15 β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Showing 20 of 95 licenses
Use --page 2 to see more

πŸ” Show License Details​

Command: show​

Shows detailed information about a specific license.

quantumlock show LICENSE_KEY [OPTIONS]

Options:

OptionShortDescription
--output-oSave details to JSON file

Examples:

# Show license details
quantumlock show "QCOS-7A3F-9B2C-4E1D-8F5A-2B1C"

# Save to file
quantumlock show "QCOS-7A3F-9B2C-4E1D-8F5A-2B1C" --output license_details.json

Output:

Fetching license details...

License Details
┏━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Field ┃ Value ┃
┑━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
β”‚ License Key β”‚ QCOS-7A3F-9B2C-4E1D-8F5A-2B1C β”‚
β”‚ Status β”‚ ACTIVE β”‚
β”‚ End Customer β”‚ customer@company.com β”‚
β”‚ Features β”‚ premium, api_access, analytics β”‚
β”‚ Issued At β”‚ 2026-01-03T20:15:00Z β”‚
β”‚ Expires At β”‚ 2027-01-03T20:15:00Z β”‚
β”‚ Quantum Fidelity β”‚ 0.9987 β”‚
β”‚ Generation Time β”‚ 45ms β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Output (Revoked License):

                    License Details
┏━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Field ┃ Value ┃
┑━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
β”‚ License Key β”‚ QCOS-1A2B-3C4D-5E6F-7G8H-9I0J β”‚
β”‚ Status β”‚ REVOKED β”‚
β”‚ End Customer β”‚ former@customer.com β”‚
β”‚ Features β”‚ premium β”‚
β”‚ Issued At β”‚ 2025-06-01T10:00:00Z β”‚
β”‚ Expires At β”‚ 2026-06-01T10:00:00Z β”‚
β”‚ β”‚ β”‚
β”‚ Revoked At β”‚ 2026-01-02T14:30:00Z β”‚
β”‚ Revoke Reason β”‚ Customer cancelled subscription β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

❌ Revoke License​

Command: revoke​

Revokes an existing license. This action cannot be undone.

quantumlock revoke LICENSE_KEY [OPTIONS]

Options:

OptionShortDescription
--reason-rReason for revocation
--force-fSkip confirmation prompt

Examples:

# Revoke with confirmation
quantumlock revoke "QCOS-7A3F-9B2C-4E1D-8F5A-2B1C"

# Revoke with reason
quantumlock revoke "QCOS-7A3F-9B2C-4E1D-8F5A-2B1C" \
--reason "Customer cancelled subscription"

# Force revoke (no confirmation)
quantumlock revoke "QCOS-7A3F-9B2C-4E1D-8F5A-2B1C" \
--reason "Fraudulent activity" \
--force

Output:

Revoking license...
License: QCOS-7A3F-9B2C-4E1D-8F5A-2B1C

Warning: This action cannot be undone!
Are you sure you want to revoke this license? (y/N): y

βœ“ License revoked successfully!

License Key: QCOS-7A3F-9B2C-4E1D-8F5A-2B1C
Revoked At: 2026-01-03T20:30:00Z
Reason: Customer cancelled subscription

πŸ“Š Statistics​

Command: stats​

Shows account usage statistics.

quantumlock stats

Output:

Fetching statistics...

Account: admin@acme.com
Plan: BUSINESS

License Statistics
┏━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━┓
┃ Metric ┃ Value ┃
┑━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━┩
β”‚ Total Licenses β”‚ 4,523 β”‚
β”‚ Active Licenses β”‚ 4,100 β”‚
β”‚ Expired Licenses β”‚ 400 β”‚
β”‚ This Month β”‚ 4,523/100,000 β”‚
β”‚ Usage β”‚ 4.5% β”‚
β”‚ β”‚ β”‚
β”‚ Avg Quantum Fidelity β”‚ 0.9987 β”‚
β”‚ Avg Generation Time β”‚ 45ms β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

ℹ️ Account Info​

Command: info​

Shows your account information.

quantumlock info

Output:

Fetching account info...

Account Information
┏━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Field ┃ Value ┃
┑━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
β”‚ Customer ID β”‚ cust_abc123 β”‚
β”‚ Email β”‚ admin@acme.com β”‚
β”‚ Company β”‚ ACME Corporation β”‚
β”‚ Plan β”‚ BUSINESS β”‚
β”‚ Monthly Limit β”‚ 100,000 β”‚
β”‚ Used This Month β”‚ 4,523 β”‚
β”‚ Created At β”‚ 2025-01-15T10:00:00Z β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ”„ Exit Codes​

CodeMeaning
0Success
1General error
2Invalid license
3API Key not configured
4Connection error

πŸ’‘ Usage Examples​

Automation Script​

#!/bin/bash
# Batch license generation

CUSTOMERS=(
"customer1@company.com"
"customer2@company.com"
"customer3@company.com"
)

mkdir -p licenses

for customer in "${CUSTOMERS[@]}"; do
echo "Generating license for: $customer"
quantumlock generate \
--customer "$customer" \
--features "premium,api_access" \
--days 365 \
--output "licenses/${customer}.json"
done

echo "Done! Licenses saved in ./licenses/"

CI/CD Integration​

# .github/workflows/deploy.yml
name: Deploy with License

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Install QuantumLock CLI
run: pip install quantumlock-cli

- name: Generate deployment license
env:
QUANTUMLOCK_API_KEY: ${{ secrets.QUANTUMLOCK_API_KEY }}
run: |
quantumlock generate \
--customer "deploy-${{ github.sha }}" \
--features "ci_cd,deploy" \
--days 1 \
--output deployment_license.json

- name: Deploy application
run: |
cp deployment_license.json /app/license.json
# ... rest of deployment

License Cleanup Script​

#!/bin/bash
# Revoke expired trial licenses

# Get all revoked licenses
quantumlock list --status expired --limit 100 | while read line; do
license_key=$(echo "$line" | awk '{print $1}')
if [[ $license_key == QCOS-* ]]; then
echo "Revoking: $license_key"
quantumlock revoke "$license_key" \
--reason "Trial expired - automatic cleanup" \
--force
fi
done

Health Check Script​

#!/bin/bash
# check_license.sh - Pre-startup license validation

LICENSE_KEY="$1"

if [ -z "$LICENSE_KEY" ]; then
echo "❌ Usage: $0 <license_key>"
exit 1
fi

if quantumlock validate "$LICENSE_KEY" > /dev/null 2>&1; then
echo "βœ“ License valid, starting application..."
exec /app/myapp
else
echo "❌ License invalid or expired!"
quantumlock show "$LICENSE_KEY" 2>/dev/null
exit 2
fi

πŸ”§ Troubleshooting​

Error: "No API key configured"​

# Solution 1: Configure via CLI
quantumlock configure

# Solution 2: Via environment variable
export QUANTUMLOCK_API_KEY="your_api_key"

Error: "Connection refused"​

# Check API URL
cat ~/.quantumlock/config.json

# Test connection
curl -I https://api.quantumlock.softquantus.com/health

Error: "License not found"​

The license key doesn't exist or belongs to another customer. Verify:

  • The license key is correct
  • You're using the right API key

Error: "License is already revoked"​

The license has already been revoked. Use quantumlock show to see details.

Error: "Rate limit exceeded"​

You've reached your plan's monthly limit. Options:

  1. Wait for next month
  2. Upgrade your plan at portal.softquantus.com
  3. Contact support

πŸ“ž Support​


© 2026 SoftQuantus innovative OÜ. All rights reserved.