my library sync
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.
| Flag | Description |
|---|---|
--profile <slug> | Sync a specific profile instead of the active one |
--all | Sync every profile you own (useful before going offline). Mutually exclusive with --profile. |
Examples
Section titled “Examples”# Sync the active profilemy library sync
# Sync a specific profilemy library sync --profile work
# Sync every profile in one shotmy library sync --all
# Or target via env varMY_PROFILE=ci my library syncBehavior
Section titled “Behavior”- Resolves the target profile:
--profileflag >MY_PROFILEenv > 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.
See also
Section titled “See also”my library install— automatically syncs after installmy cli profile— manage profiles themselves- Profiles guide