Create an application from a template using the CLI
Hexabase CLI(Command Line Interface) allows you to create apps from application templates. To do this, use the hx projects:create command.
Steps: Create an app with an application template
Switch context
$ hx contexts:use stg
| Current-context successfully set to: stg
Login
$ hx login
| ? Enter your email » [email protected]
| ? Enter your password » xxxxx
| Successfully logged in as: [email protected]
Switch to the workspace where you want to create your application
$ hx workspaces:get
| ID NAME
| 5ea81d61a7e3860007bcbe2b workspace_1
| 5e9678e8d4b3e00006eb8745 workspace_2
| 5e1471ac77dc58000633ea84 workspace_3
$ hx workspaces:use 5e1471ac77dc58000633ea84
| Current-workspace set to: workspace_3
Create an application. The base application template can be selected from the menu.
$ hx projects:create
| √ Select a template · 5f525733e2fb440001214111
| √ Please provide the name for your project
| Project Name (en): hexa-vue-example3
| Project Name (ja): hexa-vue-example3
| Task successfully queued. project_id set to: 607919a7338f7e000170e5e7
Related pages
The template for the application to be created must be saved in the application in advance. By default, the TODO sample application is available.
管理画面でも、テンプレートからアプリケーションを作成することができます。