
Security News
Googleβs OSV Fix Just Added 500+ New Advisories β All Thanks to One Small Policy Change
A data handling bug in OSV.dev caused disputed CVEs to disappear from vulnerability feeds until a recent fix restored over 500 advisories.
@public-ui/kolibri-cli
Advanced tools
Command line utilities to help maintain and migrate KoliBri projects.
The KoliBri
CLI-Tools are a collection of tools to support the development with KoliBri
components.
They also help migrating projects when new components or design tokens are introduced.
You can install the KoliBri
CLI-Tools with npm
, pnpm
or yarn
.
npm i -g @public-ui/kolibri-cli
pnpm i -g @public-ui/kolibri-cli
yarn add -g @public-ui/kolibri-cli
Important: Install exactly the CLI version you want to upgrade to. The migration tool compares your locally installed
@public-ui/components
version with the CLI version to decide which migration tasks must run and in which order.
The KoliBri
CLI is intended to be executed in your project root directory. Use the kolibri
command to start the CLI.
kolibri --help
,--. ,--. ,--. ,--. ,-----. ,--.
| .' / ,---. | | `--' | |) /_ ,--.--. `--'
| . ' | .-. | | | ,--. | .-. \ | .--' ,--.
| |\ \ | '-' | | | | | | '--' / | | | |
`--' `--Β΄ `---Β΄ `--' `--' `------Β΄ `--' `--'
πΉ The accessible HTML-Standard | π https://public-ui.github.io
Usage: kolibri [options] [command]
CLI for executing some helpful commands for KoliBri projects.
Options:
-V, --version output the version number
-h, --help display help for command
Commands:
info Shows the system and KoliBri package information
migrate [options] <string> This command migrates KoliBri code to the current version.
help [command] display help for command
With the info
command you can show the current system and KoliBri package information.
This command is mainly needed for our bug issue templates. If errors occur in our packages, we would like to ask you to create an issue under the following link: Submit report
With the migrate
command you can migrate your project to the latest version of KoliBri
.
Actually the following migration tasks from version 1 to version 2 are available:
content
) βfooter
, header
) βinnerText
to property β_label={false}
) β_label=""
to activate the expert slot (#5396) β.vscode/settings.json
add IntelliSense for HTML β.gitignore
exclude .kolibri.migrate.json
β.tsconfig
add @public-ui/components
to types
array βprettier@^3
) β_icon-align
with a refactoring tasks (#5397) β°_iconOnly
in TSX is not stable (#5404) β°@public-ui/core
package (#???) β°The CLI also supports migrating KoliBri themes alongside component updates to ensure theme packages remain synchronized with breaking changes in the component library.
Synchronies breaking changes in components with the styling of each theme package so that upgrades require minimal manual work.
typed-bem
.packages/themes
and keeps its SCSS sources in src/
..scss
files.Central BEM schemas
SCSS migration tasks The CLI runner is extended with task types operating on SCSS. They behave like the existing property tasks and are idempotent.
RenameBlockTask
β rename a block selector everywhere in a theme.RenameElementTask
β rename an element within a block.RenameModifierTask
β rename or replace a modifier.AddSelectorTask
and RemoveSelectorTask
β insert or remove entire rule sets.UpdateTokenTask
β adjust variable names or values when tokens change.MoveRulesTask
β move declarations from one selector to another if the DOM structure changes.Tasks scan the SCSS with regular expressions or an AST parser. If a pattern is missing the task logs a warning instead of failing.
Safe execution
--ignore-uncommitted-changes
is specified.pnpm i -g @public-ui/kolibri-cli@2 # install the CLI matching the next version
kolibri migrate path/to/project # run all tasks for the upgrade
pnpm format # format changed files
git diff # review results and commit
Using these tasks, theme packages remain aligned with component updates. Future breaking changes can be scripted and applied via the CLI so that projects can upgrade in a controlled and reproducible way.
git history
and the installed version
of KoliBri
. Now it loads all available migration tasks.package.json
will be updated with the new version of KoliBri
and execute the npm install
command.Note: You can reset the migration with
git reset --hard HEAD~1
or by discarding the affected files.
kolibri migrate --help
kolibri migrate <path>
Option | Description | Type | Default |
---|---|---|---|
--format | Try to format the modified files with prettier | boolean | true |
--overwrite-current-version | Migrate from this current version instead of the installed version | version | current installed version |
--overwrite-target-version | Migrate to this target version instead of the version of the CLI | version | version of the CLI |
--ignore-greater-version | Allows execution with greater versions | boolean | false |
--ignore-uncommitted-changes | Allows execution with uncommitted changes | boolean | false |
--remove-mode | Prefix property name or delete property | delete | prefix | prefix |
You can configure the migration with the .kolibri.config.json
file in your project root folder. This file will be created automatically after the first migration.
Troubleshooting: If you have problems with migration, you can exclude some tasks with the configuration by setting the false
flag (see kol-select
).
{
"migrate": {
"tasks": {
".gitignore-add-rule-.kolibri.migrate.json": true,
".npmrc-add-rule-save-exact=true": true,
"vscode-settings-reconfigure-html.customData": true,
"kol-abbr-rename-property-_align-to-_tooltip-align": true,
"kol-abbr-rename-property-_title-to-_label": true,
"kol-accordion-rename-property-_heading-to-_label": true,
"kol-alert-rename-property-_heading-to-_label": true,
"kol-badge-rename-property-_icon-only-to-_hide-label": true,
"kol-badge-remove-property-_hide-label": true,
"kol-badge-remove-property-_icon-only": true,
"kol-badge-rename-property-_icon-to-_icons": true,
"kol-breadcrumb-rename-property-_aria-label-to-_label": true,
"kol-button-link-remove-property-_aria-current": true,
"kol-button-link-remove-property-_aria-label": true,
"kol-button-link-rename-property-_icon-only-to-_hide-label": true,
"kol-button-link-rename-property-_icon-to-_icons": true,
"kol-button-remove-property-_aria-current": true,
"kol-button-remove-property-_aria-label": true,
"kol-button-remove-property-_icon-align": true,
"kol-button-rename-property-_icon-only-to-_hide-label": true,
"kol-button-rename-property-_icon-to-_icons": true,
"kol-card-rename-property-_heading-to-_label": true,
"kol-card-rename-property-_headline-to-_label": true,
"kol-details-rename-property-_summary-to-_label": true,
"kol-icon-remove-property-_part": true,
"kol-icon-rename-property-_aria-label-to-_label": true,
"kol-icon-rename-property-_icon-to-_icons": true,
"kol-input-checkbox-rename-property-_icon-to-_icons": true,
"kol-checkbox-rename-property-_type-to-_variant": true,
"kol-color-rename-property-_icon-to-_icons": true,
"kol-color-rename-property-_list-to-_suggestions": true,
"kol-input-date-rename-property-_icon-to-_icons": true,
"kol-date-rename-property-_list-to-_suggestions": true,
"kol-input-email-rename-property-_icon-to-_icons": true,
"kol-input-email-rename-property-_list-to-_suggestions": true,
"kol-input-email-remove-property-_size": true,
"kol-input-file-rename-property-_icon-to-_icons": true,
"kol-input-number-rename-property-_icon-to-_icons": true,
"kol-input-number-rename-property-_list-to-_suggestions": true,
"kol-input-number-remove-property-_type": true,
"kol-input-password-rename-property-_icon-to-_icons": true,
"kol-input-password-remove-property-_size": true,
"kol-input-radio-rename-property-_list-to-_options": true,
"kol-input-range-rename-property-_icon-to-_icons": true,
"kol-input-range-rename-property-_list-to-_suggestions": true,
"kol-input-rename-property-_icon-to-_icons": true,
"kol-input-text-rename-property-_icon-to-_icons": true,
"kol-input-text-rename-property-_list-to-_suggestions": true,
"kol-input-text-remove-property-_size": true,
"kol-link-button-remove-property-_aria-controls": true,
"kol-link-button-remove-property-_aria-expanded": true,
"kol-link-button-remove-property-_aria-label": true,
"kol-link-button-remove-property-_aria-selected": true,
"kol-link-button-remove-property-_disabled": true,
"kol-link-button-rename-property-_aria-current-to-_listen-aria-current": true,
"kol-link-button-rename-property-_icon-only-to-_hide-label": true,
"kol-link-button-rename-property-_icon-to-_icons": true,
"kol-link-group-rename-property-_heading-to-_label": true,
"kol-link-group-remove-property-_heading": true,
"kol-link-group-remove-property-_ordered": true,
"kol-link-group-rename-property-_aria-label-to-_label": true,
"kol-link-remove-property-_aria-controls": true,
"kol-link-remove-property-_aria-expanded": true,
"kol-link-remove-property-_aria-label": true,
"kol-link-remove-property-_aria-selected": true,
"kol-link-remove-property-_disabled": true,
"kol-link-remove-property-_icon-align": true,
"kol-link-remove-property-_selector": true,
"kol-link-remove-property-_stealth": true,
"kol-link-remove-property-_use-case": true,
"kol-link-rename-property-_aria-current-to-_listen-aria-current": true,
"kol-link-rename-property-_icon-only-to-_hide-label": true,
"kol-link-rename-property-_icon-to-_icons": true,
"kol-logo-rename-property-_abbr-to-_org": true,
"kol-modal-rename-property-_aria-label-to-_label": true,
"kol-nav-remove-property-_variant": true,
"kol-nav-rename-property-_aria-label-to-_label": true,
"kol-nav-rename-property-_compact-to-_hide-label": true,
"kol-pagination-rename-property-_count-to-_total": true,
"kol-pagination-rename-property-_total-to-_max": true,
"kol-progress-rename-property-_type-to-_variant": true,
"kol-quote-rename-property-_caption-to-_label": true,
"kol-select-rename-property-_height-to-_rows": true,
"kol-select-rename-property-_icon-to-_icons": true,
"kol-select-rename-property-_list-to-_options": true,
"kol-select-remove-property-_size": true,
"kol-skip-nav-rename-property-_aria-label-to-_label": true,
"kol-span-rename-property-_icon-only-to-_hide-label": true,
"kol-span-rename-property-_icon-to-_icons": true,
"kol-split-button-remove-property-_aria-label": true,
"kol-split-button-remove-property-_access-key": true,
"kol-split-button-remove-property-_show-dropdown": true,
"kol-split-button-remove-property-_show": true,
"kol-symbol-rename-property-_aria-label-to-_label": true,
"kol-table-rename-property-_caption-to-_label": true,
"kol-tabs-rename-property-_aria-label-to-_label": true,
"kol-tabs-rename-property-_icon-to-_icons": true,
"kol-tabs-rename-property-_tab-align-to-_align": true,
"kol-tabs-rename-property-_icon-only-to-_hide-label": true,
"kol-toast-remove-property-_show-duration": true,
"kol-toast-rename-property-_heading-to-_label": true,
"kol-version-rename-property-_version-to-_label": true,
"kol-heading-move-innerText-to-property-_label": true,
"kol-input-checkbox-move-innerText-to-property-_label": true,
"kol-input-color-move-innerText-to-property-_label": true,
"kol-input-date-move-innerText-to-property-_label": true,
"kol-input-email-move-innerText-to-property-_label": true,
"kol-input-file-move-innerText-to-property-_label": true,
"kol-input-number-move-innerText-to-property-_label": true,
"kol-input-password-move-innerText-to-property-_label": true,
"kol-input-radio-move-innerText-to-property-_label": true,
"kol-input-range-move-innerText-to-property-_label": true,
"kol-input-text-move-innerText-to-property-_label": true,
"kol-link-move-innerText-to-property-_label": true,
"kol-select-move-innerText-to-property-_label": true,
"kol-textarea-move-innerText-to-property-_label": true,
"kol-accordion-mark-removed-slot-header": true,
"kol-card-mark-removed-slot-footer": true,
"kol-card-mark-removed-slot-header": true,
"kol-accordion-rename-slot-content-to-": true,
"kol-card-rename-slot-content-to-": true,
"refactor-property-label-replace-false": true,
"kol-card-remove-property-_has-footer": true,
"kol-link-group-remove-property-_level": true,
"remove--cpy-cli,rimraf": true,
"add--cpy-cli,rimraf": true,
"package.json-reconfigure-scripts.prepare": true,
"remove-public/assets/codicons": true,
"exec-npx cpy \"node_modules/@public-ui/components/assets/**/*\" \"undefined/assets\" --dot": true,
"kol-button-link-remove-property-_access-key": true,
"kol-button-remove-property-_access-key": true,
"kol-nav-remove-property-_has-compact-button": true
}
}
}
If the migration failed, you can reset the migration with git reset --hard HEAD~1
.
Use the configuration (.kolibri.config.json
) to exclude some tasks.
If your project is already on a newer version of KoliBri, but you want to repeat the migration from a previous version, you can use this --overwrite-current-version
option. It overwrites the offset version from which the migration originally starts, instead of using the installed version.
If there are multiple obsolete properties that have been migrated to just one new property, the new property may appear multiple times in the tag. You can then decide which variant to use and remove all other variants accordingly.
Maybe it can help to prepare your code in the tricky places for migration.
Please give us feedback, if you have problems with the migration: GitHub Issues
You have always the possibility of a dry run. Because before the migration will be executed, you need a clean git history of you project.
After the migration you can check the result with git status
and git diff
.
Is anything wrong, you can reset the migration with git reset --hard HEAD~1
or by discarding the affected files.
FAQs
CLI for executing some helpful commands for KoliBri projects.
The npm package @public-ui/kolibri-cli receives a total of 49 weekly downloads. As such, @public-ui/kolibri-cli popularity was classified as not popular.
We found that @public-ui/kolibri-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Β It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A data handling bug in OSV.dev caused disputed CVEs to disappear from vulnerability feeds until a recent fix restored over 500 advisories.
Research
/Security News
175 malicious npm packages (26k+ downloads) used unpkg CDN to host redirect scripts for a credential-phishing campaign targeting 135+ organizations worldwide.
Security News
Python 3.14 adds template strings, deferred annotations, and subinterpreters, plus free-threaded mode, an experimental JIT, and Sigstore verification.