Skip to main content

Import and export template files using CLI

Hexabase CLI(Command Line Interface) allows you to import and export applications (projects) as template files.

The application template must have been previously saved with the application.

Export template file

Output a template file.

API

hx projects:backup [TEMPLATE_ID]

USAGE

$ hx projects:backup [TEMPLATE_ID]

ARGUMENTS

For TEMPLATE_ID, specify the template_id of hexabase.

If you omit TEMPLATE_ID , you can select a template to download from the menu.

OPTIONS

-c, --context=context use provided context instead of currently set context
-h, --help show CLI help
-o, --output=output output file

See code: src/commands/projects/backup.ts

Import template file

Recover the application (project) from the template file

For the file, use the one you exported with hx projects:backup [TEMPLATE_ID].

API

hx projects:restore FILE

USAGE

$ hx projects:restore FILE

ARGUMENTS

FILE zip file to be restored from, e.g. template.zip

OPTIONS

-c, --context=context use provided context instead of currently set context
-h, --help show CLI help
-n, --name=name name of the project to be restored
-y, --yes skip confirmation

See code: src/commands/projects/restore.ts