e.g.
$ pkcon refresh
Refreshing cache [=========================]
Starting [=========================]
Refreshing software list [=========================]
Finished [=========================]
$ pkcon resolve firefox
Resolving [=========================]
Fatal error: Package firefox not found
or
pkcon install some-package
pkcon remove some-package
You have to wait some seconds for the backend to become available again. Using --cache-age 1 might resolve the issue.