# CLI Commands

#### New Transaction Commands

**Set Contract Governance**

```bash
secretcli tx compute set-contract-governance <contract-address> --from <admin>
```

**Note**: This is a one-way operation - governance cannot be disabled once enabled

#### New Query Commands

**Query Authorized Migration**

```bash
secretcli query compute authorized-migration <contract-address>
```

**Example**:

```bash
secretcli query compute authorized-migration secret1abc123...
# Output: {"new_code_id": "42"} or {"new_code_id": "0"}
```

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.scrt.network/secret-network-documentation/development/development-concepts/contract-migration/contract-migration-flow-from-v1.21/cli-commands.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
