Skip to content

Access Your Database Locally

Coherence provides you with the ability to access your database locally using the CNC toolbox.

Follow these steps to establish local access to your database:

  • Set up the CNC toolbox.
  • Add the --proxy-only flag to the toolbox start command to run the toolbox in proxy-only mode:
cocli cnc -c $collection_id -- toolbox start <your-environment-name> --proxy-only
  • Configure your database client with the connection information printed by the command.

The proxy-only flag

The --proxy-only flag prevents your app container from running when you use the CNC toolbox. Instead, the CLI will:

  • Start the network proxies for each resource (for example, database or Redis).
  • Print the environment configuration for your application, including connection strings to the proxied resources.