#compdef nethsm

autoload -U is-at-least

_nethsm() {
    typeset -A opt_args
    typeset -a _arguments_options
    local ret=1

    if is-at-least 5.2; then
        _arguments_options=(-s -S -C)
    else
        _arguments_options=(-s -C)
    fi

    local context curcontext="$curcontext" state line
    _arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'-V[Print version]' \
'--version[Print version]' \
":: :_nethsm_commands" \
"*::: :->nethsm" \
&& ret=0
    case $state in
    (nethsm)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-command-$line[1]:"
        case $line[1] in
            (config)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_nethsm__config_commands" \
"*::: :->config" \
&& ret=0

    case $state in
    (config)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-config-command-$line[1]:"
        case $line[1] in
            (get)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_nethsm__config__get_commands" \
"*::: :->get" \
&& ret=0

    case $state in
    (get)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-config-get-command-$line[1]:"
        case $line[1] in
            (boot-mode)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(logging)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(network)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(time)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(tls-certificate)
_arguments "${_arguments_options[@]}" : \
'-o+[The optional path to a specific file that the certificate is written to]:OUTPUT:_files' \
'--output=[The optional path to a specific file that the certificate is written to]:OUTPUT:_files' \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-f[Write to output file even if it exists already]' \
'--force[Write to output file even if it exists already]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(tls-csr)
_arguments "${_arguments_options[@]}" : \
'-o+[The optional path to a specific file that the certificate is written to]:OUTPUT:_files' \
'--output=[The optional path to a specific file that the certificate is written to]:OUTPUT:_files' \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-f[Write to output file even if it exists already]' \
'--force[Write to output file even if it exists already]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':common_name -- The mandatory "Common Name" (CN) attribute for the CSR:_default' \
'::org_name -- The optional "Organization Name" (O) attribute for the CSR:_default' \
'::org_unit -- The optional "Organizational Unit" (OU) attribute for the CSR:_default' \
'::locality -- The optional "Locality" (L) attribute for the CSR:_default' \
'::state -- The optional "State" (ST) attribute for the CSR:_default' \
'::country -- The optional "Country" (C) attribute for the CSR:_default' \
'::email -- The optional "Email Address" (EMAIL) attribute for the CSR:_default' \
&& ret=0
;;
(tls-public-key)
_arguments "${_arguments_options[@]}" : \
'-o+[The optional path to a specific file that the certificate is written to]:OUTPUT:_files' \
'--output=[The optional path to a specific file that the certificate is written to]:OUTPUT:_files' \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-f[Write to output file even if it exists already]' \
'--force[Write to output file even if it exists already]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_nethsm__config__get__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-config-get-help-command-$line[1]:"
        case $line[1] in
            (boot-mode)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(logging)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(network)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(time)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(tls-certificate)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(tls-csr)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(tls-public-key)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(set)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_nethsm__config__set_commands" \
"*::: :->set" \
&& ret=0

    case $state in
    (set)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-config-set-command-$line[1]:"
        case $line[1] in
            (backup-passphrase)
_arguments "${_arguments_options[@]}" : \
'-n+[The path to a file containing the new passphrase]:NEW_PASSPHRASE_FILE:_default' \
'--new-passphrase-file=[The path to a file containing the new passphrase]:NEW_PASSPHRASE_FILE:_default' \
'-o+[The path to a file containing the old passphrase]:OLD_PASSPHRASE_FILE:_default' \
'--old-passphrase-file=[The path to a file containing the old passphrase]:OLD_PASSPHRASE_FILE:_default' \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(boot-mode)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':boot_mode -- The boot mode to use:_default' \
&& ret=0
;;
(logging)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':ip_address -- The IPv4 address of the host to send syslog to:_default' \
':port -- The port of the host to send syslog to:_default' \
'::log_level -- The log level at which to log:_default' \
&& ret=0
;;
(network)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':ip_address -- The IPv4 address the device is to use:_default' \
':netmask -- The IPv4 netmask the device is to use:_default' \
':gateway -- The IPv4 gateway the device is to use:_default' \
&& ret=0
;;
(time)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::system_time -- An optional ISO 8601 formatted UTC timestamp:_default' \
&& ret=0
;;
(tls-certificate)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':tls_cert -- A new TLS certificate file:_files' \
&& ret=0
;;
(tls-generate)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::tls_key_type -- The optional key type of the TLS certificate to generate:_default' \
'::tls_key_length -- The bit length of the TLS key to generate:_default' \
&& ret=0
;;
(unlock-passphrase)
_arguments "${_arguments_options[@]}" : \
'-n+[The path to a file containing the new passphrase]:NEW_PASSPHRASE_FILE:_default' \
'--new-passphrase-file=[The path to a file containing the new passphrase]:NEW_PASSPHRASE_FILE:_default' \
'-o+[The path to a file containing the old passphrase]:OLD_PASSPHRASE_FILE:_default' \
'--old-passphrase-file=[The path to a file containing the old passphrase]:OLD_PASSPHRASE_FILE:_default' \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_nethsm__config__set__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-config-set-help-command-$line[1]:"
        case $line[1] in
            (backup-passphrase)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(boot-mode)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(logging)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(network)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(time)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(tls-certificate)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(tls-generate)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(unlock-passphrase)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_nethsm__config__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-config-help-command-$line[1]:"
        case $line[1] in
            (get)
_arguments "${_arguments_options[@]}" : \
":: :_nethsm__config__help__get_commands" \
"*::: :->get" \
&& ret=0

    case $state in
    (get)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-config-help-get-command-$line[1]:"
        case $line[1] in
            (boot-mode)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(logging)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(network)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(time)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(tls-certificate)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(tls-csr)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(tls-public-key)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(set)
_arguments "${_arguments_options[@]}" : \
":: :_nethsm__config__help__set_commands" \
"*::: :->set" \
&& ret=0

    case $state in
    (set)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-config-help-set-command-$line[1]:"
        case $line[1] in
            (backup-passphrase)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(boot-mode)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(logging)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(network)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(time)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(tls-certificate)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(tls-generate)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(unlock-passphrase)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(env)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_nethsm__env_commands" \
"*::: :->env" \
&& ret=0

    case $state in
    (env)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-env-command-$line[1]:"
        case $line[1] in
            (add)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_nethsm__env__add_commands" \
"*::: :->add" \
&& ret=0

    case $state in
    (add)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-env-add-command-$line[1]:"
        case $line[1] in
            (credentials)
_arguments "${_arguments_options[@]}" : \
'-p+[The path to a file containing the passphrase]:PASSPHRASE_FILE:_default' \
'--passphrase-file=[The path to a file containing the passphrase]:PASSPHRASE_FILE:_default' \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-w[Whether to prompt for and store a passphrase for the user]' \
'--with-passphrase[Whether to prompt for and store a passphrase for the user]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':name -- The name of the user on the target device:_default' \
'::role -- The optional role of the user on the target device:_default' \
&& ret=0
;;
(device)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':url -- The URL of the device API:_default' \
':tls_security -- The TLS connection security for the device:_default' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_nethsm__env__add__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-env-add-help-command-$line[1]:"
        case $line[1] in
            (credentials)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(device)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(delete)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_nethsm__env__delete_commands" \
"*::: :->delete" \
&& ret=0

    case $state in
    (delete)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-env-delete-command-$line[1]:"
        case $line[1] in
            (credentials)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':name -- The user name matching the credentials to be deleted:_default' \
&& ret=0
;;
(device)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_nethsm__env__delete__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-env-delete-help-command-$line[1]:"
        case $line[1] in
            (credentials)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(device)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(list)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_nethsm__env__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-env-help-command-$line[1]:"
        case $line[1] in
            (add)
_arguments "${_arguments_options[@]}" : \
":: :_nethsm__env__help__add_commands" \
"*::: :->add" \
&& ret=0

    case $state in
    (add)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-env-help-add-command-$line[1]:"
        case $line[1] in
            (credentials)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(device)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(delete)
_arguments "${_arguments_options[@]}" : \
":: :_nethsm__env__help__delete_commands" \
"*::: :->delete" \
&& ret=0

    case $state in
    (delete)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-env-help-delete-command-$line[1]:"
        case $line[1] in
            (credentials)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(device)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(health)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_nethsm__health_commands" \
"*::: :->health" \
&& ret=0

    case $state in
    (health)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-health-command-$line[1]:"
        case $line[1] in
            (alive)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(ready)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(state)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_nethsm__health__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-health-help-command-$line[1]:"
        case $line[1] in
            (alive)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(ready)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(state)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(info)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(key)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_nethsm__key_commands" \
"*::: :->key" \
&& ret=0

    case $state in
    (key)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-key-command-$line[1]:"
        case $line[1] in
            (cert)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_nethsm__key__cert_commands" \
"*::: :->cert" \
&& ret=0

    case $state in
    (cert)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-key-cert-command-$line[1]:"
        case $line[1] in
            (delete)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':key_id -- The ID of the key, for which to delete the certificate:_default' \
&& ret=0
;;
(get)
_arguments "${_arguments_options[@]}" : \
'-o+[The optional path to a specific output file]:OUTPUT:_files' \
'--output=[The optional path to a specific output file]:OUTPUT:_files' \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-f[Write to output file even if it exists already]' \
'--force[Write to output file even if it exists already]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':key_id -- The ID of the key, for which to retrieve the certificate:_default' \
&& ret=0
;;
(import)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':key_id -- The ID of the key, for which to import the certificate:_default' \
':cert_file -- The path to the certificate file to import:_files' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_nethsm__key__cert__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-key-cert-help-command-$line[1]:"
        case $line[1] in
            (delete)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(get)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(import)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(csr)
_arguments "${_arguments_options[@]}" : \
'-o+[The optional path to a specific output file]:OUTPUT:_files' \
'--output=[The optional path to a specific output file]:OUTPUT:_files' \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-f[Write to output file even if it exists already]' \
'--force[Write to output file even if it exists already]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':key_id -- The key ID for which to create a CSR:_default' \
':common_name -- The mandatory "Common Name" (CN) attribute for the CSR:_default' \
'::org_name -- The optional "Organization Name" (O) attribute for the CSR:_default' \
'::org_unit -- The optional "Organizational Unit" (OU) attribute for the CSR:_default' \
'::locality -- The optional "Locality" (L) attribute for the CSR:_default' \
'::state -- The optional "State" (ST) attribute for the CSR:_default' \
'::country -- The optional "Country" (C) attribute for the CSR:_default' \
'::email -- The optional "Email Address" (EMAIL) attribute for the CSR:_default' \
&& ret=0
;;
(decrypt)
_arguments "${_arguments_options[@]}" : \
'-i+[The path to a file containing the initialization vector (IV) for symmetric decryption]:INITIALIZATION_VECTOR:_files' \
'--initialization-vector=[The path to a file containing the initialization vector (IV) for symmetric decryption]:INITIALIZATION_VECTOR:_files' \
'-o+[The path to a specific file to write the decrypted message to]:OUTPUT:_files' \
'--output=[The path to a specific file to write the decrypted message to]:OUTPUT:_files' \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-f[Write to output file even if it exists already]' \
'--force[Write to output file even if it exists already]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':key_id -- The ID of the key to use for decryption:_default' \
':message -- The path to an encrypted message to decrypt:_files' \
'::decrypt_mode -- The decryption mode to use:_default' \
&& ret=0
;;
(encrypt)
_arguments "${_arguments_options[@]}" : \
'-i+[The path to a file containing the initialization vector (IV) for symmetric encryption]:INITIALIZATION_VECTOR:_files' \
'--initialization-vector=[The path to a file containing the initialization vector (IV) for symmetric encryption]:INITIALIZATION_VECTOR:_files' \
'-o+[The path to a specific file to write the encrypted message to]:OUTPUT:_files' \
'--output=[The path to a specific file to write the encrypted message to]:OUTPUT:_files' \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-f[Write to output file even if it exists already]' \
'--force[Write to output file even if it exists already]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':key_id -- The ID of the key to use for encryption:_default' \
':message -- The path to a message to encrypt:_files' \
'::encrypt_mode -- The encryption mode to use:_default' \
&& ret=0
;;
(generate)
_arguments "${_arguments_options[@]}" : \
'-L+[The optional bit length of the generated key]:LENGTH:_default' \
'--length=[The optional bit length of the generated key]:LENGTH:_default' \
'-k+[An optional unique ID that is assigned to the generated key]:KEY_ID:_default' \
'--key-id=[An optional unique ID that is assigned to the generated key]:KEY_ID:_default' \
'*-t+[An optional list of tags that are assigned to the generated key]:TAGS:_default' \
'*--tags=[An optional list of tags that are assigned to the generated key]:TAGS:_default' \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::key_type -- The optional type of key to generate:_default' \
'*::key_mechanisms -- The mechanisms provided by the generated key:_default' \
&& ret=0
;;
(get)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':key_id -- The ID of the key, for which to show information for:_default' \
&& ret=0
;;
(import)
_arguments "${_arguments_options[@]}" : \
'--format=[The format of key to import]:FORMAT:_default' \
'-k+[An optional unique ID that is assigned to the imported key]:KEY_ID:_default' \
'--key-id=[An optional unique ID that is assigned to the imported key]:KEY_ID:_default' \
'*-t+[An optional list of tags that are assigned to the imported key]:TAGS:_default' \
'*--tags=[An optional list of tags that are assigned to the imported key]:TAGS:_default' \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':key_type -- The type of key to import:_default' \
':key_data -- The path to a PKCS#8 private key in ASN.1 DER-encoded format:_files' \
'*::key_mechanisms -- The mechanisms provided by the imported key:_default' \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::filter -- A filter to apply to the list of key IDs:_default' \
&& ret=0
;;
(public-key)
_arguments "${_arguments_options[@]}" : \
'-o+[The optional path to a specific output file]:OUTPUT:_files' \
'--output=[The optional path to a specific output file]:OUTPUT:_files' \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-f[Write to output file even if it exists already]' \
'--force[Write to output file even if it exists already]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':key_id -- The ID of the key to get the public key for:_default' \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':key_id -- The ID of the key that is removed:_default' \
&& ret=0
;;
(sign)
_arguments "${_arguments_options[@]}" : \
'-o+[The optional path to a specific file that the signature is written to]:OUTPUT:_files' \
'--output=[The optional path to a specific file that the signature is written to]:OUTPUT:_files' \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-f[Write to output file even if it exists already]' \
'--force[Write to output file even if it exists already]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':key_id -- The ID of the key to use for signing the message:_default' \
':signature_type -- The signature type to use for the signature:_default' \
':message -- The path to a message for which to create a signature:_files' \
&& ret=0
;;
(tag)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':key_id -- The ID of the key for which a tag is added:_default' \
':tag -- The tag to add to the key:_default' \
&& ret=0
;;
(untag)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':key_id -- The ID of the key for which a tag is removed:_default' \
':tag -- The tag to remove from the key:_default' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_nethsm__key__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-key-help-command-$line[1]:"
        case $line[1] in
            (cert)
_arguments "${_arguments_options[@]}" : \
":: :_nethsm__key__help__cert_commands" \
"*::: :->cert" \
&& ret=0

    case $state in
    (cert)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-key-help-cert-command-$line[1]:"
        case $line[1] in
            (delete)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(get)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(import)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(csr)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(decrypt)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(encrypt)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(generate)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(get)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(import)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(public-key)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(sign)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(tag)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(untag)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(lock)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(metrics)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(namespace)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_nethsm__namespace_commands" \
"*::: :->namespace" \
&& ret=0

    case $state in
    (namespace)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-namespace-command-$line[1]:"
        case $line[1] in
            (add)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':name -- The name of the namespace that is created:_default' \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':name -- The name of the namespace to remove:_default' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_nethsm__namespace__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-namespace-help-command-$line[1]:"
        case $line[1] in
            (add)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(openpgp)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_nethsm__openpgp_commands" \
"*::: :->openpgp" \
&& ret=0

    case $state in
    (openpgp)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-openpgp-command-$line[1]:"
        case $line[1] in
            (add)
_arguments "${_arguments_options[@]}" : \
'-t+[The optional creation time of the certificate (defaults to now)]:TIME:_default' \
'--time=[The optional creation time of the certificate (defaults to now)]:TIME:_default' \
'-v+[The OpenPGP version the certificate is created with (defaults to "4")]:VERSION:_default' \
'--version=[The OpenPGP version the certificate is created with (defaults to "4")]:VERSION:_default' \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'--can-sign[Sets the signing key flag (default to set)]' \
'--cannot-sign[Clears the signing key flag]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':key_id -- The ID of the key to use:_default' \
':user_id -- The User ID to use for the key:_default' \
&& ret=0
;;
(import)
_arguments "${_arguments_options[@]}" : \
'-k+[An optional unique ID that is assigned to the imported key]:KEY_ID:_default' \
'--key-id=[An optional unique ID that is assigned to the imported key]:KEY_ID:_default' \
'*-t+[An optional list of tags that are assigned to the imported key]:TAGS:_default' \
'*--tags=[An optional list of tags that are assigned to the imported key]:TAGS:_default' \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':tsk_file -- The path to the Transferable Secret Key file to import:_files' \
&& ret=0
;;
(sign)
_arguments "${_arguments_options[@]}" : \
'-o+[The optional path to a specific output file]:OUTPUT:_files' \
'--output=[The optional path to a specific output file]:OUTPUT:_files' \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-f[Write to output file even if it exists already]' \
'--force[Write to output file even if it exists already]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':key_id -- The ID of the key to use:_default' \
':message -- The path to a message for which to create a signature:_files' \
&& ret=0
;;
(sign-state)
_arguments "${_arguments_options[@]}" : \
'-o+[The optional path to a specific output file]:OUTPUT:_files' \
'--output=[The optional path to a specific output file]:OUTPUT:_files' \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-f[Write to output file even if it exists already]' \
'--force[Write to output file even if it exists already]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':key_id -- The ID of the key to use:_default' \
':input -- The path to a valid signature request file:_files' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_nethsm__openpgp__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-openpgp-help-command-$line[1]:"
        case $line[1] in
            (add)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(import)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(sign)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(sign-state)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(provision)
_arguments "${_arguments_options[@]}" : \
'-A+[The path to a file containing the admin passphrase]:ADMIN_PASSPHRASE_FILE:_default' \
'--admin-passphrase-file=[The path to a file containing the admin passphrase]:ADMIN_PASSPHRASE_FILE:_default' \
'-s+[The initial system time for the device]:SYSTEM_TIME:_default' \
'--system-time=[The initial system time for the device]:SYSTEM_TIME:_default' \
'-U+[The path to a file containing the unlock passphrase]:UNLOCK_PASSPHRASE_FILE:_default' \
'--unlock-passphrase-file=[The path to a file containing the unlock passphrase]:UNLOCK_PASSPHRASE_FILE:_default' \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(random)
_arguments "${_arguments_options[@]}" : \
'-o+[The optional path to a specific output file]:OUTPUT:_files' \
'--output=[The optional path to a specific output file]:OUTPUT:_files' \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-f[Write to output file even if it exists already]' \
'--force[Write to output file even if it exists already]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':length -- The number of random bytes to return:_default' \
&& ret=0
;;
(system)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_nethsm__system_commands" \
"*::: :->system" \
&& ret=0

    case $state in
    (system)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-system-command-$line[1]:"
        case $line[1] in
            (backup)
_arguments "${_arguments_options[@]}" : \
'-o+[The optional path to a specific output file]:OUTPUT:_files' \
'--output=[The optional path to a specific output file]:OUTPUT:_files' \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-f[Write to output file even if it exists already]' \
'--force[Write to output file even if it exists already]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(factory-reset)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(info)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(reboot)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(restore)
_arguments "${_arguments_options[@]}" : \
'-b+[The path to a file containing the backup passphrase]:BACKUP_PASSPHRASE_FILE:_default' \
'--backup-passphrase-file=[The path to a file containing the backup passphrase]:BACKUP_PASSPHRASE_FILE:_default' \
'-s+[The new system time for the device]:SYSTEM_TIME:_default' \
'--system-time=[The new system time for the device]:SYSTEM_TIME:_default' \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':input -- The path to a valid NetHSM backup file:_files' \
&& ret=0
;;
(shutdown)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(upload-update)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':input -- The path to an update file:_files' \
&& ret=0
;;
(cancel-update)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(commit-update)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(validate-backup)
_arguments "${_arguments_options[@]}" : \
'-b+[The path to a file containing the backup passphrase]:BACKUP_PASSPHRASE_FILE:_default' \
'--backup-passphrase-file=[The path to a file containing the backup passphrase]:BACKUP_PASSPHRASE_FILE:_default' \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':input -- The path to the backup file to validate:_files' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_nethsm__system__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-system-help-command-$line[1]:"
        case $line[1] in
            (backup)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(factory-reset)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(info)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(reboot)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(restore)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(shutdown)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(upload-update)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(cancel-update)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(commit-update)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(validate-backup)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(unlock)
_arguments "${_arguments_options[@]}" : \
'-U+[The path to a file containing the unlock passphrase]:UNLOCK_PASSPHRASE_FILE:_default' \
'--unlock-passphrase-file=[The path to a file containing the unlock passphrase]:UNLOCK_PASSPHRASE_FILE:_default' \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(user)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_nethsm__user_commands" \
"*::: :->user" \
&& ret=0

    case $state in
    (user)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-user-command-$line[1]:"
        case $line[1] in
            (add)
_arguments "${_arguments_options[@]}" : \
'-p+[The path to a file containing the new user'\''s passphrase]:PASSPHRASE_FILE:_default' \
'--passphrase-file=[The path to a file containing the new user'\''s passphrase]:PASSPHRASE_FILE:_default' \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':real_name -- The real name of the user that is created:_default' \
'::role -- The role of the user that is created:_default' \
'::name -- A unique name for the user that is created:_default' \
&& ret=0
;;
(get)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':name -- The unique name of a user on the target device:_default' \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(passphrase)
_arguments "${_arguments_options[@]}" : \
'-p+[The path to a file containing the user'\''s new passphrase]:PASSPHRASE_FILE:_default' \
'--passphrase-file=[The path to a file containing the user'\''s new passphrase]:PASSPHRASE_FILE:_default' \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':name -- The name of the user on the target device:_default' \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':name -- The name of the user to remove:_default' \
&& ret=0
;;
(tag)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':name -- The name of the user for which to add a tag:_default' \
':tag -- The tag to add for a user:_default' \
&& ret=0
;;
(untag)
_arguments "${_arguments_options[@]}" : \
'*-a+[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'*--auth-passphrase-file=[The path to a file containing a passphrase for authentication]:AUTH_PASSPHRASE_FILE:_default' \
'-c+[The path to a custom configuration file]:CONFIG:_files' \
'--config=[The path to a custom configuration file]:CONFIG:_files' \
'-l+[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'--label=[A label uniquely identifying a device in the configuration file]:LABEL:_default' \
'*-u+[A user name which is used for the command]:USER:_default' \
'*--user=[A user name which is used for the command]:USER:_default' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':name -- The name of the user from which to remove a tag:_default' \
':tag -- The tag to remove from a user:_default' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_nethsm__user__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-user-help-command-$line[1]:"
        case $line[1] in
            (add)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(get)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(passphrase)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(tag)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(untag)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_nethsm__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-help-command-$line[1]:"
        case $line[1] in
            (config)
_arguments "${_arguments_options[@]}" : \
":: :_nethsm__help__config_commands" \
"*::: :->config" \
&& ret=0

    case $state in
    (config)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-help-config-command-$line[1]:"
        case $line[1] in
            (get)
_arguments "${_arguments_options[@]}" : \
":: :_nethsm__help__config__get_commands" \
"*::: :->get" \
&& ret=0

    case $state in
    (get)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-help-config-get-command-$line[1]:"
        case $line[1] in
            (boot-mode)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(logging)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(network)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(time)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(tls-certificate)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(tls-csr)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(tls-public-key)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(set)
_arguments "${_arguments_options[@]}" : \
":: :_nethsm__help__config__set_commands" \
"*::: :->set" \
&& ret=0

    case $state in
    (set)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-help-config-set-command-$line[1]:"
        case $line[1] in
            (backup-passphrase)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(boot-mode)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(logging)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(network)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(time)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(tls-certificate)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(tls-generate)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(unlock-passphrase)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(env)
_arguments "${_arguments_options[@]}" : \
":: :_nethsm__help__env_commands" \
"*::: :->env" \
&& ret=0

    case $state in
    (env)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-help-env-command-$line[1]:"
        case $line[1] in
            (add)
_arguments "${_arguments_options[@]}" : \
":: :_nethsm__help__env__add_commands" \
"*::: :->add" \
&& ret=0

    case $state in
    (add)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-help-env-add-command-$line[1]:"
        case $line[1] in
            (credentials)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(device)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(delete)
_arguments "${_arguments_options[@]}" : \
":: :_nethsm__help__env__delete_commands" \
"*::: :->delete" \
&& ret=0

    case $state in
    (delete)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-help-env-delete-command-$line[1]:"
        case $line[1] in
            (credentials)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(device)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(health)
_arguments "${_arguments_options[@]}" : \
":: :_nethsm__help__health_commands" \
"*::: :->health" \
&& ret=0

    case $state in
    (health)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-help-health-command-$line[1]:"
        case $line[1] in
            (alive)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(ready)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(state)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(info)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(key)
_arguments "${_arguments_options[@]}" : \
":: :_nethsm__help__key_commands" \
"*::: :->key" \
&& ret=0

    case $state in
    (key)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-help-key-command-$line[1]:"
        case $line[1] in
            (cert)
_arguments "${_arguments_options[@]}" : \
":: :_nethsm__help__key__cert_commands" \
"*::: :->cert" \
&& ret=0

    case $state in
    (cert)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-help-key-cert-command-$line[1]:"
        case $line[1] in
            (delete)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(get)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(import)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(csr)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(decrypt)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(encrypt)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(generate)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(get)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(import)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(public-key)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(sign)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(tag)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(untag)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(lock)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(metrics)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(namespace)
_arguments "${_arguments_options[@]}" : \
":: :_nethsm__help__namespace_commands" \
"*::: :->namespace" \
&& ret=0

    case $state in
    (namespace)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-help-namespace-command-$line[1]:"
        case $line[1] in
            (add)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(openpgp)
_arguments "${_arguments_options[@]}" : \
":: :_nethsm__help__openpgp_commands" \
"*::: :->openpgp" \
&& ret=0

    case $state in
    (openpgp)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-help-openpgp-command-$line[1]:"
        case $line[1] in
            (add)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(import)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(sign)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(sign-state)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(provision)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(random)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(system)
_arguments "${_arguments_options[@]}" : \
":: :_nethsm__help__system_commands" \
"*::: :->system" \
&& ret=0

    case $state in
    (system)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-help-system-command-$line[1]:"
        case $line[1] in
            (backup)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(factory-reset)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(info)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(reboot)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(restore)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(shutdown)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(upload-update)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(cancel-update)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(commit-update)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(validate-backup)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(unlock)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(user)
_arguments "${_arguments_options[@]}" : \
":: :_nethsm__help__user_commands" \
"*::: :->user" \
&& ret=0

    case $state in
    (user)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:nethsm-help-user-command-$line[1]:"
        case $line[1] in
            (add)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(get)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(passphrase)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(tag)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(untag)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
}

(( $+functions[_nethsm_commands] )) ||
_nethsm_commands() {
    local commands; commands=(
'config:Manage the configuration of a device' \
'env:Manage environments in the configuration file' \
'health:Retrieve health information for a device' \
'info:Retrieve the info for a device' \
'key:Operate on the keys of a device' \
'lock:Lock a device' \
'metrics:Get metrics' \
'namespace:Operate on namespaces of a device' \
'openpgp:OpenPGP operations' \
'provision:Provision a device' \
'random:Get random bytes from a device' \
'system:Do system actions for a device' \
'unlock:Unlock a device' \
'user:Operate on users of a device' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'nethsm commands' commands "$@"
}
(( $+functions[_nethsm__config_commands] )) ||
_nethsm__config_commands() {
    local commands; commands=(
'get:Get a configuration item for a device' \
'set:Set a configuration item for a device' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'nethsm config commands' commands "$@"
}
(( $+functions[_nethsm__config__get_commands] )) ||
_nethsm__config__get_commands() {
    local commands; commands=(
'boot-mode:Get the unattended boot configuration' \
'logging:Get the logging configuration' \
'network:Get the network configuration' \
'time:Get the time' \
'tls-certificate:Get the certificate for the TLS connection' \
'tls-csr:Get a Certificate Signing Request for the TLS certificate' \
'tls-public-key:Get the public key for the TLS connection' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'nethsm config get commands' commands "$@"
}
(( $+functions[_nethsm__config__get__boot-mode_commands] )) ||
_nethsm__config__get__boot-mode_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config get boot-mode commands' commands "$@"
}
(( $+functions[_nethsm__config__get__help_commands] )) ||
_nethsm__config__get__help_commands() {
    local commands; commands=(
'boot-mode:Get the unattended boot configuration' \
'logging:Get the logging configuration' \
'network:Get the network configuration' \
'time:Get the time' \
'tls-certificate:Get the certificate for the TLS connection' \
'tls-csr:Get a Certificate Signing Request for the TLS certificate' \
'tls-public-key:Get the public key for the TLS connection' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'nethsm config get help commands' commands "$@"
}
(( $+functions[_nethsm__config__get__help__boot-mode_commands] )) ||
_nethsm__config__get__help__boot-mode_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config get help boot-mode commands' commands "$@"
}
(( $+functions[_nethsm__config__get__help__help_commands] )) ||
_nethsm__config__get__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config get help help commands' commands "$@"
}
(( $+functions[_nethsm__config__get__help__logging_commands] )) ||
_nethsm__config__get__help__logging_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config get help logging commands' commands "$@"
}
(( $+functions[_nethsm__config__get__help__network_commands] )) ||
_nethsm__config__get__help__network_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config get help network commands' commands "$@"
}
(( $+functions[_nethsm__config__get__help__time_commands] )) ||
_nethsm__config__get__help__time_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config get help time commands' commands "$@"
}
(( $+functions[_nethsm__config__get__help__tls-certificate_commands] )) ||
_nethsm__config__get__help__tls-certificate_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config get help tls-certificate commands' commands "$@"
}
(( $+functions[_nethsm__config__get__help__tls-csr_commands] )) ||
_nethsm__config__get__help__tls-csr_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config get help tls-csr commands' commands "$@"
}
(( $+functions[_nethsm__config__get__help__tls-public-key_commands] )) ||
_nethsm__config__get__help__tls-public-key_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config get help tls-public-key commands' commands "$@"
}
(( $+functions[_nethsm__config__get__logging_commands] )) ||
_nethsm__config__get__logging_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config get logging commands' commands "$@"
}
(( $+functions[_nethsm__config__get__network_commands] )) ||
_nethsm__config__get__network_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config get network commands' commands "$@"
}
(( $+functions[_nethsm__config__get__time_commands] )) ||
_nethsm__config__get__time_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config get time commands' commands "$@"
}
(( $+functions[_nethsm__config__get__tls-certificate_commands] )) ||
_nethsm__config__get__tls-certificate_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config get tls-certificate commands' commands "$@"
}
(( $+functions[_nethsm__config__get__tls-csr_commands] )) ||
_nethsm__config__get__tls-csr_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config get tls-csr commands' commands "$@"
}
(( $+functions[_nethsm__config__get__tls-public-key_commands] )) ||
_nethsm__config__get__tls-public-key_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config get tls-public-key commands' commands "$@"
}
(( $+functions[_nethsm__config__help_commands] )) ||
_nethsm__config__help_commands() {
    local commands; commands=(
'get:Get a configuration item for a device' \
'set:Set a configuration item for a device' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'nethsm config help commands' commands "$@"
}
(( $+functions[_nethsm__config__help__get_commands] )) ||
_nethsm__config__help__get_commands() {
    local commands; commands=(
'boot-mode:Get the unattended boot configuration' \
'logging:Get the logging configuration' \
'network:Get the network configuration' \
'time:Get the time' \
'tls-certificate:Get the certificate for the TLS connection' \
'tls-csr:Get a Certificate Signing Request for the TLS certificate' \
'tls-public-key:Get the public key for the TLS connection' \
    )
    _describe -t commands 'nethsm config help get commands' commands "$@"
}
(( $+functions[_nethsm__config__help__get__boot-mode_commands] )) ||
_nethsm__config__help__get__boot-mode_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config help get boot-mode commands' commands "$@"
}
(( $+functions[_nethsm__config__help__get__logging_commands] )) ||
_nethsm__config__help__get__logging_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config help get logging commands' commands "$@"
}
(( $+functions[_nethsm__config__help__get__network_commands] )) ||
_nethsm__config__help__get__network_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config help get network commands' commands "$@"
}
(( $+functions[_nethsm__config__help__get__time_commands] )) ||
_nethsm__config__help__get__time_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config help get time commands' commands "$@"
}
(( $+functions[_nethsm__config__help__get__tls-certificate_commands] )) ||
_nethsm__config__help__get__tls-certificate_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config help get tls-certificate commands' commands "$@"
}
(( $+functions[_nethsm__config__help__get__tls-csr_commands] )) ||
_nethsm__config__help__get__tls-csr_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config help get tls-csr commands' commands "$@"
}
(( $+functions[_nethsm__config__help__get__tls-public-key_commands] )) ||
_nethsm__config__help__get__tls-public-key_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config help get tls-public-key commands' commands "$@"
}
(( $+functions[_nethsm__config__help__help_commands] )) ||
_nethsm__config__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config help help commands' commands "$@"
}
(( $+functions[_nethsm__config__help__set_commands] )) ||
_nethsm__config__help__set_commands() {
    local commands; commands=(
'backup-passphrase:Set the backup passphrase' \
'boot-mode:Set the unattended boot mode' \
'logging:Set the logging configuration' \
'network:Set the network configuration' \
'time:Set the time' \
'tls-certificate:Set a new TLS certificate' \
'tls-generate:Generate a new TLS certificate' \
'unlock-passphrase:Set the unlock passphrase' \
    )
    _describe -t commands 'nethsm config help set commands' commands "$@"
}
(( $+functions[_nethsm__config__help__set__backup-passphrase_commands] )) ||
_nethsm__config__help__set__backup-passphrase_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config help set backup-passphrase commands' commands "$@"
}
(( $+functions[_nethsm__config__help__set__boot-mode_commands] )) ||
_nethsm__config__help__set__boot-mode_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config help set boot-mode commands' commands "$@"
}
(( $+functions[_nethsm__config__help__set__logging_commands] )) ||
_nethsm__config__help__set__logging_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config help set logging commands' commands "$@"
}
(( $+functions[_nethsm__config__help__set__network_commands] )) ||
_nethsm__config__help__set__network_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config help set network commands' commands "$@"
}
(( $+functions[_nethsm__config__help__set__time_commands] )) ||
_nethsm__config__help__set__time_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config help set time commands' commands "$@"
}
(( $+functions[_nethsm__config__help__set__tls-certificate_commands] )) ||
_nethsm__config__help__set__tls-certificate_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config help set tls-certificate commands' commands "$@"
}
(( $+functions[_nethsm__config__help__set__tls-generate_commands] )) ||
_nethsm__config__help__set__tls-generate_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config help set tls-generate commands' commands "$@"
}
(( $+functions[_nethsm__config__help__set__unlock-passphrase_commands] )) ||
_nethsm__config__help__set__unlock-passphrase_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config help set unlock-passphrase commands' commands "$@"
}
(( $+functions[_nethsm__config__set_commands] )) ||
_nethsm__config__set_commands() {
    local commands; commands=(
'backup-passphrase:Set the backup passphrase' \
'boot-mode:Set the unattended boot mode' \
'logging:Set the logging configuration' \
'network:Set the network configuration' \
'time:Set the time' \
'tls-certificate:Set a new TLS certificate' \
'tls-generate:Generate a new TLS certificate' \
'unlock-passphrase:Set the unlock passphrase' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'nethsm config set commands' commands "$@"
}
(( $+functions[_nethsm__config__set__backup-passphrase_commands] )) ||
_nethsm__config__set__backup-passphrase_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config set backup-passphrase commands' commands "$@"
}
(( $+functions[_nethsm__config__set__boot-mode_commands] )) ||
_nethsm__config__set__boot-mode_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config set boot-mode commands' commands "$@"
}
(( $+functions[_nethsm__config__set__help_commands] )) ||
_nethsm__config__set__help_commands() {
    local commands; commands=(
'backup-passphrase:Set the backup passphrase' \
'boot-mode:Set the unattended boot mode' \
'logging:Set the logging configuration' \
'network:Set the network configuration' \
'time:Set the time' \
'tls-certificate:Set a new TLS certificate' \
'tls-generate:Generate a new TLS certificate' \
'unlock-passphrase:Set the unlock passphrase' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'nethsm config set help commands' commands "$@"
}
(( $+functions[_nethsm__config__set__help__backup-passphrase_commands] )) ||
_nethsm__config__set__help__backup-passphrase_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config set help backup-passphrase commands' commands "$@"
}
(( $+functions[_nethsm__config__set__help__boot-mode_commands] )) ||
_nethsm__config__set__help__boot-mode_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config set help boot-mode commands' commands "$@"
}
(( $+functions[_nethsm__config__set__help__help_commands] )) ||
_nethsm__config__set__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config set help help commands' commands "$@"
}
(( $+functions[_nethsm__config__set__help__logging_commands] )) ||
_nethsm__config__set__help__logging_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config set help logging commands' commands "$@"
}
(( $+functions[_nethsm__config__set__help__network_commands] )) ||
_nethsm__config__set__help__network_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config set help network commands' commands "$@"
}
(( $+functions[_nethsm__config__set__help__time_commands] )) ||
_nethsm__config__set__help__time_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config set help time commands' commands "$@"
}
(( $+functions[_nethsm__config__set__help__tls-certificate_commands] )) ||
_nethsm__config__set__help__tls-certificate_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config set help tls-certificate commands' commands "$@"
}
(( $+functions[_nethsm__config__set__help__tls-generate_commands] )) ||
_nethsm__config__set__help__tls-generate_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config set help tls-generate commands' commands "$@"
}
(( $+functions[_nethsm__config__set__help__unlock-passphrase_commands] )) ||
_nethsm__config__set__help__unlock-passphrase_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config set help unlock-passphrase commands' commands "$@"
}
(( $+functions[_nethsm__config__set__logging_commands] )) ||
_nethsm__config__set__logging_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config set logging commands' commands "$@"
}
(( $+functions[_nethsm__config__set__network_commands] )) ||
_nethsm__config__set__network_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config set network commands' commands "$@"
}
(( $+functions[_nethsm__config__set__time_commands] )) ||
_nethsm__config__set__time_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config set time commands' commands "$@"
}
(( $+functions[_nethsm__config__set__tls-certificate_commands] )) ||
_nethsm__config__set__tls-certificate_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config set tls-certificate commands' commands "$@"
}
(( $+functions[_nethsm__config__set__tls-generate_commands] )) ||
_nethsm__config__set__tls-generate_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config set tls-generate commands' commands "$@"
}
(( $+functions[_nethsm__config__set__unlock-passphrase_commands] )) ||
_nethsm__config__set__unlock-passphrase_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm config set unlock-passphrase commands' commands "$@"
}
(( $+functions[_nethsm__env_commands] )) ||
_nethsm__env_commands() {
    local commands; commands=(
'add:Add a configuration item' \
'delete:Delete a configuration item' \
'list:List all items in the configuration file' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'nethsm env commands' commands "$@"
}
(( $+functions[_nethsm__env__add_commands] )) ||
_nethsm__env__add_commands() {
    local commands; commands=(
'credentials:Add credentials for a device in the configuration' \
'device:Add a device to the configuration' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'nethsm env add commands' commands "$@"
}
(( $+functions[_nethsm__env__add__credentials_commands] )) ||
_nethsm__env__add__credentials_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm env add credentials commands' commands "$@"
}
(( $+functions[_nethsm__env__add__device_commands] )) ||
_nethsm__env__add__device_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm env add device commands' commands "$@"
}
(( $+functions[_nethsm__env__add__help_commands] )) ||
_nethsm__env__add__help_commands() {
    local commands; commands=(
'credentials:Add credentials for a device in the configuration' \
'device:Add a device to the configuration' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'nethsm env add help commands' commands "$@"
}
(( $+functions[_nethsm__env__add__help__credentials_commands] )) ||
_nethsm__env__add__help__credentials_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm env add help credentials commands' commands "$@"
}
(( $+functions[_nethsm__env__add__help__device_commands] )) ||
_nethsm__env__add__help__device_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm env add help device commands' commands "$@"
}
(( $+functions[_nethsm__env__add__help__help_commands] )) ||
_nethsm__env__add__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm env add help help commands' commands "$@"
}
(( $+functions[_nethsm__env__delete_commands] )) ||
_nethsm__env__delete_commands() {
    local commands; commands=(
'credentials:Delete credentials for a device' \
'device:Delete a device' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'nethsm env delete commands' commands "$@"
}
(( $+functions[_nethsm__env__delete__credentials_commands] )) ||
_nethsm__env__delete__credentials_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm env delete credentials commands' commands "$@"
}
(( $+functions[_nethsm__env__delete__device_commands] )) ||
_nethsm__env__delete__device_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm env delete device commands' commands "$@"
}
(( $+functions[_nethsm__env__delete__help_commands] )) ||
_nethsm__env__delete__help_commands() {
    local commands; commands=(
'credentials:Delete credentials for a device' \
'device:Delete a device' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'nethsm env delete help commands' commands "$@"
}
(( $+functions[_nethsm__env__delete__help__credentials_commands] )) ||
_nethsm__env__delete__help__credentials_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm env delete help credentials commands' commands "$@"
}
(( $+functions[_nethsm__env__delete__help__device_commands] )) ||
_nethsm__env__delete__help__device_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm env delete help device commands' commands "$@"
}
(( $+functions[_nethsm__env__delete__help__help_commands] )) ||
_nethsm__env__delete__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm env delete help help commands' commands "$@"
}
(( $+functions[_nethsm__env__help_commands] )) ||
_nethsm__env__help_commands() {
    local commands; commands=(
'add:Add a configuration item' \
'delete:Delete a configuration item' \
'list:List all items in the configuration file' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'nethsm env help commands' commands "$@"
}
(( $+functions[_nethsm__env__help__add_commands] )) ||
_nethsm__env__help__add_commands() {
    local commands; commands=(
'credentials:Add credentials for a device in the configuration' \
'device:Add a device to the configuration' \
    )
    _describe -t commands 'nethsm env help add commands' commands "$@"
}
(( $+functions[_nethsm__env__help__add__credentials_commands] )) ||
_nethsm__env__help__add__credentials_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm env help add credentials commands' commands "$@"
}
(( $+functions[_nethsm__env__help__add__device_commands] )) ||
_nethsm__env__help__add__device_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm env help add device commands' commands "$@"
}
(( $+functions[_nethsm__env__help__delete_commands] )) ||
_nethsm__env__help__delete_commands() {
    local commands; commands=(
'credentials:Delete credentials for a device' \
'device:Delete a device' \
    )
    _describe -t commands 'nethsm env help delete commands' commands "$@"
}
(( $+functions[_nethsm__env__help__delete__credentials_commands] )) ||
_nethsm__env__help__delete__credentials_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm env help delete credentials commands' commands "$@"
}
(( $+functions[_nethsm__env__help__delete__device_commands] )) ||
_nethsm__env__help__delete__device_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm env help delete device commands' commands "$@"
}
(( $+functions[_nethsm__env__help__help_commands] )) ||
_nethsm__env__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm env help help commands' commands "$@"
}
(( $+functions[_nethsm__env__help__list_commands] )) ||
_nethsm__env__help__list_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm env help list commands' commands "$@"
}
(( $+functions[_nethsm__env__list_commands] )) ||
_nethsm__env__list_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm env list commands' commands "$@"
}
(( $+functions[_nethsm__health_commands] )) ||
_nethsm__health_commands() {
    local commands; commands=(
'alive:Check whether a device is in locked or unprovisioned state' \
'ready:Check whether a device is in operational state' \
'state:Retrieve the state for a device' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'nethsm health commands' commands "$@"
}
(( $+functions[_nethsm__health__alive_commands] )) ||
_nethsm__health__alive_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm health alive commands' commands "$@"
}
(( $+functions[_nethsm__health__help_commands] )) ||
_nethsm__health__help_commands() {
    local commands; commands=(
'alive:Check whether a device is in locked or unprovisioned state' \
'ready:Check whether a device is in operational state' \
'state:Retrieve the state for a device' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'nethsm health help commands' commands "$@"
}
(( $+functions[_nethsm__health__help__alive_commands] )) ||
_nethsm__health__help__alive_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm health help alive commands' commands "$@"
}
(( $+functions[_nethsm__health__help__help_commands] )) ||
_nethsm__health__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm health help help commands' commands "$@"
}
(( $+functions[_nethsm__health__help__ready_commands] )) ||
_nethsm__health__help__ready_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm health help ready commands' commands "$@"
}
(( $+functions[_nethsm__health__help__state_commands] )) ||
_nethsm__health__help__state_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm health help state commands' commands "$@"
}
(( $+functions[_nethsm__health__ready_commands] )) ||
_nethsm__health__ready_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm health ready commands' commands "$@"
}
(( $+functions[_nethsm__health__state_commands] )) ||
_nethsm__health__state_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm health state commands' commands "$@"
}
(( $+functions[_nethsm__help_commands] )) ||
_nethsm__help_commands() {
    local commands; commands=(
'config:Manage the configuration of a device' \
'env:Manage environments in the configuration file' \
'health:Retrieve health information for a device' \
'info:Retrieve the info for a device' \
'key:Operate on the keys of a device' \
'lock:Lock a device' \
'metrics:Get metrics' \
'namespace:Operate on namespaces of a device' \
'openpgp:OpenPGP operations' \
'provision:Provision a device' \
'random:Get random bytes from a device' \
'system:Do system actions for a device' \
'unlock:Unlock a device' \
'user:Operate on users of a device' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'nethsm help commands' commands "$@"
}
(( $+functions[_nethsm__help__config_commands] )) ||
_nethsm__help__config_commands() {
    local commands; commands=(
'get:Get a configuration item for a device' \
'set:Set a configuration item for a device' \
    )
    _describe -t commands 'nethsm help config commands' commands "$@"
}
(( $+functions[_nethsm__help__config__get_commands] )) ||
_nethsm__help__config__get_commands() {
    local commands; commands=(
'boot-mode:Get the unattended boot configuration' \
'logging:Get the logging configuration' \
'network:Get the network configuration' \
'time:Get the time' \
'tls-certificate:Get the certificate for the TLS connection' \
'tls-csr:Get a Certificate Signing Request for the TLS certificate' \
'tls-public-key:Get the public key for the TLS connection' \
    )
    _describe -t commands 'nethsm help config get commands' commands "$@"
}
(( $+functions[_nethsm__help__config__get__boot-mode_commands] )) ||
_nethsm__help__config__get__boot-mode_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help config get boot-mode commands' commands "$@"
}
(( $+functions[_nethsm__help__config__get__logging_commands] )) ||
_nethsm__help__config__get__logging_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help config get logging commands' commands "$@"
}
(( $+functions[_nethsm__help__config__get__network_commands] )) ||
_nethsm__help__config__get__network_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help config get network commands' commands "$@"
}
(( $+functions[_nethsm__help__config__get__time_commands] )) ||
_nethsm__help__config__get__time_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help config get time commands' commands "$@"
}
(( $+functions[_nethsm__help__config__get__tls-certificate_commands] )) ||
_nethsm__help__config__get__tls-certificate_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help config get tls-certificate commands' commands "$@"
}
(( $+functions[_nethsm__help__config__get__tls-csr_commands] )) ||
_nethsm__help__config__get__tls-csr_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help config get tls-csr commands' commands "$@"
}
(( $+functions[_nethsm__help__config__get__tls-public-key_commands] )) ||
_nethsm__help__config__get__tls-public-key_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help config get tls-public-key commands' commands "$@"
}
(( $+functions[_nethsm__help__config__set_commands] )) ||
_nethsm__help__config__set_commands() {
    local commands; commands=(
'backup-passphrase:Set the backup passphrase' \
'boot-mode:Set the unattended boot mode' \
'logging:Set the logging configuration' \
'network:Set the network configuration' \
'time:Set the time' \
'tls-certificate:Set a new TLS certificate' \
'tls-generate:Generate a new TLS certificate' \
'unlock-passphrase:Set the unlock passphrase' \
    )
    _describe -t commands 'nethsm help config set commands' commands "$@"
}
(( $+functions[_nethsm__help__config__set__backup-passphrase_commands] )) ||
_nethsm__help__config__set__backup-passphrase_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help config set backup-passphrase commands' commands "$@"
}
(( $+functions[_nethsm__help__config__set__boot-mode_commands] )) ||
_nethsm__help__config__set__boot-mode_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help config set boot-mode commands' commands "$@"
}
(( $+functions[_nethsm__help__config__set__logging_commands] )) ||
_nethsm__help__config__set__logging_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help config set logging commands' commands "$@"
}
(( $+functions[_nethsm__help__config__set__network_commands] )) ||
_nethsm__help__config__set__network_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help config set network commands' commands "$@"
}
(( $+functions[_nethsm__help__config__set__time_commands] )) ||
_nethsm__help__config__set__time_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help config set time commands' commands "$@"
}
(( $+functions[_nethsm__help__config__set__tls-certificate_commands] )) ||
_nethsm__help__config__set__tls-certificate_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help config set tls-certificate commands' commands "$@"
}
(( $+functions[_nethsm__help__config__set__tls-generate_commands] )) ||
_nethsm__help__config__set__tls-generate_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help config set tls-generate commands' commands "$@"
}
(( $+functions[_nethsm__help__config__set__unlock-passphrase_commands] )) ||
_nethsm__help__config__set__unlock-passphrase_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help config set unlock-passphrase commands' commands "$@"
}
(( $+functions[_nethsm__help__env_commands] )) ||
_nethsm__help__env_commands() {
    local commands; commands=(
'add:Add a configuration item' \
'delete:Delete a configuration item' \
'list:List all items in the configuration file' \
    )
    _describe -t commands 'nethsm help env commands' commands "$@"
}
(( $+functions[_nethsm__help__env__add_commands] )) ||
_nethsm__help__env__add_commands() {
    local commands; commands=(
'credentials:Add credentials for a device in the configuration' \
'device:Add a device to the configuration' \
    )
    _describe -t commands 'nethsm help env add commands' commands "$@"
}
(( $+functions[_nethsm__help__env__add__credentials_commands] )) ||
_nethsm__help__env__add__credentials_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help env add credentials commands' commands "$@"
}
(( $+functions[_nethsm__help__env__add__device_commands] )) ||
_nethsm__help__env__add__device_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help env add device commands' commands "$@"
}
(( $+functions[_nethsm__help__env__delete_commands] )) ||
_nethsm__help__env__delete_commands() {
    local commands; commands=(
'credentials:Delete credentials for a device' \
'device:Delete a device' \
    )
    _describe -t commands 'nethsm help env delete commands' commands "$@"
}
(( $+functions[_nethsm__help__env__delete__credentials_commands] )) ||
_nethsm__help__env__delete__credentials_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help env delete credentials commands' commands "$@"
}
(( $+functions[_nethsm__help__env__delete__device_commands] )) ||
_nethsm__help__env__delete__device_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help env delete device commands' commands "$@"
}
(( $+functions[_nethsm__help__env__list_commands] )) ||
_nethsm__help__env__list_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help env list commands' commands "$@"
}
(( $+functions[_nethsm__help__health_commands] )) ||
_nethsm__help__health_commands() {
    local commands; commands=(
'alive:Check whether a device is in locked or unprovisioned state' \
'ready:Check whether a device is in operational state' \
'state:Retrieve the state for a device' \
    )
    _describe -t commands 'nethsm help health commands' commands "$@"
}
(( $+functions[_nethsm__help__health__alive_commands] )) ||
_nethsm__help__health__alive_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help health alive commands' commands "$@"
}
(( $+functions[_nethsm__help__health__ready_commands] )) ||
_nethsm__help__health__ready_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help health ready commands' commands "$@"
}
(( $+functions[_nethsm__help__health__state_commands] )) ||
_nethsm__help__health__state_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help health state commands' commands "$@"
}
(( $+functions[_nethsm__help__help_commands] )) ||
_nethsm__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help help commands' commands "$@"
}
(( $+functions[_nethsm__help__info_commands] )) ||
_nethsm__help__info_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help info commands' commands "$@"
}
(( $+functions[_nethsm__help__key_commands] )) ||
_nethsm__help__key_commands() {
    local commands; commands=(
'cert:Operate on certificates for a key' \
'csr:Get a Certificate Signing Request for a key' \
'decrypt:Decrypt a message using a key' \
'encrypt:Encrypt a message using a key' \
'generate:Generate a new key' \
'get:Get information on a key' \
'import:Import a key' \
'list:List all key IDs' \
'public-key:Get the public key for a key' \
'remove:Remove a key' \
'sign:Sign a message using a key' \
'tag:Tag a key' \
'untag:Untag a key' \
    )
    _describe -t commands 'nethsm help key commands' commands "$@"
}
(( $+functions[_nethsm__help__key__cert_commands] )) ||
_nethsm__help__key__cert_commands() {
    local commands; commands=(
'delete:Delete the certificate for a key' \
'get:Get the certificate for a key' \
'import:Import the certificate for a key' \
    )
    _describe -t commands 'nethsm help key cert commands' commands "$@"
}
(( $+functions[_nethsm__help__key__cert__delete_commands] )) ||
_nethsm__help__key__cert__delete_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help key cert delete commands' commands "$@"
}
(( $+functions[_nethsm__help__key__cert__get_commands] )) ||
_nethsm__help__key__cert__get_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help key cert get commands' commands "$@"
}
(( $+functions[_nethsm__help__key__cert__import_commands] )) ||
_nethsm__help__key__cert__import_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help key cert import commands' commands "$@"
}
(( $+functions[_nethsm__help__key__csr_commands] )) ||
_nethsm__help__key__csr_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help key csr commands' commands "$@"
}
(( $+functions[_nethsm__help__key__decrypt_commands] )) ||
_nethsm__help__key__decrypt_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help key decrypt commands' commands "$@"
}
(( $+functions[_nethsm__help__key__encrypt_commands] )) ||
_nethsm__help__key__encrypt_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help key encrypt commands' commands "$@"
}
(( $+functions[_nethsm__help__key__generate_commands] )) ||
_nethsm__help__key__generate_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help key generate commands' commands "$@"
}
(( $+functions[_nethsm__help__key__get_commands] )) ||
_nethsm__help__key__get_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help key get commands' commands "$@"
}
(( $+functions[_nethsm__help__key__import_commands] )) ||
_nethsm__help__key__import_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help key import commands' commands "$@"
}
(( $+functions[_nethsm__help__key__list_commands] )) ||
_nethsm__help__key__list_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help key list commands' commands "$@"
}
(( $+functions[_nethsm__help__key__public-key_commands] )) ||
_nethsm__help__key__public-key_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help key public-key commands' commands "$@"
}
(( $+functions[_nethsm__help__key__remove_commands] )) ||
_nethsm__help__key__remove_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help key remove commands' commands "$@"
}
(( $+functions[_nethsm__help__key__sign_commands] )) ||
_nethsm__help__key__sign_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help key sign commands' commands "$@"
}
(( $+functions[_nethsm__help__key__tag_commands] )) ||
_nethsm__help__key__tag_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help key tag commands' commands "$@"
}
(( $+functions[_nethsm__help__key__untag_commands] )) ||
_nethsm__help__key__untag_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help key untag commands' commands "$@"
}
(( $+functions[_nethsm__help__lock_commands] )) ||
_nethsm__help__lock_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help lock commands' commands "$@"
}
(( $+functions[_nethsm__help__metrics_commands] )) ||
_nethsm__help__metrics_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help metrics commands' commands "$@"
}
(( $+functions[_nethsm__help__namespace_commands] )) ||
_nethsm__help__namespace_commands() {
    local commands; commands=(
'add:Add a namespace' \
'list:List all namespace names' \
'remove:Remove a namespace' \
    )
    _describe -t commands 'nethsm help namespace commands' commands "$@"
}
(( $+functions[_nethsm__help__namespace__add_commands] )) ||
_nethsm__help__namespace__add_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help namespace add commands' commands "$@"
}
(( $+functions[_nethsm__help__namespace__list_commands] )) ||
_nethsm__help__namespace__list_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help namespace list commands' commands "$@"
}
(( $+functions[_nethsm__help__namespace__remove_commands] )) ||
_nethsm__help__namespace__remove_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help namespace remove commands' commands "$@"
}
(( $+functions[_nethsm__help__openpgp_commands] )) ||
_nethsm__help__openpgp_commands() {
    local commands; commands=(
'add:Add an OpenPGP certificate for a key' \
'import:Import OpenPGP TSK-formatted private key' \
'sign:Create an OpenPGP signature for a message' \
'sign-state:Create an OpenPGP signature for a hasher state' \
    )
    _describe -t commands 'nethsm help openpgp commands' commands "$@"
}
(( $+functions[_nethsm__help__openpgp__add_commands] )) ||
_nethsm__help__openpgp__add_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help openpgp add commands' commands "$@"
}
(( $+functions[_nethsm__help__openpgp__import_commands] )) ||
_nethsm__help__openpgp__import_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help openpgp import commands' commands "$@"
}
(( $+functions[_nethsm__help__openpgp__sign_commands] )) ||
_nethsm__help__openpgp__sign_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help openpgp sign commands' commands "$@"
}
(( $+functions[_nethsm__help__openpgp__sign-state_commands] )) ||
_nethsm__help__openpgp__sign-state_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help openpgp sign-state commands' commands "$@"
}
(( $+functions[_nethsm__help__provision_commands] )) ||
_nethsm__help__provision_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help provision commands' commands "$@"
}
(( $+functions[_nethsm__help__random_commands] )) ||
_nethsm__help__random_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help random commands' commands "$@"
}
(( $+functions[_nethsm__help__system_commands] )) ||
_nethsm__help__system_commands() {
    local commands; commands=(
'backup:Backup the key store of a device' \
'factory-reset:Reset the device to factory settings' \
'info:Retrieve system information of a device' \
'reboot:Reboot the device' \
'restore:Restore the device from a backup' \
'shutdown:Shut down the device' \
'upload-update:Upload an update to the device' \
'cancel-update:Cancel an uploaded update on the device' \
'commit-update:Commit an uploaded update on the device' \
'validate-backup:Validate a backup file' \
    )
    _describe -t commands 'nethsm help system commands' commands "$@"
}
(( $+functions[_nethsm__help__system__backup_commands] )) ||
_nethsm__help__system__backup_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help system backup commands' commands "$@"
}
(( $+functions[_nethsm__help__system__cancel-update_commands] )) ||
_nethsm__help__system__cancel-update_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help system cancel-update commands' commands "$@"
}
(( $+functions[_nethsm__help__system__commit-update_commands] )) ||
_nethsm__help__system__commit-update_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help system commit-update commands' commands "$@"
}
(( $+functions[_nethsm__help__system__factory-reset_commands] )) ||
_nethsm__help__system__factory-reset_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help system factory-reset commands' commands "$@"
}
(( $+functions[_nethsm__help__system__info_commands] )) ||
_nethsm__help__system__info_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help system info commands' commands "$@"
}
(( $+functions[_nethsm__help__system__reboot_commands] )) ||
_nethsm__help__system__reboot_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help system reboot commands' commands "$@"
}
(( $+functions[_nethsm__help__system__restore_commands] )) ||
_nethsm__help__system__restore_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help system restore commands' commands "$@"
}
(( $+functions[_nethsm__help__system__shutdown_commands] )) ||
_nethsm__help__system__shutdown_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help system shutdown commands' commands "$@"
}
(( $+functions[_nethsm__help__system__upload-update_commands] )) ||
_nethsm__help__system__upload-update_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help system upload-update commands' commands "$@"
}
(( $+functions[_nethsm__help__system__validate-backup_commands] )) ||
_nethsm__help__system__validate-backup_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help system validate-backup commands' commands "$@"
}
(( $+functions[_nethsm__help__unlock_commands] )) ||
_nethsm__help__unlock_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help unlock commands' commands "$@"
}
(( $+functions[_nethsm__help__user_commands] )) ||
_nethsm__help__user_commands() {
    local commands; commands=(
'add:Add a user' \
'get:Get information about a user' \
'list:List all user names' \
'passphrase:Set the passphrase for a user' \
'remove:Remove a user' \
'tag:Add a tag to a user' \
'untag:Remove a tag from a user' \
    )
    _describe -t commands 'nethsm help user commands' commands "$@"
}
(( $+functions[_nethsm__help__user__add_commands] )) ||
_nethsm__help__user__add_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help user add commands' commands "$@"
}
(( $+functions[_nethsm__help__user__get_commands] )) ||
_nethsm__help__user__get_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help user get commands' commands "$@"
}
(( $+functions[_nethsm__help__user__list_commands] )) ||
_nethsm__help__user__list_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help user list commands' commands "$@"
}
(( $+functions[_nethsm__help__user__passphrase_commands] )) ||
_nethsm__help__user__passphrase_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help user passphrase commands' commands "$@"
}
(( $+functions[_nethsm__help__user__remove_commands] )) ||
_nethsm__help__user__remove_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help user remove commands' commands "$@"
}
(( $+functions[_nethsm__help__user__tag_commands] )) ||
_nethsm__help__user__tag_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help user tag commands' commands "$@"
}
(( $+functions[_nethsm__help__user__untag_commands] )) ||
_nethsm__help__user__untag_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm help user untag commands' commands "$@"
}
(( $+functions[_nethsm__info_commands] )) ||
_nethsm__info_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm info commands' commands "$@"
}
(( $+functions[_nethsm__key_commands] )) ||
_nethsm__key_commands() {
    local commands; commands=(
'cert:Operate on certificates for a key' \
'csr:Get a Certificate Signing Request for a key' \
'decrypt:Decrypt a message using a key' \
'encrypt:Encrypt a message using a key' \
'generate:Generate a new key' \
'get:Get information on a key' \
'import:Import a key' \
'list:List all key IDs' \
'public-key:Get the public key for a key' \
'remove:Remove a key' \
'sign:Sign a message using a key' \
'tag:Tag a key' \
'untag:Untag a key' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'nethsm key commands' commands "$@"
}
(( $+functions[_nethsm__key__cert_commands] )) ||
_nethsm__key__cert_commands() {
    local commands; commands=(
'delete:Delete the certificate for a key' \
'get:Get the certificate for a key' \
'import:Import the certificate for a key' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'nethsm key cert commands' commands "$@"
}
(( $+functions[_nethsm__key__cert__delete_commands] )) ||
_nethsm__key__cert__delete_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm key cert delete commands' commands "$@"
}
(( $+functions[_nethsm__key__cert__get_commands] )) ||
_nethsm__key__cert__get_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm key cert get commands' commands "$@"
}
(( $+functions[_nethsm__key__cert__help_commands] )) ||
_nethsm__key__cert__help_commands() {
    local commands; commands=(
'delete:Delete the certificate for a key' \
'get:Get the certificate for a key' \
'import:Import the certificate for a key' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'nethsm key cert help commands' commands "$@"
}
(( $+functions[_nethsm__key__cert__help__delete_commands] )) ||
_nethsm__key__cert__help__delete_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm key cert help delete commands' commands "$@"
}
(( $+functions[_nethsm__key__cert__help__get_commands] )) ||
_nethsm__key__cert__help__get_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm key cert help get commands' commands "$@"
}
(( $+functions[_nethsm__key__cert__help__help_commands] )) ||
_nethsm__key__cert__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm key cert help help commands' commands "$@"
}
(( $+functions[_nethsm__key__cert__help__import_commands] )) ||
_nethsm__key__cert__help__import_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm key cert help import commands' commands "$@"
}
(( $+functions[_nethsm__key__cert__import_commands] )) ||
_nethsm__key__cert__import_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm key cert import commands' commands "$@"
}
(( $+functions[_nethsm__key__csr_commands] )) ||
_nethsm__key__csr_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm key csr commands' commands "$@"
}
(( $+functions[_nethsm__key__decrypt_commands] )) ||
_nethsm__key__decrypt_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm key decrypt commands' commands "$@"
}
(( $+functions[_nethsm__key__encrypt_commands] )) ||
_nethsm__key__encrypt_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm key encrypt commands' commands "$@"
}
(( $+functions[_nethsm__key__generate_commands] )) ||
_nethsm__key__generate_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm key generate commands' commands "$@"
}
(( $+functions[_nethsm__key__get_commands] )) ||
_nethsm__key__get_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm key get commands' commands "$@"
}
(( $+functions[_nethsm__key__help_commands] )) ||
_nethsm__key__help_commands() {
    local commands; commands=(
'cert:Operate on certificates for a key' \
'csr:Get a Certificate Signing Request for a key' \
'decrypt:Decrypt a message using a key' \
'encrypt:Encrypt a message using a key' \
'generate:Generate a new key' \
'get:Get information on a key' \
'import:Import a key' \
'list:List all key IDs' \
'public-key:Get the public key for a key' \
'remove:Remove a key' \
'sign:Sign a message using a key' \
'tag:Tag a key' \
'untag:Untag a key' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'nethsm key help commands' commands "$@"
}
(( $+functions[_nethsm__key__help__cert_commands] )) ||
_nethsm__key__help__cert_commands() {
    local commands; commands=(
'delete:Delete the certificate for a key' \
'get:Get the certificate for a key' \
'import:Import the certificate for a key' \
    )
    _describe -t commands 'nethsm key help cert commands' commands "$@"
}
(( $+functions[_nethsm__key__help__cert__delete_commands] )) ||
_nethsm__key__help__cert__delete_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm key help cert delete commands' commands "$@"
}
(( $+functions[_nethsm__key__help__cert__get_commands] )) ||
_nethsm__key__help__cert__get_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm key help cert get commands' commands "$@"
}
(( $+functions[_nethsm__key__help__cert__import_commands] )) ||
_nethsm__key__help__cert__import_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm key help cert import commands' commands "$@"
}
(( $+functions[_nethsm__key__help__csr_commands] )) ||
_nethsm__key__help__csr_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm key help csr commands' commands "$@"
}
(( $+functions[_nethsm__key__help__decrypt_commands] )) ||
_nethsm__key__help__decrypt_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm key help decrypt commands' commands "$@"
}
(( $+functions[_nethsm__key__help__encrypt_commands] )) ||
_nethsm__key__help__encrypt_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm key help encrypt commands' commands "$@"
}
(( $+functions[_nethsm__key__help__generate_commands] )) ||
_nethsm__key__help__generate_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm key help generate commands' commands "$@"
}
(( $+functions[_nethsm__key__help__get_commands] )) ||
_nethsm__key__help__get_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm key help get commands' commands "$@"
}
(( $+functions[_nethsm__key__help__help_commands] )) ||
_nethsm__key__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm key help help commands' commands "$@"
}
(( $+functions[_nethsm__key__help__import_commands] )) ||
_nethsm__key__help__import_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm key help import commands' commands "$@"
}
(( $+functions[_nethsm__key__help__list_commands] )) ||
_nethsm__key__help__list_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm key help list commands' commands "$@"
}
(( $+functions[_nethsm__key__help__public-key_commands] )) ||
_nethsm__key__help__public-key_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm key help public-key commands' commands "$@"
}
(( $+functions[_nethsm__key__help__remove_commands] )) ||
_nethsm__key__help__remove_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm key help remove commands' commands "$@"
}
(( $+functions[_nethsm__key__help__sign_commands] )) ||
_nethsm__key__help__sign_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm key help sign commands' commands "$@"
}
(( $+functions[_nethsm__key__help__tag_commands] )) ||
_nethsm__key__help__tag_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm key help tag commands' commands "$@"
}
(( $+functions[_nethsm__key__help__untag_commands] )) ||
_nethsm__key__help__untag_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm key help untag commands' commands "$@"
}
(( $+functions[_nethsm__key__import_commands] )) ||
_nethsm__key__import_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm key import commands' commands "$@"
}
(( $+functions[_nethsm__key__list_commands] )) ||
_nethsm__key__list_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm key list commands' commands "$@"
}
(( $+functions[_nethsm__key__public-key_commands] )) ||
_nethsm__key__public-key_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm key public-key commands' commands "$@"
}
(( $+functions[_nethsm__key__remove_commands] )) ||
_nethsm__key__remove_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm key remove commands' commands "$@"
}
(( $+functions[_nethsm__key__sign_commands] )) ||
_nethsm__key__sign_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm key sign commands' commands "$@"
}
(( $+functions[_nethsm__key__tag_commands] )) ||
_nethsm__key__tag_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm key tag commands' commands "$@"
}
(( $+functions[_nethsm__key__untag_commands] )) ||
_nethsm__key__untag_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm key untag commands' commands "$@"
}
(( $+functions[_nethsm__lock_commands] )) ||
_nethsm__lock_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm lock commands' commands "$@"
}
(( $+functions[_nethsm__metrics_commands] )) ||
_nethsm__metrics_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm metrics commands' commands "$@"
}
(( $+functions[_nethsm__namespace_commands] )) ||
_nethsm__namespace_commands() {
    local commands; commands=(
'add:Add a namespace' \
'list:List all namespace names' \
'remove:Remove a namespace' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'nethsm namespace commands' commands "$@"
}
(( $+functions[_nethsm__namespace__add_commands] )) ||
_nethsm__namespace__add_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm namespace add commands' commands "$@"
}
(( $+functions[_nethsm__namespace__help_commands] )) ||
_nethsm__namespace__help_commands() {
    local commands; commands=(
'add:Add a namespace' \
'list:List all namespace names' \
'remove:Remove a namespace' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'nethsm namespace help commands' commands "$@"
}
(( $+functions[_nethsm__namespace__help__add_commands] )) ||
_nethsm__namespace__help__add_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm namespace help add commands' commands "$@"
}
(( $+functions[_nethsm__namespace__help__help_commands] )) ||
_nethsm__namespace__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm namespace help help commands' commands "$@"
}
(( $+functions[_nethsm__namespace__help__list_commands] )) ||
_nethsm__namespace__help__list_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm namespace help list commands' commands "$@"
}
(( $+functions[_nethsm__namespace__help__remove_commands] )) ||
_nethsm__namespace__help__remove_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm namespace help remove commands' commands "$@"
}
(( $+functions[_nethsm__namespace__list_commands] )) ||
_nethsm__namespace__list_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm namespace list commands' commands "$@"
}
(( $+functions[_nethsm__namespace__remove_commands] )) ||
_nethsm__namespace__remove_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm namespace remove commands' commands "$@"
}
(( $+functions[_nethsm__openpgp_commands] )) ||
_nethsm__openpgp_commands() {
    local commands; commands=(
'add:Add an OpenPGP certificate for a key' \
'import:Import OpenPGP TSK-formatted private key' \
'sign:Create an OpenPGP signature for a message' \
'sign-state:Create an OpenPGP signature for a hasher state' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'nethsm openpgp commands' commands "$@"
}
(( $+functions[_nethsm__openpgp__add_commands] )) ||
_nethsm__openpgp__add_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm openpgp add commands' commands "$@"
}
(( $+functions[_nethsm__openpgp__help_commands] )) ||
_nethsm__openpgp__help_commands() {
    local commands; commands=(
'add:Add an OpenPGP certificate for a key' \
'import:Import OpenPGP TSK-formatted private key' \
'sign:Create an OpenPGP signature for a message' \
'sign-state:Create an OpenPGP signature for a hasher state' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'nethsm openpgp help commands' commands "$@"
}
(( $+functions[_nethsm__openpgp__help__add_commands] )) ||
_nethsm__openpgp__help__add_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm openpgp help add commands' commands "$@"
}
(( $+functions[_nethsm__openpgp__help__help_commands] )) ||
_nethsm__openpgp__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm openpgp help help commands' commands "$@"
}
(( $+functions[_nethsm__openpgp__help__import_commands] )) ||
_nethsm__openpgp__help__import_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm openpgp help import commands' commands "$@"
}
(( $+functions[_nethsm__openpgp__help__sign_commands] )) ||
_nethsm__openpgp__help__sign_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm openpgp help sign commands' commands "$@"
}
(( $+functions[_nethsm__openpgp__help__sign-state_commands] )) ||
_nethsm__openpgp__help__sign-state_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm openpgp help sign-state commands' commands "$@"
}
(( $+functions[_nethsm__openpgp__import_commands] )) ||
_nethsm__openpgp__import_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm openpgp import commands' commands "$@"
}
(( $+functions[_nethsm__openpgp__sign_commands] )) ||
_nethsm__openpgp__sign_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm openpgp sign commands' commands "$@"
}
(( $+functions[_nethsm__openpgp__sign-state_commands] )) ||
_nethsm__openpgp__sign-state_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm openpgp sign-state commands' commands "$@"
}
(( $+functions[_nethsm__provision_commands] )) ||
_nethsm__provision_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm provision commands' commands "$@"
}
(( $+functions[_nethsm__random_commands] )) ||
_nethsm__random_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm random commands' commands "$@"
}
(( $+functions[_nethsm__system_commands] )) ||
_nethsm__system_commands() {
    local commands; commands=(
'backup:Backup the key store of a device' \
'factory-reset:Reset the device to factory settings' \
'info:Retrieve system information of a device' \
'reboot:Reboot the device' \
'restore:Restore the device from a backup' \
'shutdown:Shut down the device' \
'upload-update:Upload an update to the device' \
'cancel-update:Cancel an uploaded update on the device' \
'commit-update:Commit an uploaded update on the device' \
'validate-backup:Validate a backup file' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'nethsm system commands' commands "$@"
}
(( $+functions[_nethsm__system__backup_commands] )) ||
_nethsm__system__backup_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm system backup commands' commands "$@"
}
(( $+functions[_nethsm__system__cancel-update_commands] )) ||
_nethsm__system__cancel-update_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm system cancel-update commands' commands "$@"
}
(( $+functions[_nethsm__system__commit-update_commands] )) ||
_nethsm__system__commit-update_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm system commit-update commands' commands "$@"
}
(( $+functions[_nethsm__system__factory-reset_commands] )) ||
_nethsm__system__factory-reset_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm system factory-reset commands' commands "$@"
}
(( $+functions[_nethsm__system__help_commands] )) ||
_nethsm__system__help_commands() {
    local commands; commands=(
'backup:Backup the key store of a device' \
'factory-reset:Reset the device to factory settings' \
'info:Retrieve system information of a device' \
'reboot:Reboot the device' \
'restore:Restore the device from a backup' \
'shutdown:Shut down the device' \
'upload-update:Upload an update to the device' \
'cancel-update:Cancel an uploaded update on the device' \
'commit-update:Commit an uploaded update on the device' \
'validate-backup:Validate a backup file' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'nethsm system help commands' commands "$@"
}
(( $+functions[_nethsm__system__help__backup_commands] )) ||
_nethsm__system__help__backup_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm system help backup commands' commands "$@"
}
(( $+functions[_nethsm__system__help__cancel-update_commands] )) ||
_nethsm__system__help__cancel-update_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm system help cancel-update commands' commands "$@"
}
(( $+functions[_nethsm__system__help__commit-update_commands] )) ||
_nethsm__system__help__commit-update_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm system help commit-update commands' commands "$@"
}
(( $+functions[_nethsm__system__help__factory-reset_commands] )) ||
_nethsm__system__help__factory-reset_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm system help factory-reset commands' commands "$@"
}
(( $+functions[_nethsm__system__help__help_commands] )) ||
_nethsm__system__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm system help help commands' commands "$@"
}
(( $+functions[_nethsm__system__help__info_commands] )) ||
_nethsm__system__help__info_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm system help info commands' commands "$@"
}
(( $+functions[_nethsm__system__help__reboot_commands] )) ||
_nethsm__system__help__reboot_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm system help reboot commands' commands "$@"
}
(( $+functions[_nethsm__system__help__restore_commands] )) ||
_nethsm__system__help__restore_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm system help restore commands' commands "$@"
}
(( $+functions[_nethsm__system__help__shutdown_commands] )) ||
_nethsm__system__help__shutdown_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm system help shutdown commands' commands "$@"
}
(( $+functions[_nethsm__system__help__upload-update_commands] )) ||
_nethsm__system__help__upload-update_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm system help upload-update commands' commands "$@"
}
(( $+functions[_nethsm__system__help__validate-backup_commands] )) ||
_nethsm__system__help__validate-backup_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm system help validate-backup commands' commands "$@"
}
(( $+functions[_nethsm__system__info_commands] )) ||
_nethsm__system__info_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm system info commands' commands "$@"
}
(( $+functions[_nethsm__system__reboot_commands] )) ||
_nethsm__system__reboot_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm system reboot commands' commands "$@"
}
(( $+functions[_nethsm__system__restore_commands] )) ||
_nethsm__system__restore_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm system restore commands' commands "$@"
}
(( $+functions[_nethsm__system__shutdown_commands] )) ||
_nethsm__system__shutdown_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm system shutdown commands' commands "$@"
}
(( $+functions[_nethsm__system__upload-update_commands] )) ||
_nethsm__system__upload-update_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm system upload-update commands' commands "$@"
}
(( $+functions[_nethsm__system__validate-backup_commands] )) ||
_nethsm__system__validate-backup_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm system validate-backup commands' commands "$@"
}
(( $+functions[_nethsm__unlock_commands] )) ||
_nethsm__unlock_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm unlock commands' commands "$@"
}
(( $+functions[_nethsm__user_commands] )) ||
_nethsm__user_commands() {
    local commands; commands=(
'add:Add a user' \
'get:Get information about a user' \
'list:List all user names' \
'passphrase:Set the passphrase for a user' \
'remove:Remove a user' \
'tag:Add a tag to a user' \
'untag:Remove a tag from a user' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'nethsm user commands' commands "$@"
}
(( $+functions[_nethsm__user__add_commands] )) ||
_nethsm__user__add_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm user add commands' commands "$@"
}
(( $+functions[_nethsm__user__get_commands] )) ||
_nethsm__user__get_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm user get commands' commands "$@"
}
(( $+functions[_nethsm__user__help_commands] )) ||
_nethsm__user__help_commands() {
    local commands; commands=(
'add:Add a user' \
'get:Get information about a user' \
'list:List all user names' \
'passphrase:Set the passphrase for a user' \
'remove:Remove a user' \
'tag:Add a tag to a user' \
'untag:Remove a tag from a user' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'nethsm user help commands' commands "$@"
}
(( $+functions[_nethsm__user__help__add_commands] )) ||
_nethsm__user__help__add_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm user help add commands' commands "$@"
}
(( $+functions[_nethsm__user__help__get_commands] )) ||
_nethsm__user__help__get_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm user help get commands' commands "$@"
}
(( $+functions[_nethsm__user__help__help_commands] )) ||
_nethsm__user__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm user help help commands' commands "$@"
}
(( $+functions[_nethsm__user__help__list_commands] )) ||
_nethsm__user__help__list_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm user help list commands' commands "$@"
}
(( $+functions[_nethsm__user__help__passphrase_commands] )) ||
_nethsm__user__help__passphrase_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm user help passphrase commands' commands "$@"
}
(( $+functions[_nethsm__user__help__remove_commands] )) ||
_nethsm__user__help__remove_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm user help remove commands' commands "$@"
}
(( $+functions[_nethsm__user__help__tag_commands] )) ||
_nethsm__user__help__tag_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm user help tag commands' commands "$@"
}
(( $+functions[_nethsm__user__help__untag_commands] )) ||
_nethsm__user__help__untag_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm user help untag commands' commands "$@"
}
(( $+functions[_nethsm__user__list_commands] )) ||
_nethsm__user__list_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm user list commands' commands "$@"
}
(( $+functions[_nethsm__user__passphrase_commands] )) ||
_nethsm__user__passphrase_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm user passphrase commands' commands "$@"
}
(( $+functions[_nethsm__user__remove_commands] )) ||
_nethsm__user__remove_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm user remove commands' commands "$@"
}
(( $+functions[_nethsm__user__tag_commands] )) ||
_nethsm__user__tag_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm user tag commands' commands "$@"
}
(( $+functions[_nethsm__user__untag_commands] )) ||
_nethsm__user__untag_commands() {
    local commands; commands=()
    _describe -t commands 'nethsm user untag commands' commands "$@"
}

if [ "$funcstack[1]" = "_nethsm" ]; then
    _nethsm "$@"
else
    compdef _nethsm nethsm
fi
