Verify that you have the latest version of rust installed
Install rust or update rust to the latest version with rustup update
If installing rust from scratch, you may need to run . $HOME/.cargo/env
Install the cli tool with cargo install --git https://github.com/goauthentik/authentik --bin docsmg
Steps to use
Generate a migratefile with docsmg generate >> migratefile
Find the files you want to move in migratefile and insert the path you want to move them to after the arrow; ex path/to/move/from/file.md -> path/to/move/to/file.md Note: make sure to put spaces on either side of the arrow or that line won't be recognized
Once you have entered all the paths you want to move, migrate the files with docsmg migrate
To revert the migration, use docsmg unmigrate; Note: DO NOT edit the migrate file inbetween steps 3 and 4
Repeat steps 2-4 until you are satified with the result