starting hapi-fhir-cli on Windows 10

108 views
Skip to first unread message

mjt...@gmail.com

unread,
Jun 28, 2023, 7:58:38 PM6/28/23
to HAPI FHIR
Hi,

Any suggestions welcome.  

I've followed the instructions at https://hapifhir.io/hapi-fhir/docs/tools/hapi_fhir_cli.html and, when I do a directory listing of my hapi-fhir-cli directory, I get this (note: I'm not running cygwin, but that is not mentioned): 

06/28/2023  04:43 PM    <DIR>          .
06/28/2023  04:43 PM    <DIR>          ..
06/28/2023  04:43 PM             4,354 hapi-fhir-cli
06/28/2023  04:43 PM             3,861 hapi-fhir-cli.cmd
06/28/2023  04:43 PM       274,542,179 hapi-fhir-cli.jar
               3 File(s)    274,550,394 bytes
               2 Dir(s)  372,906,041,344 bytes free

I have set the path and am running:

C:\Users\mjtra\hapi-fhir-cli>java -version
openjdk version "1.8.0_362"
OpenJDK Runtime Environment (Temurin)(build 1.8.0_362-b09)
OpenJDK 64-Bit Server VM (Temurin)(build 25.362-b09, mixed mode)

I have *not* downloaded the server independently.  When I try .\hapi-fhir-cli run-server I get the following:
C:\Users\mjtra\hapi-fhir-cli>.\hapi-fhir-cli run-server
Unrecognized command: ←[1;31mrun-server←[22;37m

------------------------------------------------------------
? ←[1m HAPI FHIR←[22m 6.6.0 - Command Line Tool
------------------------------------------------------------
Process ID                      : 16360@DESKTOP-TJ633O0
Max configured JVM memory (Xmx) : 4.0GB
Detected Java version           : 16.0.2
------------------------------------------------------------
Usage:
  hapi-fhir-cli {command} [options]

Commands:
←[1;32m  bulk-import             ←[22;37m - ←[1mInitiates a bulk import against a FHIR server using
                             the $import operation, and creates a local HTTP
                             server to serve the contents. This command does not
                             currently support HTTPS so it is only intended for
                             testing scenarios.
←[1;32m  clear-migration-lock    ←[22;37m - ←[1mThis command clears a database migration lock
←[1;32m  create-package          ←[22;37m - ←[1mCreate an NPM package using the FHIR packaging
                             format
←[1;32m  export-conceptmap-to-csv←[22;37m - ←[1mExports a specific ConceptMap resource to a CSV
                             file.
←[1;32m  import-csv-to-conceptmap←[22;37m - ←[1mImports a CSV file to a ConceptMap resource.
←[1;32m  migrate-database        ←[22;37m - ←[1mThis command migrates a HAPI FHIR JPA database to
                             the current version
←[1;32m  reindex-terminology     ←[22;37m - ←[1mRecreates freetext-indexes for terminology data.
←[1;32m  subscription-client     ←[22;37m - ←[1mOpens a websocket client connection to a server for
                             the purposes of binding to a Subscription, and then
                             outputs the results
←[1;32m  upload-definitions      ←[22;37m - ←[1mUploads the conformance resources
                             (StructureDefinition and ValueSet) from the
                             official FHIR definitions.
←[1;32m  upload-examples         ←[22;37m - ←[1mDownloads the resource example pack from the
                             HL7.org FHIR specification website, and uploads all
                             of the example resources to a given server.
←[1;32m  upload-terminology      ←[22;37m - ←[1mUploads a terminology package (e.g. a SNOMED CT ZIP
                             file or a custom terminology bundle) to a server,
                             using the appropriate operation.
←[1;32m  validate                ←[22;37m - ←[1mValidate a resource using the FHIR validation tools

←[22;37mSee what options are available:
  hapi-fhir-cli help {command}

mjt...@gmail.com

unread,
Jun 28, 2023, 8:05:04 PM6/28/23
to HAPI FHIR
Apologies for the most-likely idiotic question.  I will download the server.  I'd been hoping it would download the server prior to running it, which it presumably will not do, and I was thrown by the extra symbols, I'm guessing color changes on the Mac?

I will write yet again should downloading the server not resolve the problem.

Reply all
Reply to author
Forward
0 new messages