CLI command to scaffold a new code component locally

Created on 20 May 2025, 24 days ago

Overview

The CLI tool needs to be able to scaffold code components in a local codebase.

→ See: 🌱 [Meta] CLI tool for code components Active

Proposed resolution

  1. Implement this command using the relevant part of the implementation as a reference from the POC: https://github.com/lauriii/experience-builder-cli/blob/main/src/commands.... Use @clack/prompts.
  2. Read the location for your local directory for components from an environment variable or .env file established in 📌 Set up first authenticated request from CLI Postponed .
  3. Generate the component in the following format:
    my-component/
      ├── component.yml     # Component metadata and configuration
      ├── index.jsx         # React component source
      ├── index.css         # Optional CSS
    

    The component.yml file can match the shape of the data the /api/v0/config/js_component endpoint works with — excluding the JS and CSS source/compiled code.

Feature request
Status

Postponed

Version

0.0

Component

CLI Tool

Created by

🇳🇱Netherlands balintbrews Amsterdam, NL

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024