データソース用 CLI コマンド
DataGrip には、データソースを管理するためのコマンドラインインターフェース(CLI)コマンドが用意されています。 コマンドラインランチャーのパスは次のとおりです:
<installation_directory>\bin\datagrip.exe
/Applications/<DataGrip_version>.app/Contents/MacOS/datagrip
<installation_directory>/bin/datagrip
これらのコマンドを使って、データソースの一覧表示、作成、編集、削除やドライバーのアーティファクトの管理ができます。
- 構文
ランチャーディレクトリから
.\datagrip.exe dataSources <command> [options] [arguments]./datagrip dataSources <command> [options] [arguments]./datagrip.sh dataSources <command> [options] [arguments]他の任意のディレクトリから
datagrip.exe dataSources <command> [options] [arguments]datagrip dataSources <command> [options] [arguments]datagrip.sh dataSources <command> [options] [arguments]
データソースのコマンドには、 list や 管理 があります。
デフォルトでは、コマンドは標準入力(stdin )から入力を読み取り、標準出力(stdout )に出力を書き込みます。 これにより、これらをシェルパイプラインに統合できます。 例:
<actions_prepare_script> | datagrip.exe dataSources manage -p <project_path> | <results_handling_script>
<actions_prepare_script> | datagrip dataSources manage -p <project_path> | <results_handling_script>
<actions_prepare_script> | datagrip.sh dataSources manage -p <project_path> | <results_handling_script>
2026 年 7 月 14 日