Fabric-X CLI Reference¶
The Fabric-X Command-Line Interface (CLI) provides tools for managing, deploying, and operating Fabric-X networks.
Overview¶
Fabric-X includes the following CLI tools:
| Tool | Purpose | Primary Users |
|---|---|---|
| fxconfig | Namespace management and transaction submission | Network operators, application developers |
| arma | Launch Arma ordering service nodes | Network operators, ordering service admins |
| armageddon | Configuration generation and testing for Arma | Network operators, testers |
| committer | Launch committer pipeline services | Peer operators, network admins |
| configtxgen | Generate configuration transactions | Network architects, deployment engineers |
| configtxlator | Convert between config formats | Network administrators |
| cryptogen | Generate cryptographic material | Security teams, PKI administrators |
Go Version Requirements¶
| Component | Go Version |
|---|---|
| fabric-x | 1.26+ |
| fabric-x-committer | 1.26+ |
| fabric-x-orderer | 1.25.5+ |
| fabric-x-common | 1.25.5+ |
Command Structure¶
Simple Execution Commands¶
Tools like arma and committer launch services directly:
# Arma - launch ordering service nodes
arma router --config router.yaml
arma batcher --config batcher.yaml
# Committer - launch pipeline services
committer start sidecar --config sidecar.yaml
committer start coordinator --config coordinator.yaml
Hierarchical Commands¶
Tools like fxconfig use subcommand structure:
Example:
Tool Reference¶
fxconfig¶
Namespace and transaction management tool.
Commands:
namespace create- Create new namespacenamespace list- List installed namespacesnamespace update- Update namespacetx endorse- Endorse transactiontx merge- Merge endorsed transactionstx submit- Submit transaction to ordererversion- Show version
Example:
# Create namespace
fxconfig namespace create myns --channel mychannel --mspConfigPath ./msp
# Endorse and submit transaction
fxconfig namespace create myns --channel mychannel --output tx.json
fxconfig tx endorse tx.json --output endorsed.json
fxconfig tx submit endorsed.json --wait
See fxconfig for detailed reference.
arma¶
Launch Arma ordering service nodes. Each command starts a specific node type.
Commands:
router- Launch Router nodebatcher- Launch Batcher nodeconsensus- Launch Consensus nodeassembler- Launch Assembler node
Common Flags:
| Flag | Description | Required |
|---|---|---|
--config |
Path to configuration file | Yes |
Example:
# Terminal 1: Start Router
arma router --config router.yaml
# Terminal 2: Start Batcher
arma batcher --config batcher.yaml
# Terminal 3: Start Consensus
arma consensus --config consensus.yaml
# Terminal 4: Start Assembler
arma assembler --config assembler.yaml
See arma for detailed reference.
armageddon¶
Configuration generation and testing utility for Arma.
Commands:
generate- Generate crypto and config materialshowtemplate- Display default configuration templatesubmit- Submit transactions and verifyload- Load test transactionsreceive- Pull blocks and collect statisticscreateSharedConfigProto- Create shared config binarycreateBlock- Create genesis blockversion- Show version
Example:
# Generate configuration
armageddon generate --output ./my-network
# Submit test transactions
armageddon submit --config user_config.yaml --transactions 10000 --rate 1000
# Show default template
armageddon showtemplate > network-template.yaml
See armageddon for detailed reference.
committer¶
Launch committer pipeline services.
Commands:
start <service>- Start a servicehealthcheck <service>- Check service healthversion- Show version
Services:
sidecar- Transaction ingress and ledger commitcoordinator- Pipeline orchestrationvc- Validator-Committer (VSCC execution)verifier- Signature and syntax validationquery- State database queries
Common Flags:
| Flag | Description | Default |
|---|---|---|
-c, --config |
Config file path | config.yaml |
-p, --pprof-address |
pprof server address | "" (disabled) |
Example:
# Start coordinator first
committer start coordinator -c coordinator.yaml
# Start other services
committer start vc -c vc.yaml
committer start verifier -c verifier.yaml
committer start query -c query.yaml
committer start sidecar -c sidecar.yaml
# Check health
committer healthcheck coordinator
See committer for detailed reference.
configtxgen¶
Generate channel configuration transactions and genesis blocks.
Key Flags:
| Flag | Description |
|---|---|
-profile |
Profile from configtx.yaml |
-channelID |
Channel identifier |
-outputBlock |
Output path for genesis block |
-outputCreateChannelTx |
Output path for channel tx |
-configPath |
Path to configtx.yaml directory |
Example:
export FABRIC_CFG_PATH=$PWD
# Generate genesis block
configtxgen -profile GenesisProfile -channelID system-channel -outputBlock genesis.block
# Generate channel creation tx
configtxgen -profile ChannelProfile -channelID mychannel -outputCreateChannelTx channel.tx
See configtxgen for detailed reference.
configtxlator¶
Convert between configuration protobuf and JSON/YAML formats.
Note: Documentation coming soon. For now, run configtxlator --help for available commands.
cryptogen¶
Generate cryptographic material for Fabric-X networks.
Commands:
generate- Generate crypto materialextend- Extend existing crypto materialshowtemplate- Display default templateverify- Verify generated material
Example:
# Generate from template
cryptogen generate --config crypto-config.yaml --output crypto-config
# Show template
cryptogen showtemplate
# Extend with new organization
cryptogen extend --input crypto-config --config new-org.yaml
See cryptogen for detailed reference.
Getting Help¶
Each tool supports --help flag:
fxconfig --help
fxconfig namespace create --help
arma --help
committer --help
armageddon --help
configtxgen --help
cryptogen --help
Environment Variables¶
| Variable | Tool | Description |
|---|---|---|
FABRIC_CFG_PATH |
configtxgen, cryptogen | Path to configuration directory |
FABRIC_LOGGING_SPEC |
All | Logging level specification |
Next Steps¶
- fxconfig - Namespace and transaction management
- arma - Arma ordering service launcher
- armageddon - Configuration generation and testing
- committer - Committer pipeline launcher
- configtxgen - Configuration transaction generation
- cryptogen - Cryptographic material generation
Version: 1.0
Last Updated: 2026-04-22