CMS Development

JC6
Member

Creating custom modules via the CLI

SOLVE

Hi,

 

Maybe this is already possible and I'm missing it, but it would be nice if there was a CLI command to create a default file structure for modules.

0 Upvotes
1 Accepted solution
alyssamwilie
Solution
Recognized Expert | Elite Partner
Recognized Expert | Elite Partner

Creating custom modules via the CLI

SOLVE

@JC6 

You should be able to use the following to create a new module using CLI:

hs create module <name> [dest]

 

If this answer solved your question, please mark it as the solution.

Alyssa Wilie Profile Image

Alyssa Wilie

Web Developerat Lynton

Learn HubL | Get Marketing Insights

HubSpot Elite Solutions Partner
Lynton's HubSpot theme Rubric now available. Click to download.

View solution in original post

2 Replies 2
alyssamwilie
Solution
Recognized Expert | Elite Partner
Recognized Expert | Elite Partner

Creating custom modules via the CLI

SOLVE

@JC6 

You should be able to use the following to create a new module using CLI:

hs create module <name> [dest]

 

If this answer solved your question, please mark it as the solution.

Alyssa Wilie Profile Image

Alyssa Wilie

Web Developerat Lynton

Learn HubL | Get Marketing Insights

HubSpot Elite Solutions Partner
Lynton's HubSpot theme Rubric now available. Click to download.
JC6
Member

Creating custom modules via the CLI

SOLVE

I KNEW I was missing it. I just re looked at the docs based on your answer I can use that syntax to do alot of other things too! Ha thanks, for replying to my lack of attation to documentation.

 

One little random thing to note I did have to use the following for it to work in powershell

npx hs create module <name> [dest]

 , but switched to regular command prompt and you don't need to npx.

 

Thanks!

0 Upvotes