- Make sure you have Python 3.8+ installed.
- Configured .env file
- Install dependencies
pip3 install -r requirements.txt
- Commands
Show all commands (get help)
python cli.py -h
Get objects
python cli.py -m get_page -t [object_type]
Get an object by id
python cli.py -m get_by_id -t [object_type] -i [object_id]
Create new object
python cli.py -m create -t [object_type] -p [params]
Params is a json, example:
'{"email":"[email protected]","firstname":"Brian","lastname":"Halligan"}'
Delete an object by id
python cli.py -m archive -t [object_type] -i [object_id]
Update an object by id
python cli.py -m update -t [object_type] -i [object_id] -p [params]
Params is a json, example:
'{"firstname":"John"}'