cli
cli copied to clipboard
`checkOplSyntax` command for CI/CD and easy DX
Preflight checklist
- [x] I could not find a solution in the existing issues, docs, nor discussions.
- [x] I agree to follow this project's Code of Conduct.
- [x] I have read and am following this repository's Contribution Guidelines.
- [x] I have joined the Ory Community Slack.
- [x] I am signed up to the Ory Security Patch Newsletter.
Ory Network Project
No response
Describe your problem
I'd like to be able to perform this check in our CI/CD pipelines.
Describe your ideal solution
ory check opl --file ./my-permissions.ts or similar command.
Workarounds or alternatives
Use curl directly:
curl --request POST \
--url "https://$ORY_SLUG.projects.oryapis.com/opl/syntax/check"
--header "authorization: Bearer $ORY_API_KEY"
--header 'content-type: text/plain' \
--data-binary '@./my-permissions.ts'
Version
v1
Additional Context
No response