md_picture_migrate_cli

Last updated:

0 purchases

md_picture_migrate_cli Image
md_picture_migrate_cli Images
Add to Cart

Description:

md picture migrate cli

A tools for migrate markdown image #
Before migrate, you must backup your markdown files.
Before migrate, you must backup your markdown files.
Before migrate, you must backup your markdown files.
Install #
For Releases #
Download the binary file from release
And unzip the tar.gz file.
If the file is not executable, you can use the following command to make it executable.
chmod +x mdm.exe
mv mdm.exe /usr/local/bin/mdm # or other path
copied to clipboard
For dart pub #
dart pub global activate md_picture_migrate_cli
copied to clipboard
Config #
Azure git #
mdm config --azure-endpoint "https://dev.azure.com/user/images/_git/MirrorImages" --azure-token <person-token> --azure-user <user-name>
copied to clipboard
Github #
mdm config --github-endpoint "https://github.com/CaiJingLong/md_picture_migrate_cli" --github-token <token> --github-user <username>
copied to clipboard
Usage #
Scan #
Scan and list all pictures.

Usage: md_picture_migrate_cli scan [arguments]
-d, --directory The directory to scan.
-i, --include-prefix The prefix of the picture url to include.
(defaults to "http://", "https://")
-x, --exclude-prefix The prefix of the picture url to exclude.
-e, --markdown-extensions The file extensions to include.
(defaults to ".md", ".markdown")
-h, --help Print this usage information.

Run "mdm help" to see global options.
copied to clipboard
Will create need replace image url list.
mdm scan -d ~/blogs/content -x https://dev.azure.com -x https://cdn.jsdelivr.net
copied to clipboard
Migrate #
mdm migrate -d ~/blogs/content
copied to clipboard
help #
mdm -h # or mdm --help
copied to clipboard
LICENSE #
MIT

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.