Hi David,
“config” is certainly a command. Try:
lean --version
You should see version 1.0.72. If not, I don't know how you installed an old version from a fresh install but it looks like that's what happened.
If you type just “lean”, you will also have a list of commands.
Here is my “lean --version”:
'lean.json' not found
lean, version v1.0.72
The “lean.json” not found is normal here since I am using lean from a folder in which I did not do “lean init”. So it is not a “lean project folder”.
And here is the output for “lean”:
'lean.json' not found
Usage: lean [OPTIONS] COMMAND [ARGS]...
The Lean CLI by QuantConnect.
Options:
--version Show the version and exit.
--help Show this message and exit.
Commands:
backtest Backtest a project locally using Docker.
build Build Docker images of your own version of LEAN and the...
cloud Interact with the QuantConnect cloud.
config Configure Lean CLI options.
create-project Create a new project containing starter code.
data Download or generate data for local use.
gui Work with the local GUI.
init Scaffold a Lean configuration file and data directory.
library Manage custom libraries in a project.
live Start live trading a project locally using Docker.
login Log in with a QuantConnect account.
logout Log out and remove stored credentials.
logs Display the most recent backtest/live/optimization logs.
optimize Optimize a project's parameters locally using Docker.
report Generate a report of a backtest.
research Run a Jupyter Lab environment locally using Docker.
whoami Display who is logged in.
“config” is a command for sure. You must be using a version of lean CLI in which config was not a command yet.
If you do not code in Python, using python 3.10 is a bit less critical but you MAY have issues with lean CLI itself (which as you know now is a Python program). You can keep 3.10 for now and see how lean CLI reacts to commands in general. Most problems, if any, will come with packages not being there (they are not in 3.10 but are in earlier versions) or various errors during execution (from code changes in 3.10 vs earlier versions). So if you are doing stuff but get errors, keep in mind it may be because of 3.10. In theory, of course, you can also have silent errors / undefined behavior, but hopefully, these won't happen.
Fred