Package: seed-services-cli
A command line interface forSeed ServicesHTTP APIs.InstallationInstall with:$ pip install --user seed-services-cli (--user option may not be necessary when running a virtual environment)Then run:$ seed-services-cli --helpand read the usage instructions.ConfigurationThe configuration can be passed in using a YAML file. An example is provided:hub:
  api_url: http://hub.example.org/api/v1
  token: TEMP
identity_store:
  api_url: http://idstore.example.org/api/v1
  token: TEMP2Then run the following to use:$ seed-services-cli --conf=config.yaml command-to-runFinding identitiesRun:$ seed-services-cli identity-search --helpto learn about the options available for searching.Example search:$ seed-services-cli identity-search --address_type msisdn --address +27001Get identity detailsRun:$ seed-services-cli identity-get --identity uuidto get a specific identity details dump to jsonIdentities UploadRun:$ seed-services-cli identity-import --helpto learn about the identity upload instructions.Then to upload content create a CSV or JSON file$ seed-services-cli identity-import --csv filename.csvFind demo_import_identities.csv and .json in the repo route for format example.Identities Details UpdateThis command is used to update the values inside the details JSON field.Run:$ seed-services-cli identity-details-update --helpto learn about the identity details update instructions.Then to upload content create a JSON file$ seed-services-cli identity-details-update --json-file filename.jsonFind demo_identities_details_update.json in the repo route for format example.Messages Listing and UploadRun:$ seed-services-cli sbm-messagesets --helpto learn about the messagesets available for uploading to.Run:$ seed-services-cli sbm-messages-import --helpto learn about the message upload instructions.Then to upload content create a CSV or JSON file$ seed-services-cli sbm-messages-import --csv filename.csvNote: To upload binary content the file name should in the binary_content field
and this will be uploaded for you.To retrieve messages run:$ seed-services-cli sbm-messages --helpFilters are available for message, messageset, lang and sequence_number.Message DeletionRun:$ seed-services-cli sbm-messages-delete --helpto learn about deleting messages. Filters are available for message,
messageset, lang and sequence_number.Example that would purge all messages and binary files for messageset 1:$ seed-services-cli sbm-messages-delete --messageset 1Registration Upload to HubRun:$ seed-services-cli hub-registrations-import --helpto learn about the registration upload instructions.Then to upload content create a CSV or JSON file$ seed-services-cli hub-registrations-import --csv filename.csvFind demo_import_registration.csv in the repo route for format example.Adding Users to Auth with Team accessRun:$ seed-services-cli auth-user-add --helpto learn about adding users. Then add to a team.Run:$ seed-services-cli auth-user-add-team --helpChecking Service statusRun:$ seed-services-cli ci-statusto get full service status uptime information.Generate User TokensRun:$ seed-services-cli ci-user-token-generate --helpto understand how to ensure Users have correct CI tokens for services.DevelopingRun:$ pip install --editable .Testing:$ pip install -r requirements-dev.txt
$ py.test seed_services_cliReporting issuesIssues can be filed in the GitHub issue tracker. Please don’t use the issue
tracker for general support queries.Release Notes0.0.6 - 17-August-2016 - Added auth and ci related commands0.0.5 - 14-July-2016 - Bugfixidentity-importfor malformed addresses0.0.4 - 29-June-2016 - Addedhub-registrations-import0.0.3 - 29-June-2016 - Addedidentity-getandidentity-import.0.0.2 - 28-June-2016 - Addedsbm-messages-delete. Renamed short param frommtomsfor
messageset forsbm-messagescommand for consistency.0.0.1 - Initial release