Command Line Interface

Overview

Auto Print provides two main command-line tools:

  1. Configuration Generator – Interactive tool for setting up printing rules

  2. Print Executor – Command-line tool to apply those rules to files

Note

If installed via the MSI installer:

  • Use auto-print.exe to print files (also available in the right-click context menu for PDF files)

  • Use auto-print-config.exe or launch Auto Print Config from the Start Menu to configure rules

Configuration

The configuration file is stored at:

%USERPROFILE%\auto-printer\auto-printer-config.json

For details about the configuration file structure, see the Configuration File Structure section in the usage documentation.

Configuration Generator Commands

Interactive configuration generator for auto-print. This tool helps you create and manage printer configurations.

usage: auto_print_config_generator [-h]

The configuration generator provides an interactive interface with the following commands:

Command

Short

Description

save

s

Save the configuration

close

c

Close the config tool

add

a

Add a config section

delete

d

Remove a section

show

s

Display the config

change

Reorder sections

edit

e

Edit section content

help

h

Display help

repair

r

Validate printer availability

Configuration Workflow

The configuration workflow follows these steps:

  1. Launch the generator (via CLI or GUI)

  2. Use the commands listed above to create and manage configuration sections

  3. Use save to persist changes

  4. Exit with close

For details about configuration options and matching rules, see the Configuration File Structure and Document Routing Logic sections in the usage documentation.