{"id":259,"date":"2023-08-27T17:39:35","date_gmt":"2023-08-27T15:39:35","guid":{"rendered":"https:\/\/extendsclass.com\/blog\/?p=259"},"modified":"2023-06-23T21:09:17","modified_gmt":"2023-06-23T19:09:17","slug":"cli-gpt-command-line-tool-that-uses-gpt-to-translate-text-into-executable-commands","status":"publish","type":"post","link":"https:\/\/extendsclass.com\/blog\/cli-gpt-command-line-tool-that-uses-gpt-to-translate-text-into-executable-commands","title":{"rendered":"Cli-GPT: command line tool that uses GPT to translate text into executable commands"},"content":{"rendered":"\n<p>cli-gpt is a command line tool that uses the capabilities of the GPT language model to convert natural language text into executable commands. By using cli-gpt, you can interact with your computer using plain English and accomplish tasks swiftly and effectively, without having to memorize complicated commands.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_47_1 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"ez-toc-toggle-icon-1\"><label for=\"item-69e8850c57f82\" aria-label=\"Table of Content\"><span style=\"display: flex;align-items: center;width: 35px;height: 30px;justify-content: center;direction:ltr;\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/label><input  type=\"checkbox\" id=\"item-69e8850c57f82\"><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/extendsclass.com\/blog\/cli-gpt-command-line-tool-that-uses-gpt-to-translate-text-into-executable-commands\/#Install\" title=\"Install\">Install<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/extendsclass.com\/blog\/cli-gpt-command-line-tool-that-uses-gpt-to-translate-text-into-executable-commands\/#How_to_use_it\" title=\"How to use it ?\">How to use it ?<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Install\"><\/span>Install<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code><span style=\"background-color: var(--color-canvas-subtle); color: rgb(31, 35, 40); font-family: ui-monospace, SFMono-Regular, &quot;SF Mono&quot;, Menlo, Consolas, &quot;Liberation Mono&quot;, monospace; font-size: 13.6px;\">git clone --recurse-submodules https:\/\/github.com\/filippofinke\/cli-gpt <\/span>\n\ncmake --build . --target install\n\nexport OPENAI_API_KEY=&lt;your openai api key&gt;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_use_it\"><\/span>How to use it ?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Just run the cli-gpt command with as parameter what you want to do<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cli-gpt &lt;explain what you want to do&gt;<\/pre>\n\n\n\n<p>Example of creating a file containing a random number:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"265\" src=\"https:\/\/extendsclass.com\/blog\/wp-content\/uploads\/2023\/07\/Capture-decran-du-2023-06-23-21-53-34-1024x265.png\" alt=\"\" class=\"wp-image-268\" srcset=\"https:\/\/extendsclass.com\/blog\/wp-content\/uploads\/2023\/07\/Capture-decran-du-2023-06-23-21-53-34-1024x265.png 1024w, https:\/\/extendsclass.com\/blog\/wp-content\/uploads\/2023\/07\/Capture-decran-du-2023-06-23-21-53-34-300x78.png 300w, https:\/\/extendsclass.com\/blog\/wp-content\/uploads\/2023\/07\/Capture-decran-du-2023-06-23-21-53-34-768x199.png 768w, https:\/\/extendsclass.com\/blog\/wp-content\/uploads\/2023\/07\/Capture-decran-du-2023-06-23-21-53-34-1536x398.png 1536w, https:\/\/extendsclass.com\/blog\/wp-content\/uploads\/2023\/07\/Capture-decran-du-2023-06-23-21-53-34-816x211.png 816w, https:\/\/extendsclass.com\/blog\/wp-content\/uploads\/2023\/07\/Capture-decran-du-2023-06-23-21-53-34.png 1818w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>Cli-GPT<\/strong> appears extremely valuable for individuals who only utilize the command prompt on occasion. When you infrequently execute commands, it can be challenging to recall them. However, with cli-gpt, no more hassle!<\/p>\n\n\n\n<p class=\"has-text-align-center\">Repository of the project on Github: <a href=\"https:\/\/github.com\/filippofinke\/cli-gpt\" title=\"\">cli-gpt<\/a>.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>cli-gpt is a command line tool that uses the capabilities of the GPT language model to convert natural language text into executable commands. By using cli-gpt, you can interact with your computer using plain English and accomplish tasks swiftly and effectively, without having to memorize complicated commands.<\/p>\n","protected":false},"author":1,"featured_media":270,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":""},"categories":[4],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/extendsclass.com\/blog\/wp-json\/wp\/v2\/posts\/259"}],"collection":[{"href":"https:\/\/extendsclass.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/extendsclass.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/extendsclass.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/extendsclass.com\/blog\/wp-json\/wp\/v2\/comments?post=259"}],"version-history":[{"count":7,"href":"https:\/\/extendsclass.com\/blog\/wp-json\/wp\/v2\/posts\/259\/revisions"}],"predecessor-version":[{"id":265,"href":"https:\/\/extendsclass.com\/blog\/wp-json\/wp\/v2\/posts\/259\/revisions\/265"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/extendsclass.com\/blog\/wp-json\/wp\/v2\/media\/270"}],"wp:attachment":[{"href":"https:\/\/extendsclass.com\/blog\/wp-json\/wp\/v2\/media?parent=259"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/extendsclass.com\/blog\/wp-json\/wp\/v2\/categories?post=259"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/extendsclass.com\/blog\/wp-json\/wp\/v2\/tags?post=259"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}