Git Product home page Git Product logo

habitica-cli's Introduction

Warning This project is no longer maintained.

habitica-cli

An immersive command line interface for Habitica which features built-in emoji support, command history and tab completion!

Demo

Demo

Introduction

Built on top of vorpal, this Habitica CLI is an interactive one that provides an array of functionality including the following:

  • Built-in emoji support ๐Ÿ”ฅโšก
  • Listing, scoring, creating, deleting habits, tasks and todos
  • Scoring habits, tasks and todos
  • Creating/Deleting habits, tasks and todos
  • Accessing the rewards shop and buying gear/rewards
  • Casting spells
  • Fighting bosses
  • Showing quest progress
  • Command history
  • Tab completion
  • Short aliases for power users ๐Ÿ”ฅ๐Ÿ”ฅ

This project was summoned with โค๏ธ by @charlespwd.

Getting started

Quick start

Install habitica-cli on your computer:

npm install -g habitica-cli

Create a file ~/.config/habitica/auth.cfg (you may need to create the folder(s) and file) with the following contents:

[Habitica]
login = USER_ID
password = API_KEY

Replace USER_ID and API_KEY with the corresponding tokens from your Habitica settings>API page.

Once that's done, all you have to do is start habitica from the command line:

$ habitica

Great! You're in the CLI! You can now list your tasks:

habitica $ habits
habitica $ dailies
habitica $ todos

You can also check them off:

habitica $ habits score 1 2 3
habitica $ habits score --down 1 2 3
habitica $ dailies complete 1 2 3
habitica $ todos complete 1 2 3

Or create new ones!

habitica $ new habit
habitica $ new todo
habitica $ new daily

In fact, most of the information you need on how to use any of those commands is available through the very VERY helpful help command. (We're not talking Windows Help here. We're talking about a no fluff list of everything you can do and their multiple aliases).

habitica $ help

  Commands:

    help [command...]                    Provides help for a given command.
    exit                                 Exits application.
    status                               List your stats.
    habits list                          List your habits.
    /* ... truncated for brevity ... */

habitica $ help todos list

  Usage: todos list [options]

  Alias: todos | t

  List your todos.

  Options:

    --help                 output usage information
    -f, --filter [filter]  List filter type (all | dated | completed).

User Guide

For more in-depth examples of every single commands, you can check out the Wiki! Although it's a work in progress.

Contributing

Help and PR's are extremely welcome :)

License

MIT.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.