HatenaBlogToolsは、はてなブログの記事をエクスポートしたり投稿・編集を行うためのコマンドラインツール集です。 HatenaBlogToolsははてなブログAtomPub APIを用いています。
HatenaBlogTools is the command line tools for authoring and editting Hatena Blog.
This software is released under the MIT License, see LICENSE.txt.
Requires one of the following .NET runtimes to run binaries.
- .NET Runtime 6.0 or over
- .NET Core Runtime 3.1 or over
Also requires .NET SDK 6.0 to build and run from source codes.
see https://smdn.jp/works/tools/HatenaBlogTools/
The instructions of using 'Login' command is shown in below.
# change directory to 'Login' command
cd src/Smdn.HatenaBlogTools.Cli.Login/
# restore the build and library dependencies (This is an essential step for a first time build)
dotnet restore
# build the command
dotnet build -f net6.0
# run the command
dotnet run -f net6.0 -- --id <your-hatena-id> --blog-id <your.hatena.blog.domain> --api-key <your-api-key>
# show usage of the command
dotnet run -f net6.0 -- --help
'Login' command only attempts to login Hatena Blog, and does not edit anything even if the login is successful.