Files
doxa/doxa-cli/README.md
2026-08-07 09:48:59 +02:00

3.5 KiB

DOXA-CLI

DOXA-CLI is a command-line tool for managing your notes. It allows you to add, view, edit, delete, export notes, as well as filter and search them. The application is written in Go and offers a modern Terminal User Interface (TUI).

Go 1.22+ MIT license Tested on Linux

freeBSD

Prerequisites

Before installing DOXA-CLI, it is assumed that you have **Go installed on your system. The recommended version is 1.20 or higher. You can download Go from the official website: https://go.dev/doc/install

dashboard

Installation

To install DOXA-CLI on your system, follow these steps:

  1. Clone the repository: Get the latest version of the code from Git:
git clone https://codeberg.org/Kankys/doxa-cli.git
cd doxa-cli # Go to the project directory
  1. Run the installation script:
chmod +x install.sh
./install.sh

The installation script will do the following:

  • Check if you have Go installed.
  • Download all necessary Go modules and project dependencies.
  • Compile the application for your operating system.
  • Install the doxa-cli executable file in the $HOME/.local/bin/ directory.
  • Creates the ~/doxa-cli configuration directory and the doxa_notes.json file if they do not exist.
  1. Add to PATH (if necessary): After successful installation, you should be able to run doxa-cli from another location in the terminal. If the doxa-cli command is not recognized, it is assumed that the $HOME/.local/bin directory is not in your PATH system variable.

You can fix this by adding the following line to your shell profile (e.g. ~/.bashrc for Bash, ~/.zshrc for Zsh, or ~/.profile for other systems):

export PATH=$PATH:$HOME/.local/bin

After editing the profile file, restart the terminal or load the profile (e.g. source ~/.bashrc).

Post-installation cleanup

Once the installation is successfully completed, the source files in the project directory are no longer needed. You can delete the entire folder with the cloned repository:

rm -rf doxa-cli

Usage

After successful installation, you can run the application from another directory by typing:

doxa-cli

For detailed control in the TUI interface, follow the help displayed directly in the application.

Backup

To backup your notes, you must save the doxa_notes.json file from the ~/.doxa-cli configuration directory anywhere in your backup directory.

Note: The doxa_notes.json file contains all your notes and it is important to save it regularly.

Uninstall

To uninstall DOXA-CLI, follow these steps:

  1. Remove the executable: Remove the binary from your PATH:
rm ~/.local/bin/doxa-cli

(If you installed the binary in a different directory, use its path.)

  1. Remove the configuration directory (optional): If you want to remove all application data and configuration, the configuration directory:
rm -rf ~/.doxa-cli

WARNING: This step will delete ALL your notes. If you want to keep your data, skip this step.