# Reference

The Safe CLI has two operation modes:

- **blockchain**: The default mode. Use the `blockchain` command to enable it. Transactions are sent to the blockchain.
- **tx-service**: Use the `tx-service` command to enable it. Transactions are sent to the Safe Transaction Service (if available on the network), and you can see them on Safe\{Wallet\}. At least one signer is needed to send transactions to the service. Transactions are not executed. It requires Safe\{Core\} API running on the network; also, set your [API key](../core-api/how-to-use-api-keys.mdx) using an environment variable `export SAFE_TRANSACTION_SERVICE_API_KEY=YOUR_API_KEY`.

<Grid
  container
  spacing={2}
  display='flex'
  alignContent='flex-start'
  mt={3}
>
  <Grid item xs={12} md={6}>
    <CustomCard
      title={'Common commands for both modes'}
      description={''}
      url="./cli-reference/common-commands"
      newTab={false}
    />
  </Grid>
  <Grid item xs={12} md={6}>
    <CustomCard
      title={'Commands specific to the tx-service mode'}
      description={''}
      url="./cli-reference/tx-service-commands"
      newTab={false}
    />
  </Grid>
</Grid>

## Configuration

### Use custom contracts

The Safe CLI comes with the official deterministic Safe Smart Account addresses deployed on multiple chains configured by default. You can edit the `safe_cli/safe_addresses.py` file if you want to use your own.

Be careful when modifying these addresses, as the funds in a Safe can get stuck if an invalid address is used when updating to an invalid Safe Master Copy.
