oxiarc-cli-0.2.6 is not a library.
oxiarc-cli
Command-line interface for OxiArc - The Oxidized Archiver.
Version: 0.2.6 (2026-03-18)
Overview
A Pure Rust CLI tool for working with archive files. Supports listing, extracting, and inspecting ZIP, GZIP, TAR, LZH, Brotli, and Snappy archives. Includes dry-run mode for previewing operations without writing files.
Installation
# Build from source
# Install globally
# Or run directly
Shell Completions
oxiarc provides shell completion scripts for bash, zsh, fish, and PowerShell.
Installing Completions
Bash:
# Generate completion script
# Install (choose one location):
# or
# Or add to your .bashrc:
Zsh:
# Generate completion script
# Install to a directory in your $fpath
# For example, if /usr/local/share/zsh/site-functions is in your fpath:
# or for user-only installation:
Fish:
# Generate completion script
# Install
PowerShell:
# Generate completion script
oxiarc completion powershell > _oxiarc.ps1
# Add to your PowerShell profile
# Find your profile location with: $PROFILE
# Then add this line to your profile:
# . /path/to/_oxiarc.ps1
Commands
list (l)
List contents of an archive:
# Simple listing
# Verbose with sizes and compression ratios
Output (verbose):
Archive: archive.zip (ZIP)
Size Compressed Ratio Method Name
------------------------------------------------------------
1234 567 54.1% Deflate readme.txt
5678 1234 78.3% Deflate src/main.rs
0 0 - Stored d images/
------------------------------------------------------------
6912 1801 73.9% 2 files
extract (x)
Extract files from an archive:
# Extract all to current directory
# Extract to specific directory
# Dry-run mode (preview without writing)
# Extract specific files (future)
info (i)
Show detailed information about an archive:
Output:
Archive Information
===================
File: archive.zip
Format: ZIP
Size: 12345 bytes
MIME type: application/zip
Contents:
Files: 5
Directories: 2
Total size: 45678 bytes
Compressed size: 12000 bytes
Compression ratio: 73.7%
detect
Detect the format of a file:
Output:
File: unknown_file.bin
Format: GZIP
Extension: .gz
MIME type: application/gzip
Magic bytes: [1F, 8B, 08, 00, ...]
Type: Compression (single file)
Format Support
| Format | list | extract | create |
|---|---|---|---|
| ZIP | Yes | Yes | No |
| GZIP | Yes | Yes | No |
| TAR | Yes | No | No |
| LZH | Yes | No | No |
| Brotli | Yes | Yes | No |
| Snappy | Yes | Yes | No |
Examples
# List a ZIP archive
# Extract GZIP file
# Show info about LZH archive
# Detect format
# Verbose listing of TAR
Exit Codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Error (invalid archive, I/O error, etc.) |
Error Messages
Error: Invalid magic number: expected [50, 4B], found [00, 00]
Error: Unsupported compression method: LZMA
Error: CRC mismatch: expected 0xABCD1234, computed 0x12345678
Error: Corrupted data at offset 1234
Usage with Pipes
# Extract GZIP to stdout (future)
|
# List contents from stdin (future)
|
Build Options
# Release build with optimizations
# Debug build
# With all features
Dependencies
clap- Command-line argument parsingoxiarc-archive- Archive format handlingoxiarc-core- Core types and traits
License
Apache-2.0