tools for downloading, saving, and exporting decks from moxfield
- Ensure
node
version >= 18 is installed - From this folder:
- Run
npm install
- Run
npm run build
- Copy the
.env.template
file in this folder to a new file:.env
- Set the value of the
MOXFIELD_ACCESS_TOKEN
with the method below:
a). While logged into moxfield, refresh with Chrome DevTools open and filter the Network
tab for refresh
. One row should appear.
b) Click the refresh
row & right-click the access_token
property.
c) Select Copy value
from the popup menu
d) Paste the copied value after MOXFIELD_ACCESS_TOKEN=
in the .env
file
e) The token is only valid for 15 minutes. When it expires, follow this process again to get another token value
f) Run Command Scripts
-
npm run saveDecks
: Downloads the decks in your root moxfield folder into.store/<userId>
u -
npm run saveDecks -- MYFOLDER
: Download the decks in moxfield folderMYFOLDER
into.store/<userId>/MYFOLDER
-
npm run savePublicDeck -- PUBLICID
: Download the deck with publicidPUBLICID
into.store/<userId>
-
npm run exportDecks -- <userId>
: write exports for store folder.store/<userId>
decks into.store/<userId>/exports
-
npm run exportDecks -- <userId> MYFOLDER
: as above, but for store folder.store/<userId>/MYFOLDER