Skip to content

my library sync

Terminal window
my library sync [--profile <slug>] [--all]

Downloads the latest library catalog from the server so commands are available locally. Requires login (my cli login) or MY_API_TOKEN.

FlagDescription
--profile <slug>Sync a specific profile instead of the active one
--allSync every profile you own (useful before going offline). Mutually exclusive with --profile.
Terminal window
# Sync the active profile
my library sync
# Sync a specific profile
my library sync --profile work
# Sync every profile in one shot
my library sync --all
# Or target via env var
MY_PROFILE=ci my library sync
  • Resolves the target profile: --profile flag > MY_PROFILE env > active profile in ~/.my/config.json > default.
  • Calls GET /v1/catalog?profile={profile} and writes the result to ~/.my/cache/profiles/{profile}/catalog.json.
  • Downloads any spec files not already in the shared ~/.my/cache/specs/ store.
  • With --all, repeats the above for every profile the server returns; continues on partial failures and exits non-zero if any profile failed.