Skip to content

Tools CLI

Enebe edited this page Dec 4, 2017 · 2 revisions

Shady Cli is a command-line tool to manipulate package/resource files.

Using

This tool is divided in commands with the following syntax:

shady-cli <command> [<command-agument>...]

Help

shady-cli help [<command-name>]

Shows help for a specific command, use without any argument to show the list of commands.

Pack

shady-cli pack [<options>...] <package-path> [<package-path>...]

The allowed options are:

  • --mode data|zip|dir: compression mode to be used, default is dir.
  • --output <output-path>: target output, a file for data or zip modes, or folder for dir mode, default is the current working dir.
  • --filter from-zip-text|to-zip-text|to-zip|decrypt-all|encrypt-all|to-underline|to-slash|default: filter to be applied to contained files. Use default to select all common filters for the target mode. You can use this options more than once.

Convert

shady-cli convert [--copy-unknown] [--output <output-path>] <file-path> [<file-path>...]

Converts resources to theirs counter-part format, if --copy-unknown option is enabled then files that can't be converted are copied to output path, otherwise they are ignored.

Merge

shady-cli merge [<options>...] <file-path> [<file-path>...]

The allowed options are:

  • --palette <palette-path>: merge specified palette into any target png image. Indexed images will have this palette copied to theirs palette info, true color images will have theirs colors compared to the palette and mapped to it.

Examples

Extract all files from a package to current working directory:

shady-cli pack path/to/package.dat

Compress files from a folder into a data package filtering them as needed:

shady-cli pack --mode data --filter default --output path/to/target/package.dat path/to/folder

Merge two packages into a zip package:

shady-cli pack --mode zip --output path/to/target/package.dat path/to/package1.dat path/to/package2.dat

Copy files and rename then to use underline filename notation

shady-cli pack --filter to-underline --output path/to/target/folder path/to/folder/or/package.dat

Convert all files from a folder:

shady-cli convert --output path/to/target/folder path/to/source/folder
Clone this wiki locally