Fetching the encryption recovery key

Hello everyone,

I’m having difficulty obtaining the encryption recovery key for Incus.

I’m following the standard procedure, but when I execute the command, I find that the os flag (or subcommand) seems to be missing.

The command I was trying to run (or that the procedure indicates) is:

Bash

incus admin os system security show

However, when I check the available subcommands for incus admin, I get the following output, which shows no os option:

Description:
  Manage incus daemon

Usage:
  incus admin [command]

Available Commands:
  cluster       Low-level cluster administration commands
  init          Configure the daemon
  recover       Recover missing instances and volumes from existing and unknown storage pools
  shutdown      Tell the daemon to shutdown all instances and exit
  sql           Execute a SQL query against the local or global database
  waitready     Wait for the daemon to be ready to process requests

Global Flags:
      --debug           Show all debug messages
      --force-local     Force using the local unix socket
  -h, --help            Print help
      --project         Override the source project
  -q, --quiet           Don't show progress information
      --sub-commands    Use with help or --help to view sub-commands
  -v, --verbose         Show all information messages
      --version         Print version number

Use "incus admin [command] --help" for more information about a command.

My question is: What is the correct command in the current version of Incus to display or retrieve the encryption recovery key, as incus admin os system security show does not appear to work?

Thanks in advance for your help!

You’re using an old version of the Incus command line client.

Try getting one of those we publish directly as part of our releases: Release Incus 6.20 · lxc/incus · GitHub

Thank you for your response, I had installed the Debian package.
It works better with the sources now :slightly_smiling_face: