Skip to content

Giphy CLI as docker container and global dotnet tool - get that url or markdown fast

Notifications You must be signed in to change notification settings

DavidDeSloovere/giphy-cli

Repository files navigation

giphy-cli

A CLI, published as Docker image and .NET Global tool, to search for a gif on Giphy and optionally open the link in the browser or copy the link or markdown to the clipboard.

Was featured in a presentation about .NET interactive notebooks at .NET Conf 2020: https://youtu.be/938jBJ-tK3c?t=1025

There is an example notebook included dotnet-interactive-notebook-sample.ipynb

Comments, ideas, bug reports and PR are welcome here.

.NET Core CI

Docker

You can run this CLI via Docker. This will output markdown and a link to giphy.com.

Published version on Docker Hub:

docker run --rm -it daviddesloovere/giphy-cli:latest "lolcats"

Latest on GitHub:

docker run --rm -it ghcr.io/daviddesloovere/giphy-cli:latest "lolcats"

.NET global tool

Head over to GiphyCli on NuGet or continue reading:

You'll need the .NET 6 runtime or newer.

Install the Giphy CLI with this command:

> dotnet tool install --global GiphyCli

Update the Giphy CLI with this command:

> dotnet tool update --global Giphycli

To search for a gif, simply use

> giphy lolcats

Usage

> giphy cheeseburger
> giphy "awesome cheeseburger"

Output markdown only, great for using in notebooks.

> giphy cheeseburger -m
> giphy cheeseburger --markdown

Giphy CLI now an includes interactive prompt.

Screenshot Giphy CLI

Have markdown copied to clipboard et voila.

will ferrell yes GIF

Features

About

Giphy CLI as docker container and global dotnet tool - get that url or markdown fast

Topics

Resources

Code of conduct

Stars

Watchers

Forks

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •