Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/webredone/trb-cli
TRB-CLI is a handy Node.js CLI that automates the process of managing blocks in a theme-redone theme. Instead of manually creating new blocks, and copying and renaming files, you can do just that with a single simple command.
https://github.com/webredone/trb-cli
cli gutenberg gutenberg-blocks gutenberg-boilerplate latte-template-engine wordpress wordpress-development wordpress-development-workflow wordpress-starter-framework wordpress-starter-theme wordpress-theme wp
Last synced: about 1 month ago
JSON representation
TRB-CLI is a handy Node.js CLI that automates the process of managing blocks in a theme-redone theme. Instead of manually creating new blocks, and copying and renaming files, you can do just that with a single simple command.
- Host: GitHub
- URL: https://github.com/webredone/trb-cli
- Owner: webredone
- License: mit
- Created: 2022-08-10T19:18:42.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-16T22:36:26.000Z (7 months ago)
- Last Synced: 2024-09-18T00:49:35.970Z (2 months ago)
- Topics: cli, gutenberg, gutenberg-blocks, gutenberg-boilerplate, latte-template-engine, wordpress, wordpress-development, wordpress-development-workflow, wordpress-starter-framework, wordpress-starter-theme, wordpress-theme, wp
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@webredone/trb-cli
- Size: 70.3 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
[![Theme Redone Gutenberg WordPress Framework](https://raw.githubusercontent.com/webredone/trb-cli/main/trb-cli-logo.svg)](https://webredone.com/theme-redone/gutenberg-blocks-framework/trb-cli/)
# **TRB CLI (Theme Redone Blocks CLI)**
TRB-CLI is a handy Node.js CLI that automates the process of managing blocks in a **[theme-redone WordPress theme framework](https://webredone.com/theme-redone/)**.
Instead of manually creating new blocks, and copying and renaming files, you can do just that with a single simple command.
---
## **Installation**
- Make sure to have the node version **>=20.10.0** installed
- Install the trb-cli package globally via the **npm install @webredone/trb-cli -g** command.
- Verify that the package was installed successfully by running the trb command; This command lists all the available trb-cli commands. If that’s the case, you are all set up.---
## **Usage and Commands**
To be able to use the TRB CLI you should be inside the root of the theme-redone theme from inside the terminal.
Commands will only run if the CLI detects that it’s called from the theme root which it verifies by the presence of the "name": "theme-redone" line inside the theme’s package.json.
---
## **Main Commands**
- **trb add kebab-case-block-name** - Creates a new block with the desired name (must be in kebab-case)
- **trb remove kebab-case-block-name** - Removes the existing block
- **trb rename kebab-case-block-name-original kebab-case-block-name-renamed** - Renames selected block* **trb copy kebab-case-block-name-copy-from kebab-case-block-name-copy-to** - Copies selected block into a new block with the desired name
---
## Visit https://webredone.com/theme-redone/ to learn more.