Monte Carlo's CLI
Actively maintained. Last release 5 weeks ago. A safe choice.
pip install montecarlodataMonte Carlo CLI
Monte Carlo's Alpha CLI!
Installation
Requires Python 3.9 or greater. Normally you can install and update using pip. For instance:
pip install virtualenv
virtualenv venv
. venv/bin/activate
pip install -U montecarlodata
Developers of the CLI can use:
pip install virtualenv
make install
. venv/bin/activate
pre-commit install
Either way confirm the installation by running:
montecarlo --version
If the Python requirement does not work for you please reach out to support@montecarlodata.com. Docker is an option.
Quick start
First time users can configure the tool by following the onscreen prompts:
montecarlo configure
MCD tokens can be generated from the dashboard.
Use the --help flag for details on any advanced options (e.g. creating multiple montecarlo profiles) or
see docs here.
Non-interactive / scripted use: when stdin is not a terminal (CI, scheduled jobs), montecarlo configure
defaults to API key auth and prints a notice to stderr. Pass --api-key --mcd-id <ID> --mcd-token <TOKEN>
to configure without prompts, or --oauth to use OAuth client credentials.
That's it! You can always validate your connection with:
montecarlo validate
User settings
Any configuration set by montecarlo configure can be found in ~/.mcd/ by default.
The MCD ID and Token can be overwritten, or even set, by the environment:
MCD_DEFAULT_API_IDMCD_DEFAULT_API_TOKEN
These two are required either as part of configure or as environment variables.
The following values can also be set by the environment:
MCD_API_ENDPOINT- Overwrite the default API endpointMCD_VERBOSE_ERRORS- Enable verbose logging on errors (default=false)
Help
Documentation for commands, options, and arguments can be found .