Skip to main content

customize init

The customize init command allows you to initialize a manifest file for JavaScript/CSS customization.

This feature is under early development.

Example

cli-kintone customize init --output customize-manifest.json

Options

See Options page for common options.

OptionRequiredDescription
--outputOutput path for the manifest file
Default to customize-manifest.json
--yesSkip confirmation

Interactive Prompts

When you run customize init, you will be prompted to select:

  1. Scope - Customization scope (ALL/ADMIN/NONE)

If --yes is specified, the default value "ALL" is used.

Manifest File

The manifest file is a JSON file with the following structure:

PropertyTypeDescription
scope"ALL" | "ADMIN" | "NONE"Customization scope
desktop.jsstring[]JS files for desktop view
desktop.cssstring[]CSS files for desktop view
mobile.jsstring[]JS files for mobile view
mobile.cssstring[]CSS files for mobile view

Example

{
"scope": "ALL",
"desktop": {
"js": [
"https://js.cybozu.com/jquery/3.3.1/jquery.min.js",
"desktop/js/app.js"
],
"css": ["desktop/css/style.css"]
},
"mobile": {
"js": [],
"css": []
}
}