> For the complete documentation index, see [llms.txt](https://zokanetwork.gitbook.io/zokanetwork/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zokanetwork.gitbook.io/zokanetwork/zsilent-core/cli-bridge.md).

# CLI Bridge

ZSilent Core talks to Zoka Core binaries through a process bridge.

The bridge uses protected process channels instead of command-line secrets:

```
--password-env ZSILENT_WALLET_PASSWORD
--seed-env ZSILENT_RECOVERY_PHRASE
--password-env ZSILENT_NODE_PASSWORD
```

The Zoka CLI also supports `--password-stdin` for terminal and automation flows.

## Why Environment Channels Are Used

Command-line arguments can be visible through process lists, diagnostic tools, shell history, or crash reports. ZSilent Core therefore avoids placing recovery phrases, wallet passwords, or node passwords directly in command arguments.

Environment-backed channels are not magic, and they still require a trusted local machine, but they are a safer boundary than exposing secrets in the visible command line.

## Wallet Commands

The wallet service uses the bridge for actions such as:

* Creating a wallet.
* Restoring from a recovery phrase.
* Reading balance and history.
* Estimating fees.
* Sending private transactions.
* Exporting encrypted backups.
* Restoring encrypted backups.
* Changing the wallet passphrase.

Sensitive character arrays are cleared after use where the implementation supports it.

## Node and Mining Commands

The node controller starts the local node with node-only behavior first, then mining is controlled through the running node API. This keeps the node process, mining state, and dashboard status aligned.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://zokanetwork.gitbook.io/zokanetwork/zsilent-core/cli-bridge.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.
