Zontroy Commands

You can use commands to create a project and generate code in Zontroy. Also switch between projects using open command is possible. If you want to include some entities to your Zontroy project you can use include command. In reverse you can exclude entities from project by using exclude command. Full list of commands are provided with usage examples in the following:

create --empty

Creating a project is a starting point to generate code in Zontroy. You can do it using create command. If you are creating a project to generate code using a database connection then use this command.

zontroy --create
        --empty
        --type=VALUE 
        --language=VALUE 
        --name=VALUE 
        --server=VALUE 
        --database=VALUE 
        --user=VALUE 
        --password=VALUE 
        --path=VALUE

--empty

Creates an empty project.

--type

MSSQL|MySQL|Oracle|PostgreSQL

--language

CSharp|Go|Java|Javascript|PHP|Python|R|Swift|TypeScript|VB.Net|Other|Another

--name

Name of the Zontroy Project

--server

Server name of the database.

--database

Name of the database to connect.

--user

Database user.

--password

Database user password.

--path

Path of the Zontroy Project

Example Usage

zontroy --create
        --empty
        --type=PostgreSQL 
        --language=Go
        --name=MyZontroyProject
        --server=localhost 
        --database=MyDatabase
        --user=postgres 
        --password=12345 
        --path=D:\console\

create --empty --type=Entity

Creating a project is a starting point to generate code in Zontroy. You can do it using create command. If you are creating a project to generate code using entity classes then use this command.

zontroy --create
        --empty
        --type=Entity
        --language=VALUE 
        --name=VALUE 
        --entity-path=VALUE
        --path=VALUE

--empty

Creates an empty project.

--type

Entity means create project using data model in entity classes.

--language

CSharp|Go|Java|Javascript|PHP|Python|R|Swift|TypeScript|VB.Net|Other|Another

--name

Name of the Zontroy Project

--entity-path

Path of entity classes.

--path

Path of the Zontroy Project

Example Usage

zontroy --create
        --empty
        --type=Entity
        --language=Go
        --name=MyZontroyProject
        --entity-path=D:\console\entities\
        --path=D:\console\

create --template

Creating a template project provides a project example to generate code Zontroy. You can do it using create --template command. If you are creating a template project based on a template using a database connection then use this command.

zontroy --create
        --template        
        --type=VALUE 
        --language=VALUE
        --name=VALUE 
        --template-name=VALUE
        --server=VALUE 
        --database=VALUE 
        --user=VALUE 
        --password=VALUE  
        --path=VALUE

--template

Creates a template project

--type

MSSQL|MySQL|Oracle|PostgreSQL

--language

CSharp|Go|Java|Javascript|PHP|Python|R|Swift|TypeScript|VB.Net|Other|Another

--name

Name of the Zontroy Project.

--template-name

Name of the template that will be used.

--server

Server name of the database.

--database

Name of the database to connect.

--user

Database user.

--password

Database user password.

--path

Path of the Zontroy Project

Example Usage

zontroy --create
        --template 
        --type=PostgreSQL 
        --language=Go
        --name=MyZontroyProject
        --template-name=SpringBootAngularCRUD
        --server=localhost 
        --database=MyDatabase
        --user=postgres 
        --password=12345 
        --path=D:\console\

create --template --type=Entity

Creating a template project provides a project example to generate code Zontroy. If you are creating a template project based on a template using entity classes then use this command.

zontroy --create
        --template        
        --type=Entity
        --language=VALUE
        --name=VALUE 
        --template-name=VALUE
        --entity-path=VALUE
        --path=VALUE

--template

Option that creates a template project

--type

MSSQL|MySQL|Oracle|PostgreSQL

--language

CSharp|Go|Java|Javascript|PHP|Python|R|Swift|TypeScript|VB.Net|Other|Another

--name

Name of the Zontroy Project.

--template-name

Name of the template that will be used.

--server

Server name of the database.

--database

Name of the database to connect.

--user

Database user.

--password

Database user password.

--path

Path of the Zontroy Project

Example Usage

zontroy --create
        --template 
        --type=PostgreSQL 
        --language=Go
        --name=MyZontroyProject
        --template-name=SpringBootAngularCRUD
        --server=localhost 
        --database=MyDatabase
        --user=postgres 
        --password=12345 
        --path=D:\console\

open

Use open command to open an existing Zontroy project.

zontroy --open --path=VALUE

--path

Path of the project to be opened.

Example Usage

zontroy --open --path=D:\console\MyZontroyProject.zproject

generate

Use generate command to generate code from all template files in the current project.

zontroy --generate --all [--watchgeneration=VALUE]

--all

It means that generate code from all zsif, zref and ziref files in the current project directory.

--watchgeneration

This is an optional parameter and displays generated code in output window in that speed.

1x|2x|4x|8x|16x|32x|64x|128x|256x|512x

Example Usage

zontroy --generate --all

--file

Path of zsif, zref and ziref file to generate from.

Example Usage

zontroy --generate --file=D:\console\MyZontroyProject\Controller\MyFile.java.zref

include

This command includes all tables into the current project as entities.

zontroy --include --all

--all

This parameter means that include all tables into the current project.

Example Usage

zontroy --include --all

--name

This parameter means that include specified table into the current project.

Example Usage

zontroy --include --name=dbo.Posts

exclude

This command excludes all tables form the current project. After execute exclude all command include entity/entities in order to generate code. It is not possible to generate code without entity in the project.

zontroy --exclude --all

--all

This parameter means that exclude all tables from the current project.

Example Usage

zontroy --exclude --all

--name

This parameter means that exclude specified table from the current project.

Example Usage

zontroy --exclude --name=dbo.Posts

help

This command shows help.

zontroy --help

Last updated