[
  {
    "name": "excel",
    "topic": "M2M - Monolith to Microservices",
    "value": {
      "list": {
        "heading": "To Generate new project, add services",
        "items": [
          "cirruswave -g -t excelbased -r gettemplate\t\t\t\t---cold start a project with a default excel template and begin to edit it",
          "cirruswave -g -t excelbased -r createapilist -x <excelfile.xlsx>\t---create a list of API signatures from mindmap and add them to the excel spreadsheet for edit and review",
          "cirruswave -g -t excelbased -r generateproject -x <excelfile.xlsx>\t--- generate the code and all necessary artifacts for the microservices based on excel template\n",
          "cirruswave -g -t newproject\t\t\t\t\t---To generate a new project ready for either application or system services to be added",
          "cirruswave -g -t addnewservice\t\t\t\t\t---To generate a new microservice to an existing project run this from the project home directory",
          "cirruswave -g -t openapi -j <openapi_swaggerfileexample.json>\t---To generate a new project  from a Swagger / OpenAPI JSON file"
        ]
      }
    }
  },
  {
    "disabled":true,
    "name": "java",
    "topic": "Legacy Java to Microservices",
    "value": {
      "list": {
        "heading": "To Generate Microservices from existing Jar Files",
        "items": [
          "cirruswave -g -t java -r gettemplate\t\t\t\t---cold start a java 2 microservices project with a default excel template and begin to edit it",
          "cirruswave -g -t java -r createapilist -x <excelfile.xlsx>\t---create a list of API signatures from Jar File and add them to the excel spreadsheet for edit and review",
          "cirruswave -g -t java -r generateproject -x <excelfile.xlsx>\t--- generate the code and all necessary artifacts for the Java to microservices based on excel template\n"
           ]
      }
    }
  },
  {
    "disabled":true,
    "name": "newproject",
    "topic": "M2M - Monolith to Microservices",
    "value": {
      "list": {
        "heading": "To Generate New Project",
        "items": [
          "cirruswave -g -t newproject\t\t\t\t\t---To generate a new project ready for either application or system services to be added",
          "cirruswave -g -t addnewservice\t\t\t\t\t---To generate a new microservice to an existing project run this from the project home directory",
          "cirruswave -g -t openapi -j <openapi_swaggerfileexample.json>\t---To generate a new project  from a Swagger / OpenAPI JSON file"
        ]
      }
    }
  },
  {
    "name": "helper commands",
    "topic": "All products. M2M, L2M, CCP, CDC",
    "value": {
      "list": {
        "heading": "Helper commands",
        "items": [
          "cirruswave -g -t schema  -j <example.json> -o <schemaexample.json>\t\t\t\t---generate schema from example.json and store it in schemaexample.json",
          "cirruswave -g -t encrypt -E <encryption secret phrase> -S <String to encrypt>\t\t\t--generate encrypted string given the secret phrase and a string to be encrypted. Note any special characters need to be escaped"
        ]
      }
    }
  },
  {
    "disabled":true,
    "name": "apimonitor",
    "topic": "All products. M2M, L2M, CCP, CDC",
    "value": {
      "list": {
        "heading": "To Setup apimonitoring",
        "items": [
          "cirruswave -s setup -t apimonitor -i ip\t\t\t\t\t\t\t---Step 0: setup elk-stack, indexes and kibana dashboards for logging and api monitoring. ip address or domain name. Prefix with https:// if protected by TLS"
        ]
      }
    }
  },
  {
    "name": "container",
    "topic": "All Products. M2M, L2M, CCP, CDC",
    "value": {
      "list": {
        "heading": "To Containerize",
        "items": [
          "cirruswave -c -s generate -j <appserviceconfig.json>\t\t\t\t\t\t---Step 0: Generate configfile for the current project",
          "cirruswave -c -s generate -j <appserviceconfig.json> -i <ipvalue>\t\t\t\t---Step 0a: Generate configfile for the current project with logging to elk stack at the given ip\n",
          "cirruswave -c -t deploymenttarget -j <appserviceconfig.json> -s generate\t\t\t---Step 1: Add to configfile - compute ip information the pem file location and public dns (ip v4) info\n",
          "cirruswave -c -s prepare -j cr.json -f <yourprojectdeployconfig.json>\t\t\t\t---Step 2: Prepare the necessary files\n",
          "cirruswave -c -s createimages -e docker -f <yourprojectdeployconfig.json>[ -p <pswd>]\t\t---Step 3: Create  the necessary imagefiles - environment options available are [docker, aws, azure]\n\t\t\t\t\t\t\t\t\t\t\t\t and an optional password for the container registry which overrides password in cr.json\n",
          "cirruswave -c -t deploymenttarget -j <appserviceconfig.json>\t\t\t\t\t---Step 4: Add targets to deployment scripts - compute ip information the pem file location and public dns (ip v4) info\n",
          "cirruswave -c -s deploy -e docker -f <yourprojectdeployconfig.json>[ -p <pswd>]\t\t\t---Step 4a: Deploy the images to the target compute machines - environment options available are [docker, aws, azure]\n\t\t\t\t\t\t\t\t\t\t\t\t and an optional password for the container registry which overrides password in cr.json",
          "cirruswave -c -m incremental -s deploy -e docker -f <yourprojectdeployconfig.json>[ -p <pswd>]\t---Step 4b: Redeploy (mode incremental) images to target compute machines - environment options [docker, aws, azure]\n\t\t\t\t\t\t\t\t\t\t\t\t and an optional password for the container registry which overrides password in cr.json",
          "cirruswave -c -m local -s deploy -e docker -f <yourprojectdeployconfig.json>[ -p <pswd>]\t---Step 4c: Deploy and run in local docker environment (mode local) images to target compute machines - environment options [docker]\n\t\t\t\t\t\t\t\t\t\t\t\t and an optional password for the container registry which overrides password in cr.json \n",
          "cirruswave -c -s enterprise -j <ejsonfile.json> -P <projectname> -i <ipvalue>\t\t\t---Step 4d: Generate container deployment configfile for the current enterprise project with logging to elk stack at the given ip. Note either project name or jsonfile can be given. It will interactively ask for service details if jsonfile is not given"
        ]
      }
    }
  },
  {
    "name": "System services",
    "topic": "All Products. M2M, L2M, CCP, CDC",
    "value": {
      "list": {
        "heading": "To Setup system services:",
        "items": [
          "cirruswave -g -t keymgr\t\t\t\t\t\t\t\t\t\t\t---System service KeyMgr issues keys and grants access to services. Services with security set to 'basic' or 'accessky' will need acckey and secretekeys to authnticate. Services set with 'jwt' will require jwt to be passed in or generated using the keymgr. When jwt is passed in, set 'jwtexternal' to true and setup 'validatesecurity' callback to do custom validation of the claims. Set up credentials for AWS s3 where keys are stored.",
          "cirruswave -g -t workflow\t\t\t\t\t\t\t\t\t\t---System service workflow provides capabilities for business logic to drive the microservices. Each workflow consists of a plan with serveral tasks that are executed according to the business logic. The plans and state of the workflow plans are stored in AWS s3.",
          "cirruswave -g -t connector -z  [ s3, azblob, mssql, pgsql, mysql, oracledb, snowflake, azcosmosdb, n4jsvc, esservice, rabbitmq, wsoc, jira, sftp, ftp, email]\t--- offers connectors to important data sources and provides uniform REST API access to all of them. You can create multiple connections to the securely to all of the data sources.",
          "cirruswave -g -t wsocserver\t\t\t\t\t\t\t\t\t\t---System service wsocserver provides websocket server service for sending messages over stateful socket connections to clients",
          "cirruswave -g -t converter\t\t\t\t\t\t\t\t\t\t---System service converter provides converters from various formats like HTML, EDI, CSV, JSON to other formats like CSV, JSON. Each converer is available as a separate route in the converter service"
        ]
      }
    }
  },
  {
    "name": "update",
    "topic": "CirrusWave version management",
    "value": {
      "list": {
        "heading": "Update to the latest version of CirrusWave",
        "items": [
          "cirruswave -V \t\t\t\t---Get the version information on CirrusWave commandline app (global)",
          "cirruswave -s update -m local\t\t\t\t---Update to the latest CirrusWave platform",
          "cirruswave -s update -m global\t\t\t\t---Update to the latest version of CirrusWave command line product"
        ]
      }
    }
  },
  {
    "name": "scripts",
    "topic": "Launch Sripts",
    "value": {
      "list": {
        "heading": "Generate scripts to launch ",
        "items": [
          "cirruswave -g -t runallscripts  -j appserviceconfig.json\t\t---Generates shell scripts to run all services locally. After this you can do 'bash launchscripts/runallservices.sh' which runs the services and ctrl+c will kill all of them",
          "cirruswave -g -t deploymentscripts -j appserviceconfig.json -i loggingip\t\t---Generates shell scripts for building and running in containers. logging ip is optional. This commands generates the following scripts",
          "bash launchscripts/buildcontainer.sh\t\t\t\t---Generates the deploymentconfig.json file, getting the project ready for image preparation, build and push images to container registry pointed to by cr.json",
          "All the generated scripts are in launchscripts folder",
          "bash launchscripts/runcontainerlocal.sh\t\t\t\t---pull images from container registry and run them locally",
          "bash launchscripts/runcontainerremote.sh\t\t\t\t--- pull images from container registry and run them. This will ask for deployment target information. You can clear existing targets, add new targets etc."
        ]
      }
    }
  },
  {
    "name": "deploymentmodes",
    "topic": "Deployment modes",
    "value": {
      "list": {
        "heading": "Customizable deployments modes",
        "items": [
          "cirruswave -g -t createdeploymentmode -j appserviceconfig.json -m [dev, qa, test, prod]\t\t--- mode can be any string. Generates deploymentmode/<mode> directory where all the customized configs are stored",
          "cirruswave -g -t deletedeploymentmode -j appserviceconfig.json -m [dev, qa, test, prod]\t\t--- a specific mode and the associated files can be deleted",
          "cirruswave -g -t setmode -j appserviceconfig.json -m [dev, qa, test, prod]\t\t--- Containerized commands will be ready for deployment with this mode",
          "cirruswave -g -t restoredefaultmode -j appserviceconfig.json\t\t--- default mode is restored. In general all deployment should be done after setmode",
          "createdeploymentmode - needs to be done to update whenevver new system services like adding new connections, workflow etc. are configured",
          "setmode - Before generating deployment scripts make sure you are in the right mode by doing setmode command"
        ]
      }
    }
  }
]