---
title: "How to use enable hooks using Bitbucket Command Line Interface"
canonical: "https://support.appfire.com/space/SUPPORT/89142372/How%20to%20use%20enable%20hooks%20using%20Bitbucket%20Command%20Line%20Interface"
format: markdown
---
This article explains how to enable a hook in a Bitbucket repository using Command Line Interface (CLI)

## Instructions

1. Using the action [enableHook](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73369042/enableHook), a pre-receive or post-receive hook can be enabled from a Bitbucket repository.
  In this CLI action,
  - [*--project*](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73368805/--project) value refers to Project key, name, or id.
  - [--repository](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73368867/--repository) value refers to Repository slug, name, or id.
  - [--hook](https://appfire.atlassian.net/wiki/spaces/SCLI/pages/73367639/--hook) value refers to Hook name or key of the form *plugin key:hook key*.
2. To check the status of the hook, navigate to ***Repositories > Repository settings > Hooks***. The hook is enabled as shown in the screenshot below:


> ℹ️ It is recommended to test this scenario in a non-production environment or run the action with the [*--simulate*](https://appfire.atlassian.net/wiki/spaces/BCLI/pages/65933690/Parameters#Parameters-simulate) parameter to verify the behavior before deploying.