> For the complete documentation index, see [llms.txt](https://ahasunos.gitbook.io/elog/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ahasunos.gitbook.io/elog/00-inspec/04-create-and-exec-profile.md).

# Create a Profile

InSpec Profiles organize multiple controls into a reusable artifact that can be described and versionsed

* To create a Profile:
  * `inspec init profile [profile_name]`
  * exmaple: `inspec init profile my_profile`
* To check if an instance exist
  * `inspec detect -t [target_instance]`
  * example: `inspec detect -t docker://[container_id]`
* To load the profile on the target
  * `inspec exec -t [target_instance] [profile_name]`
  * example: `inspec exec -t docker://[container_id] my_profile`
