.. _string-options-ref: Command Line Options ==================== The CLI uses argparse to parse the command line options so the short or long versions may be used and the long options may be truncated to the shortest unambiguous abbreviation. Generic commands ---------------- .. program:: aqt .. option:: help show generic help .. option:: list list available variations. positional arguments: qt_version Qt version in the format of "5.X.Y" {linux,mac,windows} host os name {desktop,winrt,android,ios} target sdk Installation command -------------------- .. program:: aqt .. option:: install install Qt library specified version and target. There are various combinations to accept according to Qt version. .. describe:: Qt version This is a Qt version such as 5.9,7, 5.12.1 etc .. describe:: target OS linux, windows or mac .. describe:: target variant desktop, ios or android .. describe:: target architecture * gcc_64 for linux desktop * clang_64 for mac desktop * win64_msvc2019_64, win64_msvc2017_64, win64_msvc2015_64, win32_msvc2015, win32_mingw53 for windows desktop * android_armv7, android_arm64_v8a, android_x86, android_x86_64 for android .. option:: --version, -v Display version .. option:: --help, -h Display help text .. option:: --outputdir, -O specify output directory. .. option:: --base, -b specify mirror site base url such as -b 'https://mirrors.ocf.berkeley.edu/qt/' where 'online' folder exist. .. option:: --modules, -m specify extra modules to install as a list. .. code-block:: -m qtcharts qtdatavis3d qtlottie qtnetworkauth qtpurchasing qtquicktimeline qtscript qtvirtualkeyboard qtwebglplugin .. option:: --archives [Advanced] Specify subset of archives to **limit** installed archives. This is advanced option and not recommended to use for general usage. Main purpose is speed up CI/CD process by limiting installed modules. It can cause broken installation of Qt SDK. .. option:: --noarchives [Advanced] Specify not to install all base packages. This is advanced option and you should use with --modules option. This allow you to add modules to existent Qt installation. Tool installation commands -------------------------- .. program:: aqt .. option:: src install Qt sources specified version and target. .. option:: doc install Qt documents specified version and target. .. option:: examples install Qt examples specified version and target. .. option:: tool install tools specified. tool name may be 'tools_openssl_x64', 'tools_ninja', 'tools_ifw', 'tools_cmake' and tool variants name may be 'qt.tools.openssl.gcc_64', 'qt.tools.ninja', 'qt.tools.ifw.32', 'qt.tools.cmake'. You may need to looking for version number at https://download.qt.io/online/qtsdkrepository/ Command examples ================ Example: Installing Qt SDK 5.12.0 for Linux with QtCharts and QtNetworkAuth: .. code-block:: bash pip install aqtinstall sudo aqt install --outputdir /opt 5.12.0 linux desktop -m qtcharts qtnetworkauth Example: Installing Android (armv7) Qt 5.10.2: .. code-block:: bash aqt install 5.10.2 linux android android_armv7 Example: Install examples, doc and source: .. code-block:: bash C:\ aqt examples 5.15.0 windows desktop -m qtcharts qtnetworkauth C:\ aqt doc 5.15.0 windows desktop -m qtcharts qtnetworkauth C:\ aqt src 5.15.0 windows desktop Example: Install Web Assembly .. code-block:: bash aqt install 5.15.0 linux desktop wasm_32 Example: Install an Install FrameWork (IFW): .. code-block:: bash aqt tool linux tools_ifw 4.0 qt.tools.ifw.40 Example: Install vcredist: .. code-block:: bash C:\ aqt tool windows tools_vcredist 2019-02-13-1 qt.tools.vcredist_msvc2019_x64 C:\ .\Qt\Tools\vcredist\vcredist_msvc2019_x64.exe /norestart /q Example: Install MinGW on Windows .. code-block:: bash C:\ aqt tool -O c:\Qt windows tools_mingw 8.1.0-1-202004170606 qt.tools.win64_mingw810w c:\ set PATH=C:\Qt\Tools\mingw810_64\bin Example: Show help message .. code-block:: bash aqt help