Skip to content

letportal upgrade

The documentation applies to:✅ v0.8.0

Name

letportal upgrade - upgrade a new version of LET Portal

Synopsis

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

Arguments

  • APP: Current we only support two apps are portal or identity
  • Version: Specific version which will be upgraded. Ex: 0.5.0
  • [-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. Upgrade version: 0.5.0

letportal portal upgrade 0.5.0

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

letportal portal upgrade 0.5.0 -c mongodb://localhost:27017/letportal -db MongoDB