3 homepage: https://github.com/mholt/archiver
5 Arc is a cross-platform, multi-format archive utility.
8 To update or switch versions, run `webi arc@stable` (or `@v3.5`, `@beta`, etc).
12 > Archiver (`arc`) is a powerful and flexible library meets an elegant CLI in
13 > this generic replacement for several platform-specific or format-specific
16 Much like MacOS Finder and Windows Explorer, the default behavior of `arc` is to
17 create a top-level directory if one does not exist.
22 # arc ls <archive file>
29 # arc unarchive <archive file>
30 arc unarchive example.zip
36 # arc extract <archive file> <archived path> <extracted path>
37 arc extract example.zip example/foo ~/Downloads/foo
40 ### Archive (recursive)
43 # arc archive <archive file> <files or folders ...>
44 arc archive example.zip ./README.md ./bin ./src
47 ### Compress (single file)
50 # arc compress <single file> <format>
51 arc compress ./example.tar xz
54 ### Decompress (single file)
57 # arc decompress <archive file>
58 arc decompress ./example.tar.xz
61 ## Supported extensions
63 These are the support compression formats, archive formats, and tar file and
66 | Compression | Archive | Tar File | Bare Extension |
67 | ----------- | -------- | -------- | -------------- |
69 | xz | .tar.xz | .txz | .xz |
70 | gzip | .tar.gz | .tgz | .gz |
71 | bzip2 | .tar.bz2 | .tbz2 | .bz2 |
72 | brotli | .tar.br | .tbr | .br |
73 | lzma | .tar.lz4 | .tlz4 | .lz4 |
74 | snappy | .tar.sz | .tsz | .lsz |
75 | zstd | .tar.zst | - | .zst |
76 | ZIP | .zip | - | - |
77 | RAR | .rar | - | - |