1.0.2 • Published 3 years ago

simple-kintone-customize-uploader v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

simple-kintone-customize-uploader

A kintone customize uploader without manifest.json

Usage example

Upload a customize file

npx simple-kintone-customize-uploader sample.js

Automatically upload a customize file

npx simple-kintone-customize-uploader sample.js -w

Automatically upload multiple customize files

npx simple-kintone-customize-uploader multiple sample.js,sample.css,sample.html -w

Download customize file

npx simple-kintone-customize-uploader download desktop/js/0

Remove customize file

npx simple-kintone-customize-uploader remove desktop/js/0

Show customize files list

npx simple-kintone-customize-uploader list

desktop-js
|-sample1.js
|-sample2.js

desktop-css
|-sample.css

mobile-js
|-sample.js

mobile-css
|-sample.css

Sub commands

sub commandparameterdescription
uploadfilePathsUpload customize files. Parameter is file paths. (comma separated string)
downloaddevice/contentType/indexDownload customize file. Parameter is index of customize file. (device: desktop, mobile, any. contentType: js, css, html. index: number)
removedevice/contentType/indexRemove customize file. Parameter is index of customize file. (device: desktop, mobile, any. contentType: js, css, html. index: number)
list-Show customize files list.

If you omit the subcommand, upload will be executed.

Options

optiondescriptioncorresponding subcommands
-b, --base-urlBase-url of your kintoneupload, download, remove, list
-u, --usernameLogin usernameupload, download, remove, list
-p, --passwordUser's passwordupload, download, remove, list
-o, --oauth-tokenOAuth access token (If you set a set of --username and --password, this value is not necessary.)upload, download, remove, list
-U, --basic-auth-usernameBasic Authentication usernameupload, download, remove, list
-P, --basic-auth-passwordBasic Authentication passwordupload, download, remove, list
-g, --guest-space-idGuest space idupload, download, remove, list
-a, --app-idApp idupload, download, remove, list
-d, --no-desktopDon't apply to desktopupload
-m, --no-mobileDon't apply to mobileupload
-w, --watchWatch the changes of customize files and re-runupload
-h, --helpdisplay help for commandupload, download, remove, list

Environment variables

environment variabledescription
KINTONE_BASE_URLBase-url of your kintone
KINTONE_USERNAMELogin username
KINTONE_PASSWORDUser's password
KINTONE_OAUTH_TOKENOAuth access token (If you set a set of KINTONE_BASE_URL and KINTONE_USERNAME, this value is not necessary.)
KINTONE_BASIC_AUTH_USERNAMEBasic Authentication username
KINTONE_BASIC_AUTH_PASSWORDBasic Authentication password