Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.safedep.io/llms.txt

Use this file to discover all available pages before exploring further.

Package Guard shows package installs and usage across your endpoints. It runs on pmg, the open-source Package Manager Guard CLI that intercepts package manager commands and syncs the activity to SafeDep Cloud.

Prerequisites

Enable cloud sync

1

Run the PMG setup installer

pmg setup install
Example output
█▀█ █▀▄▀█ █▀▀  From SafeDep (github.com/safedep/pmg)
█▀▀ █░▀░█ █▄█  version: v0.9.0 commit: c3a351

✓ PMG aliases installed successfully
  Installed to:  /home/user/.pmg.rc
  Config at:     /home/user/.config/safedep/pmg
  Restart your terminal or source your shell to use the new aliases
2

Enable cloud sync in the PMG config

Open the config file from the path shown above (run pmg setup info to verify) and enable cloud sync:
cloud:
  enabled: true
3

Login to SafeDep Cloud

pmg cloud login
Enter your tenant ID and tenant domain when prompted.
4

Sync to SafeDep Cloud

Push local package activity to SafeDep Cloud:
pmg cloud sync

Common sync patterns

  • After dependency updates: Run pmg cloud sync once installs or upgrades complete.
  • In CI/CD pipelines: Add pmg cloud sync as a post-step after pmg runs.
  • Scheduled: Use cron for nightly syncs, e.g. 0 0 * * * pmg cloud sync.

View package events in SafeDep Cloud

After syncing, open app.safedep.io, select Endpoints in the sidebar, and pick your endpoint to see the Package Events timeline. SafeDep Cloud Endpoints page showing package events

Next steps

PMG Quickstart

Install PMG and learn the basics