Skip to content

Command Line Interface (CLI) for Generic Trust Anchor API (GTA API)

License

Notifications You must be signed in to change notification settings

generic-trust-anchor-api/gta-cli

Generic Trust Anchor API - Command Line Interface

Introduction

The repository provides a command line interface for the Generic Trust Anchor API. It exposes GTA API library functions to the command line and provides high-level use-case examples.

Dependencies

The CLI depends on GTA API Core and GTA API SW Provider.

Local build

  • In the project root, initialize build system and build directory (like ./configure for automake):
$ meson setup <build_dir>
  • Compile the code, the build directory is specified with the -C option:
$ ninja -C <build_dir>
  • To install the following target can be used:
$ sudo ninja -C <build_dir> install

Using the CLI

The CLI reads the environment variable GTA_STATE_DIRECTORY and provides it to GTA API SW Provider to persist its state. If the environment variable GTA_STATE_DIRECTORY isn't set the default directory ./gta_state is used.

  • gta-cli --help shows the parameters supported by the cli and how to run it
  • gta-cli <FUNCTION> --help shows function specific help

Return code:

  • returns EXIT_SUCCESS on success
  • returns EXIT_FAILURE in case of error

About

Command Line Interface (CLI) for Generic Trust Anchor API (GTA API)

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Contributors 6