Installation¶
This guide explains how to install the KnitPkg CLI for MetaTrader (kp).
KnitPkg is currently Windows-first, because MetaTrader and MetaEditor are typically used on Windows.
Prerequisites¶
Before installing kp, make sure you have:
-
(Updated) Windows Terminal
Windows 11 already includes it. On older Windows versions, you may need the newer terminal to correctly render the CLI’s UTF-8 symbols and formatting. Available in Microsoft Store: https://aka.ms/terminal. For other installation methods see https://github.com/microsoft/terminal. -
Git client
KnitPkg leverages Git for MetaTrader package & project management, so a Git client is essential. Available at: https://git-scm.com/. -
MetaTrader 4 and/or MetaTrader 5 Available at: https://www.mql5.com/.
Install the CLI (kp)¶
Option A (recommended): download the prebuilt executable¶
- Download the latest
kp.exefrom the project’s GitHub Releases. - Put
kp.exein a folder you control (example:C:\tools\knitpkg\). - Add that folder to your PATH so
kpcan be called from any terminal.
Verify the installation¶
Open a new terminal and run:
If the command is not found, PATH is not set correctly (or the terminal session needs to be restarted).
Option B: PyPI (coming soon)¶
Distribution via pip is in progress. This section will be expanded once the package is published and stabilized.
Beta note¶
KnitPkg is currently in Beta. Expect occasional breaking changes and keep an eye on release notes when updating.