Files
OpenCore-Legacy-Patcher/CLI.html
2021-05-01 16:41:16 +00:00

36 lines
13 KiB
HTML

<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Command Line Args | OpenCore Legacy Patcher</title>
<meta name="generator" content="VuePress 1.7.1">
<link rel="&#39;stylesheet" href="/OpenCore-Legacy-Patcher/styles/website.css">
<meta name="description" content="">
<meta name="theme-color" content="#3eaf7c">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="preload" href="/OpenCore-Legacy-Patcher/assets/css/0.styles.1c47b1bb.css" as="style"><link rel="preload" href="/OpenCore-Legacy-Patcher/assets/js/app.0ab23c85.js" as="script"><link rel="preload" href="/OpenCore-Legacy-Patcher/assets/js/2.d13a5aaf.js" as="script"><link rel="preload" href="/OpenCore-Legacy-Patcher/assets/js/19.b4746952.js" as="script"><link rel="preload" href="/OpenCore-Legacy-Patcher/assets/js/16.bd966d9c.js" as="script"><link rel="prefetch" href="/OpenCore-Legacy-Patcher/assets/js/10.57e373cf.js"><link rel="prefetch" href="/OpenCore-Legacy-Patcher/assets/js/11.3f4b674f.js"><link rel="prefetch" href="/OpenCore-Legacy-Patcher/assets/js/12.206bd2f9.js"><link rel="prefetch" href="/OpenCore-Legacy-Patcher/assets/js/13.dde76279.js"><link rel="prefetch" href="/OpenCore-Legacy-Patcher/assets/js/14.91426124.js"><link rel="prefetch" href="/OpenCore-Legacy-Patcher/assets/js/15.726eb6a0.js"><link rel="prefetch" href="/OpenCore-Legacy-Patcher/assets/js/17.146c03f3.js"><link rel="prefetch" href="/OpenCore-Legacy-Patcher/assets/js/18.69763239.js"><link rel="prefetch" href="/OpenCore-Legacy-Patcher/assets/js/20.eb85c21d.js"><link rel="prefetch" href="/OpenCore-Legacy-Patcher/assets/js/21.0eecfa1e.js"><link rel="prefetch" href="/OpenCore-Legacy-Patcher/assets/js/22.1da8e27c.js"><link rel="prefetch" href="/OpenCore-Legacy-Patcher/assets/js/23.4bee0537.js"><link rel="prefetch" href="/OpenCore-Legacy-Patcher/assets/js/24.c563ab6e.js"><link rel="prefetch" href="/OpenCore-Legacy-Patcher/assets/js/25.13f6b8ef.js"><link rel="prefetch" href="/OpenCore-Legacy-Patcher/assets/js/26.b1b4c93f.js"><link rel="prefetch" href="/OpenCore-Legacy-Patcher/assets/js/27.56f66e5f.js"><link rel="prefetch" href="/OpenCore-Legacy-Patcher/assets/js/28.ac1300d3.js"><link rel="prefetch" href="/OpenCore-Legacy-Patcher/assets/js/29.83ff6351.js"><link rel="prefetch" href="/OpenCore-Legacy-Patcher/assets/js/3.c1760334.js"><link rel="prefetch" href="/OpenCore-Legacy-Patcher/assets/js/4.4c6290dc.js"><link rel="prefetch" href="/OpenCore-Legacy-Patcher/assets/js/5.36cba39c.js"><link rel="prefetch" href="/OpenCore-Legacy-Patcher/assets/js/6.4eafdf9a.js"><link rel="prefetch" href="/OpenCore-Legacy-Patcher/assets/js/7.768b4ed1.js"><link rel="prefetch" href="/OpenCore-Legacy-Patcher/assets/js/8.4465a45d.js"><link rel="prefetch" href="/OpenCore-Legacy-Patcher/assets/js/9.312d45b7.js">
<link rel="stylesheet" href="/OpenCore-Legacy-Patcher/assets/css/0.styles.1c47b1bb.css">
</head>
<body>
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/OpenCore-Legacy-Patcher/" class="home-link router-link-active"><img src="homepage.png" alt="OpenCore Legacy Patcher" class="logo"> <span class="site-name can-hide">OpenCore Legacy Patcher</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"> <div class="nav-item"><a role="button" aria-label="Switch to light mode" class="nav-link"><span>Switch theme</span></a></div> <a href="https://github.com/dortania/OpenCore-Legacy-Patcher/" target="_blank" rel="noopener noreferrer" class="repo-link">
GitHub
<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"> <div class="nav-item"><a role="button" aria-label="Switch to light mode" class="nav-link"><span>Switch theme</span></a></div> <a href="https://github.com/dortania/OpenCore-Legacy-Patcher/" target="_blank" rel="noopener noreferrer" class="repo-link">
GitHub
<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>Introduction</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/OpenCore-Legacy-Patcher/START.html" class="sidebar-link">What is OpenCore?</a></li><li><a href="/OpenCore-Legacy-Patcher/MODELS.html" class="sidebar-link">Supported Models</a></li><li><a href="/OpenCore-Legacy-Patcher/BENIFITS.html" class="sidebar-link">Benefits and drawbacks</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>Setting up</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/OpenCore-Legacy-Patcher/INSTALLER.html" class="sidebar-link">Download and build macOS Installers</a></li><li><a href="/OpenCore-Legacy-Patcher/BUILD.html" class="sidebar-link">Building and installing OpenCore</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>Installation</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/OpenCore-Legacy-Patcher/BOOT.html" class="sidebar-link">Booting OpenCore and macOS</a></li><li><a href="/OpenCore-Legacy-Patcher/POST-INSTALL.html" class="sidebar-link">Post-Installation</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>Misc</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/OpenCore-Legacy-Patcher/TROUBLESHOOTING.html" class="sidebar-link">Troubleshooting</a></li><li><a href="/OpenCore-Legacy-Patcher/DEBUG.html" class="sidebar-link">How to debug with OpenCore</a></li><li><a href="/OpenCore-Legacy-Patcher/UPDATE.html" class="sidebar-link">Updating OpenCore and Co.</a></li><li><a href="/OpenCore-Legacy-Patcher/UNINSTALL.html" class="sidebar-link">Uninstalling OpenCore</a></li><li><a href="/OpenCore-Legacy-Patcher/ICNS.html" class="sidebar-link">Creating custom icons for OpenCore and Mac Boot Picker</a></li><li><a href="/OpenCore-Legacy-Patcher/WINDOWS.html" class="sidebar-link">Installing UEFI Windows 10</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>Credit</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/OpenCore-Legacy-Patcher/DONATE.html" class="sidebar-link">Supporting the patcher</a></li><li><a href="/OpenCore-Legacy-Patcher/LICENSE.html" class="sidebar-link">OpenCore Legacy Patcher Licence</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>Documentation</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/OpenCore-Legacy-Patcher/TESTED.html" class="sidebar-link">Tested Models on OpenCore Legacy Patcher</a></li><li><a href="/OpenCore-Legacy-Patcher/TERMS.html" class="sidebar-link">OpenCore Patcher Terminology</a></li><li><a href="/OpenCore-Legacy-Patcher/HOW.html" class="sidebar-link">Boot Process with OpenCore Legacy Patcher</a></li><li><a href="/OpenCore-Legacy-Patcher/PATCHEXPLAIN.html" class="sidebar-link">Explaining the patches in OpenCore Legacy Patcher</a></li><li><a href="/OpenCore-Legacy-Patcher/CLI.html" aria-current="page" class="active sidebar-link">Command Line Args</a><ul class="sidebar-sub-headers"></ul></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-succinct-content content__default"><h1 id="command-line-args"><a href="#command-line-args" class="header-anchor">#</a> Command Line Args</h1> <p>With OpenCore Legacy Patcher, we include an extra binary called <a href="https://github.com/dortania/OpenCore-Legacy-Patcher/releases/" target="_blank" rel="noopener noreferrer">OCLP-CLI<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a>. The purpose of this binary is to easily run our OpenCore build process for other programs to hook onto. Below is documentation on currently supported arguments.</p> <h3 id="build-arguments"><a href="#build-arguments" class="header-anchor">#</a> Build Arguments</h3> <ul><li><strong>--build</strong>: Build OpenCore
<ul><li><strong>--model xxxx</strong>: override default model detection
<ul><li>ex. <strong>--model iMac11,2</strong></li></ul></li> <li><strong>--metal_gpu xxxx</strong>: override default GPU detection (ie. Nvidia, AMD)
<ul><li><strong>--metal_gpu Nvidia</strong></li></ul></li> <li><strong>--smbios_spoof xxxx</strong>: set spoofing mode, defaults to Minimal if no arg provided (ie. Minimal, Moderate, Advanced)
<ul><li>ex. <strong>--smbios_spoof Moderate</strong></li></ul></li> <li><strong>--verbose</strong>: enable verbose booting</li> <li><strong>--debug_oc</strong>: enable debug OpenCore</li> <li><strong>--debug_kext</strong>: enable debug kexts</li> <li><strong>--skip_wifi</strong>: skip wifi patch</li> <li><strong>--hide_picker</strong>: hide OpenCore's picker</li> <li><strong>--disable_sip</strong>: disables SIP</li> <li><strong>--disable_smb</strong>: disables SecureBootModel</li> <li><strong>--vault</strong>: enable OpenCore vaulting</li></ul></li></ul> <p>Example usage:</p> <div class="language-bash extra-class"><pre class="language-bash"><code>./OCLP-CLI --build --verbose --debug_oc --debug_kext --model iMac11,2
</code></pre></div><p>Note, when building OpenCore the output folder will be next to the OCLP binary as OpenCore-RELEASE or OpenCore-DEBUG folder.</p> <h3 id="patch-system-arguments"><a href="#patch-system-arguments" class="header-anchor">#</a> Patch System Arguments</h3> <ul><li><strong>--patch_sys_vol</strong>: patches root volume with detected hardware</li></ul> <p>Example usage:</p> <div class="language-bash extra-class"><pre class="language-bash"><code><span class="token function">sudo</span> ./OCLP-CLI --patch_sys_vol
</code></pre></div><p>Note, root volume patching needs to be run as sudo</p></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/dortania/OpenCore-Legacy-Patcher/edit/main/docs/CLI.md" target="_blank" rel="noopener noreferrer">Help us improve this page!</a> <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">4/24/2021, 4:35:22 PM</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">
<a href="/OpenCore-Legacy-Patcher/PATCHEXPLAIN.html" class="prev">
Explaining the patches in OpenCore Legacy Patcher
</a></span> <!----></p></div> </main></div><div class="global-ui"><div style="visibility:hidden;display:none;"></div><!----></div></div>
<script src="/OpenCore-Legacy-Patcher/assets/js/app.0ab23c85.js" defer></script><script src="/OpenCore-Legacy-Patcher/assets/js/2.d13a5aaf.js" defer></script><script src="/OpenCore-Legacy-Patcher/assets/js/19.b4746952.js" defer></script><script src="/OpenCore-Legacy-Patcher/assets/js/16.bd966d9c.js" defer></script>
</body>
</html>