Command Line Interface (CLI)
Open Product ships with a command line interface accessible inside of the containers.
To get more information about a command, you can run:
$ python src/manage.py <command> --help
Available commands
createinitialsuperuserCreates an initial superuser with the specified username and e-mail address.
The password can be provided upfront with the
--passwordCLI argument, or by using theDJANGO_SUPERUSER_PASSWORDenvironment variable. Additionally, with--generate-passworda password can be generated and e-mailed to the specified e-mail address. Note that this requires your e-mail configuration to be set up correctly (any of theEMAIL_*envvars)!load_uplLoads
Uniforme product naam’s (UPN) from the given filepath or URL.Either the
--fileor the--urloption should be used when this command is ran. Both of the arguments expect to point to a CSV file with appropriate columns. Theis_verwijderdvalue will be set toTruefor existing (which were present before the command was ran) UPN’s.