Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Particles CLI

Particle commands inspect, verify, pack, unpack, and round-trip particles.xr data.

Commands

CommandPurposeWrites files
info-particlesPrint version, effect count, and group count.No
unpack-particlesExport a packed particles.xr into a folder.Yes
pack-particlesBuild a packed particles.xr from an unpacked folder.Yes
repack-particlesRead a packed file and write it to another packed file.Yes
re-unpack-particlesRead an unpacked folder and export it to another unpacked folder.Yes
verify-particlesCheck whether packed or unpacked particle data can be parsed.No

Examples

xrf-cli info-particles --path ./particles.xr
xrf-cli unpack-particles --path ./particles.xr --dest ./particles_unpacked --force
xrf-cli pack-particles --path ./particles_unpacked --dest ./particles.xr --force
xrf-cli repack-particles --path ./particles.xr --dest ./particles.repacked.xr
xrf-cli re-unpack-particles --path ./particles_unpacked --dest ./particles_unpacked_roundtrip
xrf-cli verify-particles --path ./particles.xr
xrf-cli verify-particles --path ./particles_unpacked --unpacked

Shared options

Read commands require -p, --path <path>. Write commands that create output also use -d, --dest <dest>. unpack-particles and pack-particles support -f, --force to remove an existing destination before writing.

Failure notes

Packing fails if the output file already exists and --force is not supplied. Unpacking fails if the destination folder already exists and --force is not supplied.