A command-line interface for managing your Mochi Cards flashcards.
- Clone the repository:
git clone https://github.com/kirpnlbr/mochi-cli.git
cd mochi-cli- Install the package:
pip install -e .- Set up your Mochi API key:
export MOCHI_API_KEY=your_api_key_hereList all decks:
mochi deck listCreate a new deck:
mochi deck new "My Deck Name"Add a new card (interactive):
mochi card addThis will:
- Show you a list of your decks to choose from
- Prompt for the front text
- Prompt for the back text
List cards in a deck:
mochi card list- Create a virtual environment:
python3 -m venv .venv
source .venv/bin/activate # On Windows, use `.venv\Scripts\activate`- Install development dependencies:
pip install -r requirements.txt- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'feat: add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License.