CLI Utility

Syntax Conventions

The following syntax conventions apply when using these CLI commands:

If a value contains a space, you must enclose it in quotes. For example: "Some Value"

When specifying file paths, use quotes to handle slash marks correctly. For example:

  • For a Windows path "C:\path", write it as "C:\\path" or "C:/path"
  • For a Linux path /path, write it as "/path"

The Geocoding CLI utility is included in the Geo Addressing SDK distribution.

Starting CLI

The cli folder contains:
  • lib: Contains java library for available utility commands.
  • cli.cmd: Windows batch script to start Geocoding CLI shell.
  • cli.sh: Linux shell script to start Geocoding CLI shell.
  • log4j2.xml Contains properties required for logging strategy.
Note:
cli.cmd is for Windows users. cli.sh is for UNIX/Linux users.

Ensure that the cli.sh file has execute permission.

chmod 755 cli.sh

Now cli.sh shell script file is executable.

Execute this shell script to start the Geocoding CLI shell.

$ ./cli.sh