kintone-data-loader
A kintone record importer and exporter.
THIS IS EXPERIMENTAL. DON'T USE THIS FOR PRODUCTION.
Installation
$ npm install -g @kintone/data-loader
You can use also npx instead of installing @kintone/data-loader as global.
Usage
import
import
command allows you to import record data into a specified kintone app.
$ kintone-data-loader \
import \
--base-url https://${yourDomain} \
--username ${yourLoginName} \
--password ${yourPassword} \
--app ${kintoneAppId} \
--file-path ${filepath}
Options
Options:
--base-url Kintone Base Url [default: process.env.KINTONE_BASE_URL]
--username, -u Kintone Username [default: process.env.KINTONE_USERNAME]
--password, -p Kintone Password [default: process.env.KINTONE_PASSWORD]
--api-token App's API token [default: process.env.KINTONE_API_TOKEN]
--basic-auth-username Kintone Basic Auth Username [default: process.env.KINTONE_BASIC_AUTH_USERNAME]
--basic-auth-password Kintone Basic Auth Password [default: process.env.KINTONE_BASIC_AUTH_PASSWORD]
--app The ID of the app
--guest-space-id The ID of guest space [default: process.env.KINTONE_GUEST_SPACE_ID]
--file-path File path
--pfx-file-path The path to client certificate file
--pfx-file-password The password of client certificate file
export
export
command allows you to export record data from a specified kintone app.
$ kintone-data-loader \
export \
--base-url https://${yourDomain} \
--username ${yourLoginName} \
--password ${yourPassword} \
--app ${kintoneAppId} \
> ${filepath}
Options
Options:
--base-url Kintone Base Url [default: process.env.KINTONE_BASE_URL]
--username, -u Kintone Username [default: process.env.KINTONE_USERNAME]
--password, -p Kintone Password [default: process.env.KINTONE_PASSWORD]
--api-token App's API token [default: process.env.KINTONE_API_TOKEN]
--basic-auth-username Kintone Basic Auth Username [default: process.env.KINTONE_BASIC_AUTH_USERNAME]
--basic-auth-password Kintone Basic Auth Password [default: process.env.KINTONE_BASIC_AUTH_PASSWORD]
--app The ID of the app
--guest-space-id The ID of guest space [default: process.env.KINTONE_GUEST_SPACE_ID]
--attachment-dir Attachment file directory [string]
--format Output format [default: "json"]
--query, -q The query string
--pfx-file-path The path to client certificate file
--pfx-file-password The password of client certificate file
LICENSE