Skip to content
This repository has been archived by the owner on Sep 24, 2019. It is now read-only.
/ YOURLS-CLI Public archive

YOURLS Command Line Interface. Work in progress.

Notifications You must be signed in to change notification settings

YOURLS/YOURLS-CLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YOURLS-CLI

A modest CLI (Command Line Interface) client for YOURLS. A work very much in progress.

Installation

  • Install required dependencies using Composer
  • The script to run is src/bin/yourls. Symlink to it from a convenient place (eg ln -s /path/to/yourls-cli/src/bin/yourls ~/bin/yourls) or add it to your PATH
  • Run yourls --version to check if everything is OK

There's nothing much for the moment

It's merely a POC for now, pretty much inspired by the awesome wp-cli.

The goal is probably to have something functional for YOURLS 2.0 --no ETA-- with an extensive set of functions to install, update or use YOURLS via the command line.

Don't you think something like the following would be neat :

$ yourls core download --latest
$ yourls core config --url=http://sho.rt --user=joe --password=MyP4ssW0rd --dbname=yourls (...)
$ yourls core install 
$ yourls shorturl add --url=http://longurl.com/ --keyword=omg --title="this is a title"
$ yourls shorturl edit --keyword=omg --new_keyword=wtf
* yourls shorturl delete --keyword=wtf

Stay tuned!

About

YOURLS Command Line Interface. Work in progress.

Topics

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages