docs.rs failed to build fortress-cli-1.0.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Fortress CLI
🛡️ Fortress CLI - Command-line interface for Fortress secure database system. Enterprise-grade encryption and key management from your terminal.
Installation
Install from Crates.io (Recommended)
Install from Source
# Clone repository
# Install CLI
NPM Package (Node.js bindings)
# Install globally
# Or locally
Quick Start
Initialize Fortress
# Initialize Fortress configuration
# Start the Fortress server
# Create an encryption key
# Encrypt data
|
# Decrypt data
Database Operations
# Create a database
# List databases
# Insert data
# Query data
# Create index
Key Management
# Generate a new key
# List all keys
# Get key details
# Rotate a key
# Delete a key
Commands
Server Management
# Start server
# Start with custom configuration
# Stop server
# Restart server
# Check server status
# View server logs
Database Operations
# Create database
# List databases
# Delete database
# Insert data
# Query data
# Update data
# Delete data
# Create index
# List indexes
# Drop index
Key Management
# Generate key
# List keys
# Get key info
# Rotate key
# Delete key
# Export key
# Import key
Encryption Operations
# Encrypt data
# Decrypt data
# Encrypt file
# Decrypt file
Configuration
# Show current configuration
# Set configuration value
# Get configuration value
# Reset configuration
# Create configuration file
Cluster Management
# Initialize cluster
# Join cluster
# Leave cluster
# List cluster nodes
# Show cluster status
Configuration
Configuration File
The Fortress CLI uses a TOML configuration file located at:
- Linux/macOS:
~/.config/fortress/config.toml - Windows:
%APPDATA%\fortress\config.toml
Example Configuration
[]
= "0.0.0.0"
= 8080
= 4
[]
= "aegis256"
= true
= "24h"
[]
= "aegis256"
= 32
= true
[]
= "memory"
= "/var/lib/fortress"
[]
= "info"
= "json"
= "/var/log/fortress/fortress.log"
[]
= true
= true
= 1048576 # 1MB
[]
= false
= "node-1"
= []
Environment Variables
# Server configuration
# Database configuration
# Storage configuration
# Logging configuration
Supported Algorithms
| Algorithm | CLI Name | Security Level | Performance |
|---|---|---|---|
| AEGIS-256 | aegis256 |
Very High | Fastest |
| ChaCha20-Poly1305 | chacha20-poly1305 |
High | Very Fast |
| AES-256-GCM | aes256-gcm |
High | Fast |
| XChaCha20-Poly1305 | xchacha20-poly1305 |
High | Fast |
Output Formats
Key Formats
# Base64 (default)
# Hex
# Binary
Data Formats
# JSON (default)
# Table
# CSV
# Pretty-printed JSON
Examples
Basic Workflow
# 1. Initialize Fortress
# 2. Start server
# 3. Create database
# 4. Generate key
# 5. Insert encrypted data
# 6. Query data
Batch Operations
# Insert multiple records
|
# Bulk encrypt files
for; do
done
# Bulk decrypt files
for; do
done
Script Integration
#!/bin/bash
# backup.sh - Fortress backup script
BACKUP_DIR="/backups/fortress"
DATE=
# Create backup directory
# Export all databases
for; do
done
# Export all keys
Advanced Usage
Custom Profiles
# Development profile
# Production profile
# High-security profile
Plugin Management
# List available plugins
# Install plugin
# Enable plugin
# Disable plugin
# Uninstall plugin
Performance Monitoring
# Show performance metrics
# Show real-time metrics
# Export metrics
Troubleshooting
Common Issues
Server won't start
# Check configuration
# Check logs
# Check port availability
|
Key not found
# List available keys
# Check key details
Connection refused
# Check server status
# Check firewall settings
Debug Mode
# Enable debug logging
# Run with verbose output
# Enable trace logging
Completion
Shell Completion
# Generate completion script
# Reload shell
Installation
# Bash
# Zsh
# Fish
License
This project is licensed under the Fortress Sustainable Use License 1.0 - see the LICENSE file for details.
Support
- Documentation: https://github.com/Genius740Code/Fortress/blob/main/docs
- Issues: https://github.com/Genius740Code/Fortress/issues
- Discussions: https://github.com/Genius740Code/Fortress/discussions
- Email: team@fortressdb.io
Fortress CLI - Security at your fingertips. 🛡️