rawnly / splash-cli

A simple, CLI to download Unsplash wallpapers. Nothing fancy — it just works.
http://splash-cli.app?ref=github
546 stars 28 forks source link
beautiful-photos beautiful-wallpapers change-wallpaper cli download-photos photography photos splash unsplash wallpaper wallpapers

Splash CLI v4

Go

Are you looking for the v3.x splash-cli? Check out the master branch

A new era for Splash CLI is coming! After many weeks thinking how to upgrade the project codebase I decided to completely rewrite the CLI from the ground in Go.

The idea is to replicate the original functionality to keep the new experience as close to the original as possible.

Why Go?

Feature List

Installation

Via Homebrew

brew tap rawnly/tap
brew install splash-cli

Via Go

go install github.com/rawnly/splash-cli@latest

Be sure to set up your environment before running the command. Required environment variables are:

You can get credentials on the Unsplash Developer Portal.

Also remember that the BIN name will be splash-cli and not splash

Manually

Build Locally

To build the project locally you can use the following command:

    goreleaser --snapshot --rm-dist

    # Or

    make build # this will only build for the current platform

Note If you have an .env file in your project root make will automatically inject values inside script commands.

Be sure to set up your environment before running the command. Required environment variables are:

You can get credentials on the Unsplash Developer Portal.