ck pack extension

Installs a CanKing service extension.

Synopsis

ck pack extension
    <EXTENSION_FILE_OR_FOLDER>
    [--url <String>]
    [--api-key <String>]
    [--language <en|zh|ja>]
    [-o|--out <OUTPUT_DIR>]
    [-n|--name <EXTENSION_NAME>]
    [-d|--display-name <EXTENSION_DISPLAY_NAME>]
    [-desc|--description <EXTENSION_DESCRIPTION>]
    [-v|--version <EXTENSION_VERSION>]
    [-a|--author <EXTENSION_AUTHOR>]
    [-t|--type <WorkspaceView|DataProcessor|DataTarget>]
    [-c|--default-config <EXTENSION_DEFAULT_CONFIG>]
    [-r|--readme <README_FILE>]
    [--release-notes|-cl|--changelog <CHANGELOG_FILE>]
    [--eula|-lic|--license <LICENSE_FILE>]
    [--help-doc|-ug|--userguide <USERGUIDE_FILE>]

ck pack extension -h|--help

Arguments

  • EXTENSION_FILE_OR_FOLDER
    The absolute path to a WebAssembly file, .wasm-file, containing a service extension, or a Node package file, .tgz-file, containing a GUI extension. Alternatively, the absolute path to a folder containing exactly one such file, in which case every other file in the folder (including subfolders) is also packed into the bundle.

Options

  • --url
    Specify the URL of the CanKingService if connecting to a remote host. Falls back to the CANKING_REMOTE_URL environment variable. If not specified, the command will connect to a local CanKingService instance.

  • --api-key
    API key required when connecting to a remote CanKingService instance. Falls back to the CANKING_REMOTE_API_KEY environment variable.

  • --language
    Specify the preferred language to be used in all output strings. Default value is English (en). Supported languages are English (en), Chinese (zh), and Japanese (ja).

  • -o|--out
    The output directory for the packaged extension.

  • -n|--name
    The name of the extension to be packed. If not given, the name will be extracted from the extension file.

  • -d|--display-name
    The display name of the extension to be packed. If not given, the display name will be extracted from the extension file.

  • -desc|--description
    The description of the extension to be packed. If not given, the description will be extracted from the extension file.

  • -v|--version
    The version of the extension to be packed. If not given, the version will be extracted from the extension file.

  • -a|--author
    The author of the extension to be packed. If not given, the author will be extracted from the extension file.

  • -t|--type
    The type of the extension to be packed. If not given, it will be extracted from the extension file.

  • -c|--default-config
    The default configuration for the extension to be packed, in JSON format. If not given, the default configuration will be extracted from the extension file.

  • -r|--readme
    Path to a readme file to include in the packaged extension.

  • --release-notes|-cl|--changelog
    Path to a release notes/changelog file to include in the packaged extension.

  • --eula|-lic|--license
    Path to a license/EULA file to include in the packaged extension.

  • --help-doc|-ug|--userguide
    Path to a help/user guide file to include in the packaged extension.

Examples

ck pack extension path/to/extensionfile.wasm
ck pack extension path/to/extensionfile.wasm --out path/to/extensionpackage.ckext
ck pack extension path/to/extensionfile.wasm --readme README.md --changelog CHANGELOG.md --license LICENSE.txt --userguide guide.pdf
ck pack extension path/to/extensionfolder