GiphyCli 2.2.0

.NET 6.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 Versions
.NET net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
2.2.0 60 8/30/2022
2.1.0 163 6/10/2022
2.0.0 1,281 12/22/2020
1.2.0 372 10/10/2020
1.1.0 1,387 9/6/2018
1.0.0 615 8/24/2018

Extra `-m` option to only output markdown.