---
title: "💭 Command Line | gitignore.io / docs"
description: "!https://docs.gitignore.io/install/command-line"
date: 2025-05-29
published: true
tags:
  - linux
  - thought
template: link
---


<div class="embed-card embed-card-external">
  <a href="https://docs.gitignore.io/install/command-line" class="embed-card-link" target="_blank" rel="noopener noreferrer">
    <div class="embed-card-image">
      <img src="https://docs.gitignore.io/~gitbook/ogimage/-LIvvKfMD3PkcDQCppzH" alt="Command Line | gitignore.io / docs — To run gitignore.io from your command line you need an active internet connection and an environment function. You need to add a function to your environment that lets you access the gitignore.io API." loading="lazy">
    </div>
    <div class="embed-card-content">
      <div class="embed-card-title">Command Line | gitignore.io / docs</div>
      <div class="embed-card-description">To run gitignore.io from your command line you need an active internet connection and an environment function. You need to add a function to your environment that lets you access the gitignore.io API.</div>
      <div class="embed-card-meta">docs.gitignore.io</div>
    </div>
  </a>
</div>


This is a very interesting cli, its so simple.  I stumbled accross the `gi` command awhile back and was like pfft, I dont want to install something for that.  Didn't even realize that you **don't** install it, its just http.  Their _install_ instructions lead you to putting a curl funtion in your bashrc.  

``` bash
function gi() { curl -sLw \"\\\n\" https://www.toptal.com/developers/gitignore/api/\$@ ;}
```

This now has me wondering "What else can build like this?"

!!! note

    This post is a <a href="/thoughts/" class="wikilink" data-title="Thoughts" data-description="These are generally my thoughts on a web page or some sort of url, except a rare few don&#39;t have a link. These are dual published off of my..." data-date="2024-04-01">thought</a>. It's a short note that I make
    about someone else's content online <a href="/tags/thoughts/" class="hashtag-tag" data-tag="thoughts" data-count=2 data-reading-time=3 data-reading-time-text="3 minutes">#thoughts</a>
