Command Line Interface (CLI)

The AxCrypt Command Line Interface (CLI) is a free, open-source tool that allows you to encrypt and decrypt files directly from your terminal or command prompt.

Command Syntax Overview

                    AxCryptCli --[command] [arg1 arg2 arg3 ...]
                

Where:

  1. AxCryptCli → The program name that performs file encryption or decryption

  2. --[command] → The operation to be performed (e.g., )

  3. [args] → Inputs required by the command, such as file paths

Setting the Password

Before running any encryption or decryption operation, you must provide a passphrase.

Syntax

                    --passphrase [password]
                

Full Command Example

                    AxCryptCli --passphrase fileSecret
                

This sets the password for the operations that follow.

Encrypting Files

To encrypt one or more files, use the command.

Syntax

                    --encrypt [file1 file2 file3 ... fileN]
                

Full Command Example

                    AxCryptCli --passphrase fileSecret --encrypt C:\Docs\file.docx
                

Each file must be referenced using its full file path.

After encryption, the output file will have the extension.

Decrypting Files

To decrypt encrypted files, use the command.

Syntax

                    --decrypt [file1 file2 file3 ... fileN]
                

Full Command Example

                    AxCryptCli --passphrase fileSecret --encrypt C:\Docs\file.docx
                

You must use the same passphrase that was used during encryption.

Command Line Interface (CLI) ideal for:

  1. Quick one-off encryption and decryption

  2. Automating routine file-protection tasks using scripts

  3. Environments where GUI tools are not available

The AxCrypt CLI does not require an account or sign-in. You only need to supply a password to perform secure 128-bit AES encryption or decryption.

Currently, the CLI supports two core operations:

  • Encrypt

  • Decrypt

Note:

  1. You can encrypt or decrypt multiple files in one command by listing them all after the command.

  2. Ideal for scripts (PowerShell, Bash, batch files) for automated protection workflows.

  3. You do not need to register or create an AxCrypt account to be able to use Axcrypt CLI.

How the Command Line Works

A command line is a text-based interface that allows you to interact with your computer by typing commands instead of clicking buttons. A password is required for both encryption and decryption.

It’s commonly used by developers, system administrators, and power users because it’s fast, precise, and ideal for automation.

1. You type a command

A command is a line of text that tells the computer what action you want it to perform.

Example:

                    AxCryptCli --encrypt C:\Docs\file.docx
                

2. The command line reads and interprets what you typed

The command line (Command Prompt, PowerShell, or Terminal) breaks your input into:

  1. Program name (the tool you want to run)

  2. Commands or switches (what you want that tool to do)

  3. Arguments (additional information like file paths)

Example breakdown:

                    AxCryptCli              → program--encrypt               → command/switchC:\Docs\file.docx       → argument/file path
                

3. The program executes your instruction

Once interpreted, the command is passed to the program (in this case, AxCryptCli).
The program then performs the action — such as encrypting, decrypting, copying, moving, or creating files

For AxCrypt CLI, that action is usually:

  1. Encrypting a file

  2. Decrypting a file

4. The program returns output

After processing the command, the program usually displays the result in the terminal.

Example:

  1. “File encrypted successfully”

  2. “Incorrect passphrase”

  3. “File not found”

  4. No message at all (if it executed silently)

Some command-line tools also create new files (like AxCrypt creating .axx encrypted files).

5. You can chain commands or automate them

Command line tools can be placed inside:

  1. Batch files (.bat)

  2. PowerShell scripts (.ps1)

  3. Bash scripts (.sh)

  4. Cron jobs / scheduled tasks

This makes repetitive tasks automatic and efficient.
Example of automating encryption daily:

                    AxCryptCli --passphrase mySecret --encrypt C:\Backups\*.txt
                

FAQ

Do I need an AxCrypt account to use the Command Line Interface?
Expand
What type of encryption does the CLI use?
Expand
Can I encrypt multiple files at once?
Expand
What file formats does AxCrypt CLI support?
Expand
How do I share the password of files?
Expand
Can AxCrypt CLI need Internet connection?
Expand
Try for free