
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
drupal-radix-cli
Advanced tools
Radix Drupal CLI is an interactive prompt designed to manage Drupal Radix 6 components. It allows for easy listing, adding and generating of components to your Drupal theme, leveraging the power of the Radix base theme components.
Note: that this CLI uses your own local Radix theme as a source for components. If you want to add components from the latest version of Radix, you must first update your local Radix theme.
radix:COMPONENTNAME references to THEMENAME:COMPONENTNAME in your template files when adding components.Ensure you have Node.js and npm installed on your system. Install the CLI tool within your subtheme or globally via npm:
npm install drupal-radix-cli
Note: You may also install the package globally: npm install -g drupal-radix-cli
Once installed, you can use the CLI tool with the following commands:
To list all Radix components available in the default directory:
drupal-radix-cli list
To add a Radix component to your current theme:
drupal-radix-cli add
Use the --radix-path flag to specify a custom Radix components directory if your Radix base theme is installed in a non-standard location:
drupal-radix-cli add --radix-path ../../radix/components
Use the --no-template flag to skip automatic template reference updates when adding components:
drupal-radix-cli add --no-template
By default, when adding a component, the CLI will automatically scan your /templates directory for *.html.twig files and replace any radix:COMPONENTNAME references with THEMENAME:COMPONENTNAME. Use the --no-template flag if you prefer to update these references manually.
To generate a clean new component folder within your subtheme components directory:
drupal-radix-cli generate
This will generate a new component folder with the following files:
[component-name]/[component-name].twig[component-name]/[component-name].component.yml[component-name]/[component-name].scss[component-name]/_[component-name].js[component-name]/README.mdxMake sure to remove any unwanted files and update your files accordingly.
Display usage instructions:
drupal-radix-cli --help
Or simply drupal-radix-cli.
The Radix theme is a component-base theme for Drupal. For more information, visit the Radix theme project page on Drupal.org.
Contributions are welcome! Submit pull requests or create issues for any enhancements, bugs, or features.
This project is licensed under the MIT License. See the LICENSE file for more details.
FAQs
CLI for managing Radix components in a Drupal theme
The npm package drupal-radix-cli receives a total of 596 weekly downloads. As such, drupal-radix-cli popularity was classified as not popular.
We found that drupal-radix-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.