Skip to content

Add MSP command examples for CLI and SDK#175

Open
mtyagi-ks wants to merge 1 commit into
msp-command-examplesfrom
msp-command-examples-int
Open

Add MSP command examples for CLI and SDK#175
mtyagi-ks wants to merge 1 commit into
msp-command-examplesfrom
msp-command-examples-int

Conversation

@mtyagi-ks
Copy link
Copy Markdown

Add MSP command examples for CLI and SDK

Add sample scripts that show how to run Keeper MSP operations from standalone Python programs, aligned with existing examples under examples/cli_examples/ and examples/sdk_examples/.

CLI examples (examples/cli_examples/msp/)

  • Shared login helper via config.json and keepercli LoginFlow
  • One script per command:
    • msp-down
    • msp-info
    • msp-add
    • msp-update
    • msp-remove
    • msp-convert-node
    • msp-copy-role
    • msp-billing-report
    • msp-legacy-report
    • switch-to-mc
    • switch-to-msp
  • Each script invokes the matching keepercli.commands.msp command class

SDK examples (examples/sdk_examples/msp/)

  • Shared helpers for enterprise loader setup and report output
  • Same MSP flows using keepersdk.enterprise.msp_auth directly
  • Reuses examples/sdk_examples/auth/login.py for interactive login

Notes

  • Scripts use placeholder constants for mutating operations; edit before running add/update/remove against a real MSP tenant.
  • Requires MSP enterprise admin and persistent login (or interactive auth) for non-interactive CLI runs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant