Hook command 'state-get'

The information in this doc is based on Juju version 3.5.5, and may not accurately reflect other versions of Juju.

See also: state-delete, state-set

Summary

Print server-side-state value.

Usage

state-get [options] [<key>]

Options

Flag Default Usage
--format smart Specify output format (json|smart|yaml)
-o, --output Specify an output file
--strict false Return an error if the requested key does not exist

Details

state-get prints the value of the server side state specified by key. If no key is given, or if the key is “-”, all keys and values will be printed.