Support `--url` option in all Truffle CLI commands that accept a network
Author: acuaricaCreated Nov 14, 2022Updated Jan 1, 2024
Labelsenhancementpriority3 🔧doc-change-required
- I've discussed with @gnidan and @haltman-at before filing this issue.
Issue
Some Truffle CLI commands need a network connection to perform their action. Here is a non-exhaustive list of these commands: console, debug, deploy/migrate, exec, test, and run. All these commands accept the --network option, that allows the user to indicate the network name as declared in truffle-config.js.
However, only console and debug commands have an alternative option to specify the network. They accept the --url option to indicate the provider url to use.
It would be a great addition to Truffle to make all commands that accept a connection consistent. That is, to add the --url option to the rest of commands deploy/migrate, exec, test and run.
Environment
- Truffle version (
truffle version):v5.6.5 (core: 5.6.5) - node version (
node --version):v16.18.0 - npm version (
npm --version):8.19.2
Source: ConsenSys-archive/truffle