0
0

kintone 秘密鍵からプラグインID取得

Last updated at Posted at 2024-07-28

秘密鍵から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)

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0