cowboy CLI keeps its settings in ~/.cowboy/config.json, outside every project. You rarely edit the file: cowboy env use and cowboy env add write it.
How the CLI picks a network
The first of these that is set wins:- The
--envflag. - The
COWBOY_ENVenvironment variable. - The environment saved for this project.
active.local.
--rpc-url and then COWBOY_RPC_URL override the endpoint of whichever environment that selects. cowboy env current shows the result for the folder you’re in.
How the CLI picks a key
The first of these that is set wins:- The
--private-keyflag, which takes a file path. - The
COWBOY_PRIVATE_KEY_FILEenvironment variable. - The
COWBOY_PRIVATE_KEYenvironment variable. - The key recorded when this project’s actor was deployed.
- The selected environment’s
key.
cowboy wallet create writes ~/.cowboy/keys/default. Key discovery has the details.