# strapi-generate-policy
[](https://www.npmjs.org/package/strapi-generate-policy)
[](https://www.npmjs.org/package/strapi-generate-policy)
[](https://david-dm.org/strapi/strapi-generate-policy)
[](https://travis-ci.org/strapi/strapi-generate-policy)
[](https://slack.strapi.io)
This Strapi generator contains the default files for a policy.
This generator can be called with:
```bash
$ strapi generate:policy policyName apiName
```
For example if you want to generate a `isAuthenticated` policy for the `user` API:
```bash
$ strapi generate:policy isAuthenticated user
```
## Resources
- [License](LICENSE)
## Links
- [Strapi website](https://strapi.io/)
- [Strapi community on Slack](https://slack.strapi.io)
- [Strapi news on Twitter](https://twitter.com/strapijs)