Zebro is a simple CLI tool for sending ZPL code to a label printer.
-
Download the
zebro-v0.1.0-windows.zipfile: zebro-v0.1.0-windows.zip -
Extract the ZIP file to a directory of your choice.
-
Add the directory where
zebro.exeis located to your PATH environment variable
Download the installation script and run it:
wget https://raw.githubusercontent.com/u8array/zebro/master/install.sh
chmod +x install.sh
./install.shcurl -L -O https://raw.githubusercontent.com/u8array/zebro/master/install.sh
chmod +x install.sh
./install.shUse the following command to send ZPL code to a printer:
zebro --address <IP:PORT> --zpl <ZPL_CODE>-a,--address <IP:PORT>: Defines the printer's address (IP:PORT).-i,--ip <IP>: Defines the printer's IP.-p,--port <PORT>: Defines the printer's port (default: 9100).-z,--zpl <ZPL_CODE>: The ZPL code to be sent to the printer.
Send ZPL code to a printer with a specific address:
zebro --address 192.168.1.100:9100 --zpl "^XA^FO50,50^ADN,36,20^FDHello, World!^FS^XZ"Send ZPL code to a printer with IP and default port:
zebro --ip 192.168.1.100 --zpl "^XA^FO50,50^ADN,36,20^FDHello, World!^FS^XZ"Send ZPL code from a file to a printer:
cat label.zpl | zebro --ip 192.168.1.100 --zpl -If an error occurs, an appropriate error message will be displayed. Possible errors include:
ConnectionError: Failed to connect to the printer.SendError: Failed to send the ZPL code.MissingZplCode: ZPL code is required.MissingAddress: Either address or IP must be provided.
This project is licensed under the MIT License. For more information, see the LICENSE file.