<h1>Setting up the local environment and workspace<aclass="headerlink"href="#setting-up-the-local-environment-and-workspace"title="Permalink to this headline">¶</a></h1>
<divclass="section"id="table-of-contents">
<h2>Table of Contents<aclass="headerlink"href="#table-of-contents"title="Permalink to this headline">¶</a></h2>
<li><p>Run the CLI command <codeclass="docutils literal notranslate"><spanclass="pre">cpl</span><spanclass="pre">new</span><spanclass="pre">console</span></code> and provide the name my-app, as shown here:</p>
<divclass="highlight-sh notranslate"><divclass="highlight"><pre><span></span>cpl new console my-app
</pre></div>
</div>
</li>
<li><p>The cpl new command prompts you for information about features to include in the initial app. Decline the defaults by enter ‘n’ and press the Enter key.</p></li>
</ol>
<p>The CLI create a new workspace and a simple ‘Hello World’ app, ready to run.</p>
</div>
<divclass="section"id="create-initial-library">
<h2>Create initial library<aclass="headerlink"href="#create-initial-library"title="Permalink to this headline">¶</a></h2>
<li><p>Run the CLI command <codeclass="docutils literal notranslate"><spanclass="pre">cpl</span><spanclass="pre">new</span><spanclass="pre">library</span></code> and provide the name my-lib, as shown here:</p>
<divclass="highlight-sh notranslate"><divclass="highlight"><pre><span></span>cpl new library my-lib
</pre></div>
</div>
</li>
<li><p>The cpl new command prompts you for information about features to include in the initial library. Decline the defaults by enter ‘n’ and press the Enter key.</p></li>
</ol>
<p>The CLI create a new workspace and a simple ‘Hello World’ library with CLI, ready to run.</p>
</div>
<divclass="section"id="start-the-app">
<h2>Start the app<aclass="headerlink"href="#start-the-app"title="Permalink to this headline">¶</a></h2>
<p>The CLI includes a live development server, so that you can run your app locally.</p>
<ol>
<li><p>Open a terminal window</p></li>
<li><p>To navigate to your project workspace, run the following command:</p>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">cpl</span><spanclass="pre">start</span></code> command launches the server, watches your source files, and restarts the app as you make chnages to thoses source files.</p>
<p>If your installation and setup was successful, you should see a output similar to the following:</p>
<divclass="highlight-sh notranslate"><divclass="highlight"><pre><span></span>Hello World
</pre></div>
</div>
</div>
<divclass="section"id="what-s-next">
<h2>What’s next<aclass="headerlink"href="#what-s-next"title="Permalink to this headline">¶</a></h2>
<ulclass="simple">
<li><p>To learn more about the CPL CLI, see the <aclass="reference internal"href="cli.overview.html"><spanclass="doc std std-doc">CLI Overview</span></a></p></li>
<li><p>Fore more informations about the Pyhton files generated by <codeclass="docutils literal notranslate"><spanclass="pre">cpl</span><spanclass="pre">new</span></code>, see <aclass="reference internal"href="cli.new.html"><spanclass="doc std std-doc">New Command</span></a></p></li>
<ahref="quickstart.html"class="btn btn-neutral float-left"title="Getting started with CPL"accesskey="p"rel="prev"><spanclass="fa fa-arrow-circle-left"aria-hidden="true"></span> Previous</a>
</div>
<hr/>
<divrole="contentinfo">
<p>
© Copyright 2021, Sven Heidemann.
</p>
</div>
Built with <ahref="https://www.sphinx-doc.org/">Sphinx</a> using a