| batch |
|
|---|
The easiest way to install mdsync on macOS:
brew install chasemp/tap/mdsyncThis automatically installs mdsync and all required dependencies.
brew upgrade mdsyncbrew uninstall mdsyncInstall mdsync as a command-line tool that you can run from anywhere:
# From the project directory
pip install -e .The -e flag installs in "editable" mode, so any changes you make to the code will be reflected immediately.
After installation, you can use the mdsync command from anywhere:
mdsync --help
mdsync file.md --create -u | pbcopypip uninstall mdsyncYou can also install directly from GitHub:
pip install git+https://github.com/chasemp/mdsync.gitIf you prefer not to install, you can run the script directly:
./mdsync.py --helpAfter installation, verify it works:
mdsync --helpYou should see the help message with all available options.
Regardless of installation method, you still need to set up Google API credentials:
- Follow the instructions in SETUP_GUIDE.md
- Place your
credentials.jsonfile in:- If installed:
~/.config/mdsync/credentials.json(or current directory) - If running directly: Same directory as
mdsync.py
- If installed:
The script will look for credentials in the following order:
- Current directory
~/.config/mdsync/~/.mdsync/
If you want to keep dependencies isolated:
# Create virtual environment
python3 -m venv venv
# Activate it
source venv/bin/activate # On macOS/Linux
# or
venv\Scripts\activate # On Windows
# Install
pip install -e .
# Use mdsync
mdsync --helpIf mdsync command is not found after installation:
- Make sure pip's bin directory is in your PATH
- Try reinstalling:
pip uninstall mdsync && pip install -e . - Check where it was installed:
pip show mdsync
If you get permission errors:
# Use --user flag
pip install --user -e .