GiphyCli 2.2.0

dotnet tool install --global GiphyCli --version 2.2.0                
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local GiphyCli --version 2.2.0                
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=GiphyCli&version=2.2.0                
nuke :add-package GiphyCli --version 2.2.0                

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.

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

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

  • Interactive prompt: Open giphy.com URL, copy .gif deeplink or copy markdown to clipboard
  • Preview image in iTerm2 (PR by https://github.com/slang25)
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
2.2.0 2,409 8/30/2022
2.1.0 1,652 6/10/2022
2.0.0 2,805 12/22/2020
1.2.0 1,778 10/10/2020
1.1.0 2,849 9/6/2018
1.0.0 1,933 8/24/2018

Extra `-m` option to only output markdown.