zed is the command-line tool for managing Authzed permission systems.
zed is written in Go and currently supports macOS and Linux.
zed is currently packaged by as a head-only Homebrew Formula for both macOS and Linux.
First, ensure that homebrew is installed to your system path:
If you don't see "Homebrew" and a version number, then download and install Homebrew.
brew install --HEAD authzed/tap/zed
In order to compile, the latest stable version of Go is required.
When installed via this method, the
--version flag will not reflect the most accurate information.
go install github.com/authzed/zed/cmd/zed@latest
|list all contexts|
|remove a context|
|create or overwrite a context|
|set a context as the current context|
|an alias for |
|as alias for |
|read the Schema of current permission system|
|write the Schema of current permission system|
|create a Relationship between Objects|
|update the timestamp on an existing Relationship|
|delete an existing Relationship|
|check if a Permission exists|
|display the expanded structure of a permission|
|execute OPA with additional Authzed builtin functions|
|Overrides the currently selected API Token|
|Overrides the currently selected permission system|
|Overrides the API endpoint (default: grpc.authzed.com)|
As an experiment, zed also ships with a full copy of the OPA binary that has additional builtin functions for accessing the Authzed API. The supported functions are documented below:
authzed.check("subject:id", "permission", "object:id", "revision")