@opentdf/cli

1.0.1-beta.925 • Public • Published

OpenTDF command line tool (for node)

A sample application using node & ESM to import and test a project

Usage

opentdf.mjs <auth options> <policy options> [encrypt|decrypt] [input file]

For example, to use the quickstart test, we should do something like:

echo hello-world >sample.txt
bin/opentdf.mjs encrypt \
  --kasEndpoint http://localhost:65432/api/kas \
  --oidcEndpoint http://localhost:65432/auth/realms/tdf \
  --auth tdf-client:123-456 \
  --containerType tdf3 \
  --output sample.tdf \
  sample.txt
bin/opentdf.mjs \
  --kasEndpoint http://localhost:65432/api/kas \
  --oidcEndpoint http://localhost:65432/auth/realms/tdf \
  --auth tdf-client:123-456 \
  --containerType tdf3 \
  --userId alice@somewhere.there \
  decrypt sample.tdf

This is a placeholder for working through build and CI issues.

References

/@opentdf/cli/

    Package Sidebar

    Install

    npm i @opentdf/cli

    Weekly Downloads

    69

    Version

    1.0.1-beta.925

    License

    BSD-3-Clause-Clear

    Unpacked Size

    33.5 kB

    Total Files

    5

    Last publish

    Collaborators

    • opentdf-bot
    • dricaud
    • pflynn-virtru
    • virtru-admin
    • the_krakatoa