Skip to content

letportal install

The documentation applies to:✅ v0.8.0

Name

letportal install - install a latest LET Portal data to specific database

Synopsis

letportal <APP> install [-c|--connection] [-db|--db-type] [-f|--file]

Arguments

  • APP: Current we only support two apps are portal or identity
  • [-c|--connection]: A connection string to database, if null, default value will be
    • With portal: mongodb://localhost:27017/letportal
    • With identity: mongodb://localhost:27017/letportalidentity
  • [-db|--db-type]: Database type of a connection string. Default is MongoDB, can change to SQLServer, PostgreSQL, MySQL
  • [-f|--file]: Path to tools.json file

tools.json

Location: src\LetPortal.Tools\tools.json

Published Tools: Same folder of installation folder of CLI.

This file is used to create three default database connections on Portal Database. There are Identity Database, Portal Database and Service Management Database.

We separate to four options which are based on database type MongoStoringConnections, PostgreSqlStoringConnections, SqlServerStoringConnections, MySqlStoringConnections. Based on an argument [-db], CLI will take a relating option to insert. Thus you need to check carefully this file before running install command

Example

With default option, connection string = mongodb://localhost:27017/letportal and database type = MongoDB, tools.json path = Same as installation tools folder

letportal portal install

With database type and connection string, tools.json path = Same as installation tools folder

letportal portal install -c mongodb://localhost:27017/letportal -db MongoDB