https://cerbos.dev logo
#community
Title
# community
s

seala va

06/14/2022, 2:47 PM
https://docs.cerbos.dev/cerbos/latest/quickstart.html the question is: how to add the same policies of these two yaml files with the adminApi ?
a

Alex Olivier (Cerbos)

06/14/2022, 2:53 PM
Hey I would recommend using cerbosctl with the Admin API to load those policies via the
cerbosctl put
command https://docs.cerbos.dev/cerbos/latest/cli/cerbosctl.html#put
c

Charith (Cerbos)

06/14/2022, 2:54 PM
You can see how to provide credentials to
cerbosctl
here: https://docs.cerbos.dev/cerbos/latest/cli/cerbosctl.html. It's essentially
cerbosctl --server=localhost:3593 --username=user --password=password ...
You can also use environment variables or a netrc file as well
s

seala va

06/14/2022, 3:39 PM
Thanks, I will read the doc of the cerbosctl.
8 Views