GitHub

Bitex CLI Reference

Complete command-line interface documentation for Bitex.

Synopsis

bitex [flags]

Flags

FlagShortTypeRequiredDescription
--disk-dstringYesPath to disk image or block device
--case-id-cstringYesCase identifier for this analysis
--server-sstringYesRemote server URL for transmission
--token-tstringYesAuthentication token for server
--help-hShow help message
--version-vShow version information

Required Flags

All flags except --version are required. Bitex will exit with an error if any required flag is missing.

Examples

Basic Disk Analysis

bitex --disk /dev/sdb \
  --case-id CASE-2024-001 \
  --server https://forensics.example.com \
  --token my_auth_token

Analyzing a Disk Image File

bitex --disk evidence/disk-image.aff \
  --case-id INVESTIGATION-2024-042 \
  --server https://forensics.example.com \
  --token BearerToken123

Using Short Flags

bitex -d /dev/sda -c CASE-001 -s https://forensics.example.com -t token

Exit Codes

CodeDescription
0Success - analysis completed and transmitted
1General error
2Configuration error (missing required flags)
3Disk access error
4TSK tool execution error
5Server transmission error

Output

Bitex outputs structured logs to stderr in RFC 5424 format:

<PRI>1 2024-01-15T10:30:00Z hostname bitex 1234 - [meta@1 k="v"] Starting disk analysis
<PRI>1 2024-01-15T10:30:01Z hostname bitex 1234 - [meta@1 k="v"] Running mmls
<PRI>1 2024-01-15T10:30:02Z hostname bitex 1234 - [meta@1 k="v"] Found 4 partitions

Verbose Output

For debugging, check the log output. Each TSK command execution is logged with its output size and duration.

Environment Variables

Bitex does not use environment variables for configuration. All settings must be provided via flags.

Authentication

The --token flag value is transmitted as a Bearer token in the Authorization header:

Authorization: Bearer <token>

Network Configuration

HTTPS

Always use HTTPS in production:

--server https://forensics.example.com

HTTP (Development Only)

HTTP is supported for local testing:

--server http://localhost:8080

Version

Display version information:

bitex --version

Output:

Bitex version 1.0.3
Go version: go1.25.0