Skip to content

Using the CLI

takeshix edited this page May 13, 2018 · 2 revisions

The CLI can be used by invoking deen with additional command line arguments. A simple example is the help page:

$ deen -h

There are two ways to use plugin via the CLI: via the -p/--plugin option or via subcommands. The following examples will show how the Base64 plugin could be used.

Encoding a data string
deen -p base64 -d admin:admin
Decoding a data string
deen -p base64 -r -d YWRtaW46YWRtaW4=
Encoding a file
deen -p base64 -f /etc/issue
Encoding data from STDIN
echo "admin:admin" | deen -p base64 -f -
Encoding data string via subcommand
deen base64 admin:admin
Decoding data string via subcommand
deen base64 -r YWRtaW46YWRtaW4=
Encoding a file via subcommand
deen base64 -f /etc/issue
Encoding data from STDIN via subcommand
echo "admin:admin" | deen base64 -f -