3 homepage: https://github.com/mholt/archiver
5 Arc is a cross-platform, multi-format archive utility.
12 Use the `@beta` tag for pre-releases.
16 > Archiver (`arc`) is a powerful and flexible library meets an elegant CLI in
17 > this generic replacement for several platform-specific or format-specific
20 Much like MacOS Finder and Windows Explorer, the default behavior of `arc` is to
21 create a top-level directory if one does not exist.
26 # arc ls <archive file>
33 # arc unarchive <archive file>
34 arc unarchive example.zip
40 # arc extract <archive file> <archived path> <extracted path>
41 arc extract example.zip example/foo ~/Downloads/foo
44 ### Archive (recursive)
47 # arc archive <archive file> <files or folders ...>
48 arc archive example.zip ./README.md ./bin ./src
51 ### Compress (single file)
54 # arc compress <single file> <format>
55 arc compress ./example.tar xz
58 ### Decompress (single file)
61 # arc decompress <archive file>
62 arc decompress ./example.tar.xz
65 ## Supported extensions
67 These are the support compression formats, archive formats, and tar file and
70 | Compression | Archive | Tar File | Bare Extension |
71 | ----------- | -------- | -------- | -------------- |
73 | xz | .tar.xz | .txz | .xz |
74 | gzip | .tar.gz | .tgz | .gz |
75 | bzip2 | .tar.bz2 | .tbz2 | .bz2 |
76 | brotli | .tar.br | .tbr | .br |
77 | lzma | .tar.lz4 | .tlz4 | .lz4 |
78 | snappy | .tar.sz | .tsz | .lsz |
79 | zstd | .tar.zst | - | .zst |
80 | ZIP | .zip | - | - |
81 | RAR | .rar | - | - |