cancel
Showing results for 
Search instead for 
Did you mean: 

How to scaffold new projects from environment command line?

Michael B
Associate III

I'm just getting back into this after taking a 2 year break. I vaguely remember you could scaffold new projects from the command line rather than using the Designer application. I couldn't find any docs on this, is it still possible to do or am I completely mistaken?

1 ACCEPTED SOLUTION

Accepted Solutions

hi @Community member​,

The "new" normal way of creating a TouchGFX project is through the Designer.

We are also shipping a command line tool which does exactly what you describe 🙂

it is called tgfx.exe and is placed in the same installation folder as the designer.

Here is a snippet of the "help" context from the new command:

'new' - Combines a user interface with an application template to create a new application

Expected usage: tgfx.exe new <options>

<options> available:

   --ui=VALUE       Gui package name

   --at=VALUE       At package name

   --out=VALUE      Output Directory

   --prj=VALUE      Project Name

There is just one small catch, if you want to create any other projects than an empty application for pc simulator, you have to use the Designer to first download the desired Application Template and UI packages.

/Anders

View solution in original post

2 REPLIES 2

hi @Community member​,

The "new" normal way of creating a TouchGFX project is through the Designer.

We are also shipping a command line tool which does exactly what you describe 🙂

it is called tgfx.exe and is placed in the same installation folder as the designer.

Here is a snippet of the "help" context from the new command:

'new' - Combines a user interface with an application template to create a new application

Expected usage: tgfx.exe new <options>

<options> available:

   --ui=VALUE       Gui package name

   --at=VALUE       At package name

   --out=VALUE      Output Directory

   --prj=VALUE      Project Name

There is just one small catch, if you want to create any other projects than an empty application for pc simulator, you have to use the Designer to first download the desired Application Template and UI packages.

/Anders

Seems like an acceptable catch - I do like the designer in general but this is great information. Thanks!