Skip to main content

Command Line

Before you start developing, take a look at the available commands.

OPTIONDESCRIPTION
helpAllows you to view all the commands available from Netuno
versionAllows you to view the current version of Netuno

List Available Commands

./netuno help

View Netuno version

./netuno version

Install

Before starting developing you need to install Netuno.

To help you install Netuno go to Installation

Details

OPTIONDESCRIPTION
checksumAllows you to update checksum stored to all bundle files
forceAllows you to force override all local changes
graal=true/falseAllows you define if you want to use GraalVM to best performance your apps
path=[Directory]Allows you to set the install path
removeRemove all Netuno files
version=[version]Allows you to select the version of Netuno that should be install, "latest" for the current version in development
yesAllows you to answer all question with an YES and be sure that your changes can be destroyed

Example of how to update checksum

./netuno install checksum

Example of how to force all local changes

./netuno install force

Example of how to desactive GraalVM

./netuno install graal=false

GraalVM by default is enabled and downloaded automatically on Netuno installation.

Example of how to set the install path

./netuno install path ='netunoDir'

Example of how to remove all Netuno files.

./netuno install remove

Example of how to select the version of Netuno that should be install

./netuno install version='latest'

Example of how to reply as YES to all questions

./netuno install yes 

Server

Start the Netuno server to start developing your applications.

./netuno server

The default port is 9000.

After starting up the server you only need to access through the link : http://localhost:9000/

Details

By default, the Netuno directory is set to the webapp name, the webapp folder is where all the files for its operation are located.

OPTIONDESCRIPTION
app=[appname]Allows to define which application should be started
host=[IP/Host Name]Allows you to change the host name of Netuno
launch=true/falseAllows you to define if Netuno initializes the link in the browser
npmAllows you to run 'npm watch' into the App to auto build the frontend
port=[Number]It allows defining the initialization port of the server
secret=[password]Allows you to define a password to acess the server remote management
web=[directory]Allows you change the default web home folder

When you change the directory name, you need to change the folder name to the desired name, as the name will only be changed in the Netuno code.

Example of how to start the server of a certain application

./netuno server app=myapp

Example of how to change the hostname

./netuno server host=localhost
./netuno server launch=false

By default the Netuno opens the browser and initializes the link

Example to run npm to auto build the frontend

./netuno server npm

Example of how to change the port

./netuno server port=10000

Example of how to define a password to acess the server remote management

./netuno server secret='p#ssw@rd'

Example of how to change the default web home folder

./netuno server web=webapp

License

To start developing you just need to register.

./netuno license

There are currently three licenses: Community, Standard and Enterprise

Details

OPTIONDESCRIPTION
create , changeAllows you to create or change the license
keyAllows you to view the license key
mail=[your@mail.com]Allows you to set the account email address
type=[community/standard/enterprise]Allows you to set the license type

Example of how to create a license

./netuno license create

Example of how to visualize the license key

./netuno license key

Example of how to set your mail and license type

./netuno license mail='your_email@gmail.com' type='community'

Application

Create your applications easily.

./netuno app

After the creation of the application if you want to see where the application folder is you can go to the webapp folder, then the apps folder and there you will find the application folder.

Details

By default,Netuno has a demo application that starts when the Netuno server is started.

OPTIONDESCRIPTION
database=[database name]Allows you to define the name of the database
engine=[name]Allows you to define the type of database
host=[address]Allows you to define the database address
language=[language]Allows you to define the language
locale=[language]Allows you to define the application locale
name=[name]Allows you to create an application or rebuild an existing application
password=[password]Allows to set a password for the database
port=[number]Allows you to define the database port
username=[name]Allows to define the username of the database

Example of how to pre-define the database name

./netuno app database=employee

The database name may contain number and letters, if the name has more than one word it should be separated as follows.

Ex: employee_db

Example of how to pre-define the database type

./netuno app engine=pg

These are the accepted database types: PostgreSQL - pg MariaDB - mariadb Microsoft SQL Server - mssql H2 Database - h2

Example of how to pre-define the database server address

./netuno app host=localhost

Example of language and locale pre-setting

./netuno app language=en_US locale=en_US

The following languages exist: Portuguese - pt_PT Brazilian - en_BR English - en_US Spanish - es_ES

Example of how to create an application or rebuild an existing application

./netuno app name=demo

Example of how to pre-define the database password

./netuno app password=secret

Example of the pre-defined database port

./netuno app port=5432

By default, the PostgreSql port is 5432
By default, the MariaDB port is 3306
By default, the Microsoft SQL Server port is 1433

Example of how to define the database user name

./netuno app username=root