<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
    <title>Vivek Shukla - Cheatsheet</title>
    <subtitle>I am a Software Engineer from India. I am currently building Daestro. I work in Rust, Javascript and Python.</subtitle>
    <link rel="self" type="application/atom+xml" href="https://vshukla.com/tags/cheatsheet/atom.xml"/>
    <link rel="alternate" type="text/html" href="https://vshukla.com/tags/cheatsheet/"/>
    <generator uri="https://www.getzola.org/">Zola</generator>
    <updated>2025-09-09T00:00:00+00:00</updated>
    <id>https://vshukla.com/tags/cheatsheet/atom.xml</id>
    <entry xml:lang="en">
        <title>UFW Cheat Sheet</title>
        <published>2025-09-09T00:00:00+00:00</published>
        <updated>2025-09-09T00:00:00+00:00</updated>
        <author>
          <name>Vivek Shukla</name>
        </author>
        <link rel="alternate" type="text/html" href="https://vshukla.com/snippets/ufw-cheat-sheet/"/>
        <id>https://vshukla.com/snippets/ufw-cheat-sheet/</id>
        <summary type="html">UFW stands Uncomplicated Firewall which provides simple interface over iptables to create host based firewall for IPv4 or IPv6</summary>
        <content type="html" xml:base="https://vshukla.com/snippets/ufw-cheat-sheet/">&lt;h2 id=&quot;check-status&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#check-status&quot; aria-label=&quot;Anchor link for: check-status&quot;&gt;🔗&lt;&#x2F;a&gt;Check status&lt;&#x2F;h2&gt;
&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;sudo&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; ufw status&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-comment&quot;&gt;# or&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;sudo&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; ufw status verbose&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-comment&quot;&gt;# or&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;sudo&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; ufw status numbered&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;&lt;h2 id=&quot;delete-value-based-on-number&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#delete-value-based-on-number&quot; aria-label=&quot;Anchor link for: delete-value-based-on-number&quot;&gt;🔗&lt;&#x2F;a&gt;Delete value based on number:&lt;&#x2F;h2&gt;
&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;sudo&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; ufw delete&lt;&#x2F;span&gt;&lt;span class=&quot;z-constant z-numeric&quot;&gt; 5&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;&lt;h2 id=&quot;allow-port&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#allow-port&quot; aria-label=&quot;Anchor link for: allow-port&quot;&gt;🔗&lt;&#x2F;a&gt;Allow port&lt;&#x2F;h2&gt;
&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;sudo&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; ufw allow 22&#x2F;tcp&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;&lt;h2 id=&quot;deny-port&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#deny-port&quot; aria-label=&quot;Anchor link for: deny-port&quot;&gt;🔗&lt;&#x2F;a&gt;Deny port&lt;&#x2F;h2&gt;
&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;sudo&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; ufw deny 80&#x2F;tcp&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;&lt;h2 id=&quot;allow-from-ip-address-or-subnet&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#allow-from-ip-address-or-subnet&quot; aria-label=&quot;Anchor link for: allow-from-ip-address-or-subnet&quot;&gt;🔗&lt;&#x2F;a&gt;Allow from ip address or subnet&lt;&#x2F;h2&gt;
&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;sudo&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; ufw allow from 10.22.96.0&#x2F;20&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;&lt;h2 id=&quot;allow-from-ip-address-to-specific-port&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#allow-from-ip-address-to-specific-port&quot; aria-label=&quot;Anchor link for: allow-from-ip-address-to-specific-port&quot;&gt;🔗&lt;&#x2F;a&gt;Allow from ip address to specific port&lt;&#x2F;h2&gt;
&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;sudo&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; ufw allow from 10.22.96.0&#x2F;20 proto tcp to any port&lt;&#x2F;span&gt;&lt;span class=&quot;z-constant z-numeric&quot;&gt; 5432&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;&lt;h2 id=&quot;disable-ufw&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#disable-ufw&quot; aria-label=&quot;Anchor link for: disable-ufw&quot;&gt;🔗&lt;&#x2F;a&gt;Disable ufw&lt;&#x2F;h2&gt;
&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;sudo&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; ufw disable&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;&lt;h2 id=&quot;block-an-ip-address-or-subnet&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#block-an-ip-address-or-subnet&quot; aria-label=&quot;Anchor link for: block-an-ip-address-or-subnet&quot;&gt;🔗&lt;&#x2F;a&gt;Block an ip address or subnet&lt;&#x2F;h2&gt;
&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;sudo&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; ufw deny from&lt;&#x2F;span&gt;&lt;span class=&quot;z-constant z-numeric&quot;&gt; 203.0.113.100&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;&lt;h2 id=&quot;delete-a-rule&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#delete-a-rule&quot; aria-label=&quot;Anchor link for: delete-a-rule&quot;&gt;🔗&lt;&#x2F;a&gt;Delete a rule&lt;&#x2F;h2&gt;
&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;sudo&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; ufw delete allow from&lt;&#x2F;span&gt;&lt;span class=&quot;z-constant z-numeric&quot;&gt; 203.0.113.101&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;&lt;h2 id=&quot;allow-incoming-connection-to-a-network-interface&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#allow-incoming-connection-to-a-network-interface&quot; aria-label=&quot;Anchor link for: allow-incoming-connection-to-a-network-interface&quot;&gt;🔗&lt;&#x2F;a&gt;Allow incoming connection to a network interface&lt;&#x2F;h2&gt;
&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;sudo&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; ufw allow in on eth0 from&lt;&#x2F;span&gt;&lt;span class=&quot;z-constant z-numeric&quot;&gt; 203.0.113.102&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;</content>
    </entry>
    <entry xml:lang="en">
        <title>Python Poetry Cheat Sheet</title>
        <published>2023-10-30T00:00:00+00:00</published>
        <updated>2023-10-30T00:00:00+00:00</updated>
        <author>
          <name>Vivek Shukla</name>
        </author>
        <link rel="alternate" type="text/html" href="https://vshukla.com/tech/poetry-cheat-sheet/"/>
        <id>https://vshukla.com/tech/poetry-cheat-sheet/</id>
        <summary type="html">Poetry is an amazing tool for dependancy management in Python, it solves a lot of problems of pip. Here in this Poetry Cheat Sheet we have useful commands that we may need frequently.</summary>
        <content type="html" xml:base="https://vshukla.com/tech/poetry-cheat-sheet/">&lt;p&gt;Poetry is an amazing tool for dependancy management in Python, it solves a lot of problems of pip. Here in this Poetry Cheat Sheet we have useful commands that we may need frequently.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;initializing&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#initializing&quot; aria-label=&quot;Anchor link for: initializing&quot;&gt;🔗&lt;&#x2F;a&gt;Initializing&lt;&#x2F;h2&gt;
&lt;h3 id=&quot;new-project&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#new-project&quot; aria-label=&quot;Anchor link for: new-project&quot;&gt;🔗&lt;&#x2F;a&gt;New Project&lt;&#x2F;h3&gt;
&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;poetry&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; new poetry-demo&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;&lt;h3 id=&quot;in-pre-existing-directory&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#in-pre-existing-directory&quot; aria-label=&quot;Anchor link for: in-pre-existing-directory&quot;&gt;🔗&lt;&#x2F;a&gt;In Pre-existing Directory&lt;&#x2F;h3&gt;
&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-support z-function&quot;&gt;cd&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; pre-existing-project&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;poetry&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; init&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;&lt;h2 id=&quot;environments&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#environments&quot; aria-label=&quot;Anchor link for: environments&quot;&gt;🔗&lt;&#x2F;a&gt;Environments&lt;&#x2F;h2&gt;
&lt;h3 id=&quot;displaying-the-environment-information&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#displaying-the-environment-information&quot; aria-label=&quot;Anchor link for: displaying-the-environment-information&quot;&gt;🔗&lt;&#x2F;a&gt;Displaying the environment information&lt;&#x2F;h3&gt;
&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;poetry&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; env info&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;&lt;h3 id=&quot;using-your-own-virtual-environment&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#using-your-own-virtual-environment&quot; aria-label=&quot;Anchor link for: using-your-own-virtual-environment&quot;&gt;🔗&lt;&#x2F;a&gt;Using your own virtual environment&lt;&#x2F;h3&gt;
&lt;p&gt;&lt;strong&gt;Keep virtualenv in project root&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;p&gt;More on this &lt;a rel=&quot;noopener external&quot; target=&quot;_blank&quot; href=&quot;https:&#x2F;&#x2F;python-poetry.org&#x2F;docs&#x2F;configuration&#x2F;#virtualenvsin-project&quot;&gt;here&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt;
&lt;p&gt;This will also let VS Code discover your porject’s virtual env.&lt;&#x2F;p&gt;
&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;poetry&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; config virtualenvs.in-project&lt;&#x2F;span&gt;&lt;span class=&quot;z-constant z-language&quot;&gt; true&lt;&#x2F;span&gt;&lt;span class=&quot;z-constant z-other&quot;&gt; --local&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;&lt;strong&gt;External virtual environment management&lt;&#x2F;strong&gt;&lt;&#x2F;p&gt;
&lt;p&gt;Poetry will detect and respect an existing virtual environment that has been externally activated. This is a powerful mechanism that is intended to be an alternative to Poetry’s built-in, simplified environment management.&lt;&#x2F;p&gt;
&lt;p&gt;You can use &lt;a href=&quot;&#x2F;tech&#x2F;pyenv-cheat-sheet&quot;&gt;pyenv&lt;&#x2F;a&gt; to create external virtual environment.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;switching-between-environments&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#switching-between-environments&quot; aria-label=&quot;Anchor link for: switching-between-environments&quot;&gt;🔗&lt;&#x2F;a&gt;Switching between environments&lt;&#x2F;h3&gt;
&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;poetry&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; env use &#x2F;full&#x2F;path&#x2F;to&#x2F;python&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;poetry&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; env use&lt;&#x2F;span&gt;&lt;span class=&quot;z-constant z-numeric&quot;&gt; 3.7&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;poetry&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; env use system&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;&lt;h3 id=&quot;listing-the-environments-associated-with-the-project&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#listing-the-environments-associated-with-the-project&quot; aria-label=&quot;Anchor link for: listing-the-environments-associated-with-the-project&quot;&gt;🔗&lt;&#x2F;a&gt;Listing the environments associated with the project&lt;&#x2F;h3&gt;
&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;poetry&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; env list&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;&lt;h3 id=&quot;deleting-the-environments&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#deleting-the-environments&quot; aria-label=&quot;Anchor link for: deleting-the-environments&quot;&gt;🔗&lt;&#x2F;a&gt;Deleting the environments&lt;&#x2F;h3&gt;
&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;poetry&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; env remove &#x2F;full&#x2F;path&#x2F;to&#x2F;python&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;poetry&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; env remove python3.7&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;poetry&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; env remove&lt;&#x2F;span&gt;&lt;span class=&quot;z-constant z-numeric&quot;&gt; 3.7&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;poetry&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; env remove test-O3eWbxRl-py3.7&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;Use the &lt;strong&gt;&lt;code&gt;--all&lt;&#x2F;code&gt;&lt;&#x2F;strong&gt; option to delete all virtual environments at once.&lt;&#x2F;p&gt;
&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;poetry&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; env remove&lt;&#x2F;span&gt;&lt;span class=&quot;z-constant z-other&quot;&gt; --all&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;&lt;h2 id=&quot;dependencies&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#dependencies&quot; aria-label=&quot;Anchor link for: dependencies&quot;&gt;🔗&lt;&#x2F;a&gt;Dependencies&lt;&#x2F;h2&gt;
&lt;h3 id=&quot;add-new-dependency&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#add-new-dependency&quot; aria-label=&quot;Anchor link for: add-new-dependency&quot;&gt;🔗&lt;&#x2F;a&gt;Add new dependency&lt;&#x2F;h3&gt;
&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;poetry&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; add&lt;&#x2F;span&gt;&lt;span class=&quot;z-keyword z-operator&quot;&gt; &amp;lt;&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt;package nam&lt;&#x2F;span&gt;&lt;span&gt;e&lt;&#x2F;span&gt;&lt;span class=&quot;z-keyword z-operator&quot;&gt;&amp;gt;&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;&lt;h3 id=&quot;removing-dependency&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#removing-dependency&quot; aria-label=&quot;Anchor link for: removing-dependency&quot;&gt;🔗&lt;&#x2F;a&gt;Removing dependency&lt;&#x2F;h3&gt;
&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;poetry&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; remove&lt;&#x2F;span&gt;&lt;span class=&quot;z-keyword z-operator&quot;&gt; &amp;lt;&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt;package nam&lt;&#x2F;span&gt;&lt;span&gt;e&lt;&#x2F;span&gt;&lt;span class=&quot;z-keyword z-operator&quot;&gt;&amp;gt;&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;&lt;h3 id=&quot;installing-dependencies&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#installing-dependencies&quot; aria-label=&quot;Anchor link for: installing-dependencies&quot;&gt;🔗&lt;&#x2F;a&gt;Installing dependencies&lt;&#x2F;h3&gt;
&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;poetry&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; install&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;&lt;h3 id=&quot;updating-dependencies-to-their-latest-versions&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#updating-dependencies-to-their-latest-versions&quot; aria-label=&quot;Anchor link for: updating-dependencies-to-their-latest-versions&quot;&gt;🔗&lt;&#x2F;a&gt;Updating dependencies to their latest versions&lt;&#x2F;h3&gt;
&lt;p&gt;This will fetch the latest matching versions (according to your &lt;strong&gt;&lt;code&gt;pyproject.toml&lt;&#x2F;code&gt;&lt;&#x2F;strong&gt; file) and update the lock file with the new versions. (This is equivalent to deleting the &lt;strong&gt;&lt;code&gt;poetry.lock&lt;&#x2F;code&gt;&lt;&#x2F;strong&gt; file and running &lt;strong&gt;&lt;code&gt;install&lt;&#x2F;code&gt;&lt;&#x2F;strong&gt; again.)&lt;&#x2F;p&gt;
&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;poetry&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; update&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;&lt;h3 id=&quot;adding-a-dependency-to-a-group&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#adding-a-dependency-to-a-group&quot; aria-label=&quot;Anchor link for: adding-a-dependency-to-a-group&quot;&gt;🔗&lt;&#x2F;a&gt;Adding a dependency to a group&lt;&#x2F;h3&gt;
&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;poetry&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; add pytest&lt;&#x2F;span&gt;&lt;span class=&quot;z-constant z-other&quot;&gt; --group&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; test&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;poetry&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; add isort&lt;&#x2F;span&gt;&lt;span class=&quot;z-constant z-other&quot;&gt; --group&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; dev&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;&lt;h3 id=&quot;installing-group-dependencies&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#installing-group-dependencies&quot; aria-label=&quot;Anchor link for: installing-group-dependencies&quot;&gt;🔗&lt;&#x2F;a&gt;Installing group dependencies&lt;&#x2F;h3&gt;
&lt;p&gt;&lt;code&gt;without&lt;&#x2F;code&gt;&lt;&#x2F;p&gt;
&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;poetry&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; install&lt;&#x2F;span&gt;&lt;span class=&quot;z-constant z-other&quot;&gt; --without&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; test, docs&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;&lt;code&gt;with&lt;&#x2F;code&gt;&lt;&#x2F;p&gt;
&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;poetry&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; install&lt;&#x2F;span&gt;&lt;span class=&quot;z-constant z-other&quot;&gt; --with&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; docs&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;&lt;code&gt;only&lt;&#x2F;code&gt;&lt;&#x2F;p&gt;
&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;poetry&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; install&lt;&#x2F;span&gt;&lt;span class=&quot;z-constant z-other&quot;&gt; --only&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; main&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;&lt;h3 id=&quot;removing-dependencies-from-a-group&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#removing-dependencies-from-a-group&quot; aria-label=&quot;Anchor link for: removing-dependencies-from-a-group&quot;&gt;🔗&lt;&#x2F;a&gt;Removing dependencies from a group&lt;&#x2F;h3&gt;
&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;poetry&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; remove mkdocs&lt;&#x2F;span&gt;&lt;span class=&quot;z-constant z-other&quot;&gt; --group&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; docs&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;&lt;h3 id=&quot;synchronizing-dependencies&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#synchronizing-dependencies&quot; aria-label=&quot;Anchor link for: synchronizing-dependencies&quot;&gt;🔗&lt;&#x2F;a&gt;Synchronizing dependencies&lt;&#x2F;h3&gt;
&lt;p&gt;Poetry supports what’s called dependency synchronization. Dependency synchronization ensures that the locked dependencies in the &lt;strong&gt;&lt;code&gt;poetry.lock&lt;&#x2F;code&gt;&lt;&#x2F;strong&gt; file are the only ones present in the environment, removing anything that’s not necessary.&lt;&#x2F;p&gt;
&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;poetry&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; install&lt;&#x2F;span&gt;&lt;span class=&quot;z-constant z-other&quot;&gt; --sync&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;poetry&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; install&lt;&#x2F;span&gt;&lt;span class=&quot;z-constant z-other&quot;&gt; --without&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; dev&lt;&#x2F;span&gt;&lt;span class=&quot;z-constant z-other&quot;&gt; --sync&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;poetry&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; install&lt;&#x2F;span&gt;&lt;span class=&quot;z-constant z-other&quot;&gt; --with&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; docs&lt;&#x2F;span&gt;&lt;span class=&quot;z-constant z-other&quot;&gt; --sync&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;poetry&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; install&lt;&#x2F;span&gt;&lt;span class=&quot;z-constant z-other&quot;&gt; --only&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; dev&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;&lt;h2 id=&quot;export&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#export&quot; aria-label=&quot;Anchor link for: export&quot;&gt;🔗&lt;&#x2F;a&gt;Export&lt;&#x2F;h2&gt;
&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;poetry&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; export&lt;&#x2F;span&gt;&lt;span class=&quot;z-constant z-other&quot;&gt; -f&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; requirements.txt&lt;&#x2F;span&gt;&lt;span class=&quot;z-constant z-other&quot;&gt; --output&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; requirements.txt&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;--format (-f)&lt;&#x2F;code&gt;&lt;&#x2F;strong&gt;: The format to export to (default: &lt;strong&gt;&lt;code&gt;requirements.txt&lt;&#x2F;code&gt;&lt;&#x2F;strong&gt;). Currently, only &lt;strong&gt;&lt;code&gt;constraints.txt&lt;&#x2F;code&gt;&lt;&#x2F;strong&gt; and &lt;strong&gt;&lt;code&gt;requirements.txt&lt;&#x2F;code&gt;&lt;&#x2F;strong&gt; are supported.&lt;&#x2F;p&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;--output (-o)&lt;&#x2F;code&gt;&lt;&#x2F;strong&gt;: The name of the output file. If omitted, print to standard output.&lt;&#x2F;p&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;--extras (-E)&lt;&#x2F;code&gt;&lt;&#x2F;strong&gt;: Extra sets of dependencies to include.&lt;&#x2F;p&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;--without&lt;&#x2F;code&gt;&lt;&#x2F;strong&gt;: The dependency groups to ignore.&lt;&#x2F;p&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;--with&lt;&#x2F;code&gt;&lt;&#x2F;strong&gt;: The optional dependency groups to include.&lt;&#x2F;p&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;--only&lt;&#x2F;code&gt;&lt;&#x2F;strong&gt;: The only dependency groups to include.&lt;&#x2F;p&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;--without-hashes&lt;&#x2F;code&gt;&lt;&#x2F;strong&gt;: Exclude hashes from the exported file.&lt;&#x2F;p&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;--without-urls&lt;&#x2F;code&gt;&lt;&#x2F;strong&gt;: Exclude source repository urls from the exported file.&lt;&#x2F;p&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;&lt;code&gt;--with-credentials&lt;&#x2F;code&gt;&lt;&#x2F;strong&gt;: Include credentials for extra indices.&lt;&#x2F;p&gt;
&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h2 id=&quot;packaging&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#packaging&quot; aria-label=&quot;Anchor link for: packaging&quot;&gt;🔗&lt;&#x2F;a&gt;Packaging&lt;&#x2F;h2&gt;
&lt;h3 id=&quot;build&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#build&quot; aria-label=&quot;Anchor link for: build&quot;&gt;🔗&lt;&#x2F;a&gt;Build&lt;&#x2F;h3&gt;
&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;poetry&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; build&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;&lt;h3 id=&quot;publish&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#publish&quot; aria-label=&quot;Anchor link for: publish&quot;&gt;🔗&lt;&#x2F;a&gt;Publish&lt;&#x2F;h3&gt;
&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;poetry&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; publish&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;&lt;h2 id=&quot;configuration&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#configuration&quot; aria-label=&quot;Anchor link for: configuration&quot;&gt;🔗&lt;&#x2F;a&gt;Configuration&lt;&#x2F;h2&gt;
&lt;p&gt;You can find all the &lt;a rel=&quot;noopener external&quot; target=&quot;_blank&quot; href=&quot;https:&#x2F;&#x2F;python-poetry.org&#x2F;docs&#x2F;configuration&#x2F;&quot;&gt;configuration options here&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt;
</content>
    </entry>
    <entry xml:lang="en">
        <title>pyenv Cheat Sheet</title>
        <published>2023-10-22T00:00:00+00:00</published>
        <updated>2023-10-22T00:00:00+00:00</updated>
        <author>
          <name>Vivek Shukla</name>
        </author>
        <link rel="alternate" type="text/html" href="https://vshukla.com/tech/pyenv-cheat-sheet/"/>
        <id>https://vshukla.com/tech/pyenv-cheat-sheet/</id>
        <summary type="html">pyenv is Python version management tool, it lets you easily switch between multiple versions of Python. Here is the pyenv cheat sheet of all the basic commands list.</summary>
        <content type="html" xml:base="https://vshukla.com/tech/pyenv-cheat-sheet/">&lt;p&gt;Here is the pyenv cheat sheet of all the basic commands list.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;what-is-pyenv&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#what-is-pyenv&quot; aria-label=&quot;Anchor link for: what-is-pyenv&quot;&gt;🔗&lt;&#x2F;a&gt;What is pyenv&lt;&#x2F;h2&gt;
&lt;p&gt;pyenv is &lt;a href=&quot;&#x2F;tags&#x2F;python&#x2F;&quot;&gt;Python&lt;&#x2F;a&gt; version management tool, it lets you easily switch between multiple versions of Python.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;what-it-does&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#what-it-does&quot; aria-label=&quot;Anchor link for: what-it-does&quot;&gt;🔗&lt;&#x2F;a&gt;What it does&lt;&#x2F;h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Lets you change the global Python version on a per-user basis.&lt;&#x2F;p&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;
&lt;p&gt;Provides support for per-project Python versions.&lt;&#x2F;p&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;
&lt;p&gt;Allows you to override the Python version with an environment variable.&lt;&#x2F;p&gt;
&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;h2 id=&quot;list-available-python-versions-to-install&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#list-available-python-versions-to-install&quot; aria-label=&quot;Anchor link for: list-available-python-versions-to-install&quot;&gt;🔗&lt;&#x2F;a&gt;List available python versions to install&lt;&#x2F;h2&gt;
&lt;p&gt;This will list all the available version of python&lt;&#x2F;p&gt;
&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;pyenv&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; install&lt;&#x2F;span&gt;&lt;span class=&quot;z-constant z-other&quot;&gt; --list&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;You can filter it using grep. Here we are filtering list by python version:&lt;&#x2F;p&gt;
&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;pyenv&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; install&lt;&#x2F;span&gt;&lt;span class=&quot;z-constant z-other&quot;&gt; --list&lt;&#x2F;span&gt;&lt;span class=&quot;z-keyword z-operator&quot;&gt; |&lt;&#x2F;span&gt;&lt;span class=&quot;z-entity z-name&quot;&gt; grep&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; &amp;quot; 3\.11&amp;quot;&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;&lt;h2 id=&quot;installing-python-version&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#installing-python-version&quot; aria-label=&quot;Anchor link for: installing-python-version&quot;&gt;🔗&lt;&#x2F;a&gt;Installing Python Version&lt;&#x2F;h2&gt;
&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;pyenv&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; install&lt;&#x2F;span&gt;&lt;span class=&quot;z-keyword z-operator&quot;&gt; &amp;lt;&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt;versio&lt;&#x2F;span&gt;&lt;span&gt;n&lt;&#x2F;span&gt;&lt;span class=&quot;z-keyword z-operator&quot;&gt;&amp;gt;&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;add &lt;code&gt;-v&lt;&#x2F;code&gt; flag to see install progress output&lt;&#x2F;p&gt;
&lt;h2 id=&quot;list-installed-python-versions&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#list-installed-python-versions&quot; aria-label=&quot;Anchor link for: list-installed-python-versions&quot;&gt;🔗&lt;&#x2F;a&gt;List Installed Python Versions&lt;&#x2F;h2&gt;
&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;pyenv&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; versions&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;Astrick (*) indicate current active version.&lt;&#x2F;p&gt;
&lt;h2 id=&quot;see-list-of-all-pyenv-commands&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#see-list-of-all-pyenv-commands&quot; aria-label=&quot;Anchor link for: see-list-of-all-pyenv-commands&quot;&gt;🔗&lt;&#x2F;a&gt;See List Of All pyenv Commands&lt;&#x2F;h2&gt;
&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;pyenv&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; commands&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;&lt;h2 id=&quot;activating-python-version&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#activating-python-version&quot; aria-label=&quot;Anchor link for: activating-python-version&quot;&gt;🔗&lt;&#x2F;a&gt;Activating Python Version&lt;&#x2F;h2&gt;
&lt;h3 id=&quot;global&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#global&quot; aria-label=&quot;Anchor link for: global&quot;&gt;🔗&lt;&#x2F;a&gt;global&lt;&#x2F;h3&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Sets the given version as global python version.&lt;&#x2F;p&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;
&lt;p&gt;It overrides system’s default python version.&lt;&#x2F;p&gt;
&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;pyenv&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; global&lt;&#x2F;span&gt;&lt;span class=&quot;z-keyword z-operator&quot;&gt; &amp;lt;&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt;versio&lt;&#x2F;span&gt;&lt;span&gt;n&lt;&#x2F;span&gt;&lt;span class=&quot;z-keyword z-operator&quot;&gt;&amp;gt;&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;&lt;h3 id=&quot;local&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#local&quot; aria-label=&quot;Anchor link for: local&quot;&gt;🔗&lt;&#x2F;a&gt;local&lt;&#x2F;h3&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Use it to set directory &#x2F; project specific python version.&lt;&#x2F;p&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;
&lt;p&gt;It can override python version set by &lt;code&gt;global&lt;&#x2F;code&gt;&lt;&#x2F;p&gt;
&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;pyenv&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; local&lt;&#x2F;span&gt;&lt;span class=&quot;z-keyword z-operator&quot;&gt; &amp;lt;&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt;versio&lt;&#x2F;span&gt;&lt;span&gt;n&lt;&#x2F;span&gt;&lt;span class=&quot;z-keyword z-operator&quot;&gt;&amp;gt;&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;&lt;h3 id=&quot;shell&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#shell&quot; aria-label=&quot;Anchor link for: shell&quot;&gt;🔗&lt;&#x2F;a&gt;shell&lt;&#x2F;h3&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Sets shell specific python version.&lt;&#x2F;p&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;
&lt;p&gt;The python version stays active until shell has been closed or by using &lt;code&gt;--unset&lt;&#x2F;code&gt; flag.&lt;&#x2F;p&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;
&lt;p&gt;It can override python version set by &lt;code&gt;local&lt;&#x2F;code&gt; and &lt;code&gt;global&lt;&#x2F;code&gt;&lt;&#x2F;p&gt;
&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;pyenv&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; shell&lt;&#x2F;span&gt;&lt;span class=&quot;z-keyword z-operator&quot;&gt; &amp;lt;&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt;versio&lt;&#x2F;span&gt;&lt;span&gt;n&lt;&#x2F;span&gt;&lt;span class=&quot;z-keyword z-operator&quot;&gt;&amp;gt;&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;&lt;h2 id=&quot;virtual-environments&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#virtual-environments&quot; aria-label=&quot;Anchor link for: virtual-environments&quot;&gt;🔗&lt;&#x2F;a&gt;Virtual Environments&lt;&#x2F;h2&gt;
&lt;h3 id=&quot;create-virtual-environments&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#create-virtual-environments&quot; aria-label=&quot;Anchor link for: create-virtual-environments&quot;&gt;🔗&lt;&#x2F;a&gt;Create Virtual Environments&lt;&#x2F;h3&gt;
&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;pyenv&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; virtualenv&lt;&#x2F;span&gt;&lt;span class=&quot;z-keyword z-operator&quot;&gt; &amp;lt;&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt;versio&lt;&#x2F;span&gt;&lt;span&gt;n&lt;&#x2F;span&gt;&lt;span class=&quot;z-keyword z-operator&quot;&gt;&amp;gt; &amp;lt;&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt;env_nam&lt;&#x2F;span&gt;&lt;span&gt;e&lt;&#x2F;span&gt;&lt;span class=&quot;z-keyword z-operator&quot;&gt;&amp;gt;&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;&lt;h3 id=&quot;set-virtual-environment-as-default-for-dir-project&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#set-virtual-environment-as-default-for-dir-project&quot; aria-label=&quot;Anchor link for: set-virtual-environment-as-default-for-dir-project&quot;&gt;🔗&lt;&#x2F;a&gt;Set virtual environment as default for dir&#x2F;project&lt;&#x2F;h3&gt;
&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;pyenv&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; local&lt;&#x2F;span&gt;&lt;span class=&quot;z-keyword z-operator&quot;&gt; &amp;lt;&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt;env_nam&lt;&#x2F;span&gt;&lt;span&gt;e&lt;&#x2F;span&gt;&lt;span class=&quot;z-keyword z-operator&quot;&gt;&amp;gt;&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;&lt;h3 id=&quot;activate-virtual-environment&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#activate-virtual-environment&quot; aria-label=&quot;Anchor link for: activate-virtual-environment&quot;&gt;🔗&lt;&#x2F;a&gt;Activate Virtual Environment&lt;&#x2F;h3&gt;
&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;pyenv&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; activate&lt;&#x2F;span&gt;&lt;span class=&quot;z-keyword z-operator&quot;&gt; &amp;lt;&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt;env_nam&lt;&#x2F;span&gt;&lt;span&gt;e&lt;&#x2F;span&gt;&lt;span class=&quot;z-keyword z-operator&quot;&gt;&amp;gt;&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;&lt;h3 id=&quot;deactivate-virtual-environment&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#deactivate-virtual-environment&quot; aria-label=&quot;Anchor link for: deactivate-virtual-environment&quot;&gt;🔗&lt;&#x2F;a&gt;Deactivate Virtual Environment&lt;&#x2F;h3&gt;
&lt;pre class=&quot;giallo z-code&quot;&gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-entity z-name&quot;&gt;pyenv&lt;&#x2F;span&gt;&lt;span class=&quot;z-string&quot;&gt; deactivate&lt;&#x2F;span&gt;&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;&lt;h2 id=&quot;recommended-reading-materials&quot;&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#recommended-reading-materials&quot; aria-label=&quot;Anchor link for: recommended-reading-materials&quot;&gt;🔗&lt;&#x2F;a&gt;Recommended Reading Materials&lt;&#x2F;h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Official Page of &lt;a rel=&quot;noopener external&quot; target=&quot;_blank&quot; href=&quot;https:&#x2F;&#x2F;github.com&#x2F;pyenv&#x2F;pyenv&quot;&gt;pyenv&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;&#x2F;li&gt;
&lt;li&gt;
&lt;p&gt;Real Python: &lt;a rel=&quot;noopener external&quot; target=&quot;_blank&quot; href=&quot;https:&#x2F;&#x2F;realpython.com&#x2F;intro-to-pyenv&#x2F;#exploring-pyenv-commands&quot;&gt;Managing Multiple Python Versions With pyenv&lt;&#x2F;a&gt;&lt;&#x2F;p&gt;
&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
</content>
    </entry>
</feed>
