秘密鍵からkintoneプラグインのプラグインIDを生成するツールです。
概要
kintone-plugin-packer で、ppk オプションを指定しないと、プラグインID の名称で秘密鍵ファイルが作成されますが、規定で private.ppk の名称を指定しています。
そのため、kintone 環境にプラグインをアップロードするまでプラグインIDがわかりません。
そこで、作成された秘密鍵からプラグインID取得するスクリプトを作成しました。
インストール
npm install -g @rex0220/kintone-get-pluginid
使用方法
- コンソールに表示
rex0220-get-pluginid -i private.ppk
- ファイル出力
rex0220-get-pluginid -i private.ppk -o pluginId.txt
使用例
> rex0220-get-pluginid -i private.ppk
pluginId: fjnoboohpdkgkiajpogkgfhdlipoddop
> rex0220-get-pluginid -h
オプション:
--version バージョンを表示 [真偽]
-i, --input Path to the private key file [文字列] [必須]
-o, --out Output file path for the pluginId [文字列]
-h, --help ヘルプを表示 [真偽]
License
This project is licensed under the MIT License - see the LICENSE file for details.
This project includes code from the following MIT-licensed projects:
kintone/js-sdk (https://github.com/kintone/js-sdk/tree/main/packages/plugin-packer)