
All features
Read–eval–print loop (REPL)
Developer tooling to quickly test and evaluate policy and conditions.
What is REPL?
REPL, or read–eval–print loop, is an interactive computing environment. It takes single user inputs, evaluates them, and returns the result to the user. This simple yet powerful tool allows developers to test snippets of code without the need to run full-fledged programs, making it an invaluable tool for debugging, learning, and iterative development.
Elevate your experience with Cerbos' integration of REPL
- Instant feedback: Test policies and conditions on-the-fly without waiting having to run the Cerbos service.
- Iterative development: Quickly prototype and refine your code, enhancing productivity.
- Debugging made easy: Load existing policies into the REPL and evaluate simple requests to debug real world use cases.
- Learning and exploration: New to Cerbos or a particular feature? Use REPL to learn interactively.
REPL with Cerbos
-> :let request = {
> "principal":{"id":"john","roles":["employee"],"attr":{"scope":"foo.bar.baz.qux"}},
> "resource":{"id":"x1","kind":"leave_request","attr":{"scope":"foo.bar"}}
> }
-> hierarchy(R.attr.scope).ancestorOf(hierarchy(P.attr.scope))
_ = true
Cerbos' REPL is designed with developers in mind. It's not just about executing code; it's about enhancing the overall development experience. With features like ablilty to load existing policies in, execute specific conditions and sensible keybaord shortcuts, the Cerbos REPL is a swiss army knife of tooling.
Find out more
Features, benefits & use cases
Fit Cerbos seamlessly into your tech stack
Playground
Prototype policies in your browser right now
Cerbos Hub
Implement roles & permissions in your app
Speak to an engineer
Book an intro call and learn more
Subscribe to our newsletter
Join thousands of developers | Features and updates | 1x per month | No spam, just goodies.





















