diff --git a/docs/docs/dev_docs/cli/main.md b/docs/docs/dev_docs/cli/main.md index 4836fad27a3..8f6d0a584ce 100644 --- a/docs/docs/dev_docs/cli/main.md +++ b/docs/docs/dev_docs/cli/main.md @@ -36,7 +36,7 @@ Once installed it is invoked via: ## I have the Sandbox running, now what? -Lets first establish that we are able to communicate with the Sandbox. Most commands will require the url to the Sandbox, which defaults in the CLI to `http://localhost:8080`. You can override this as an option with each command or by setting `PXE_HOST` environment variable. +Lets first establish that we are able to communicate with the Sandbox. Most commands will require the url to the Sandbox, which defaults in the CLI to `http://localhost:8080`. You can override this as an option with each command or by setting `PXE_URL` environment variable. To test communication with the Sandbox, let's run the command: diff --git a/yarn-project/cli/README.md b/yarn-project/cli/README.md index ae1d8fd4812..fffc25a7a4b 100644 --- a/yarn-project/cli/README.md +++ b/yarn-project/cli/README.md @@ -43,14 +43,14 @@ These options are: - `PRIVATE_KEY` -> `-k, --private-key` for all commands that require a private key. - `PUBLIC_KEY` -> `-k, --public-key` for all commands that require a public key. -- `PXE_HOST` -> `-u, --rpc-url` for commands that require a PXE +- `PXE_URL` -> `-u, --rpc-url` for commands that require a PXE - `API_KEY` -> `a, --api-key` for `deploy-l1-contracts`. - `ETHEREUM_RPC_HOST` -> `-u, --rpc-url` for `deploy-l1-contracts`. So if for example you are running your Private eXecution Environment (PXE) remotely you can do: ```shell -export PXE_HOST=http://external.site/rpc:8080 +export PXE_URL=http://external.site/rpc:8080 aztec-cli deploy my_contract.json ``` diff --git a/yarn-project/cli/src/index.ts b/yarn-project/cli/src/index.ts index 962acb0aa61..cfd37b534e2 100644 --- a/yarn-project/cli/src/index.ts +++ b/yarn-project/cli/src/index.ts @@ -60,7 +60,7 @@ export function getProgram(log: LogFn, debugLogger: DebugLogger): Command { program.name('aztec-cli').description('CLI for interacting with Aztec.').version(version); const pxeOption = new Option('-u, --rpc-url ', 'URL of the PXE') - .env('PXE_HOST') + .env('PXE_URL') .default('http://localhost:8080') .makeOptionMandatory(true);