slick cache¶
Prime and inspect local Slack metadata caches. Cached users and channels power shell-completion suggestions and reduce Slack API pressure on repeated lookups.
Cache files live under ${XDG_CACHE_HOME:-~/.cache}/slick/<profile>/. The
default freshness window is 24 hours.
cache users / cache channels¶
Prime the cache (or read it back if fresh). Both commands accept the same flags.
Flags¶
Flags
| Flag | Value | Description |
|---|---|---|
-r, --refresh |
Force a fetch even when the cache is fresh | |
-T, --ttl-minutes |
<MINUTES> |
Freshness window before automatic refresh |
-s, --page-size |
<N> |
Slack page size while priming |
-N, --max-pages |
<N> |
Maximum Slack pages to fetch |
Output¶
Human output is a single summary event — the command does not echo the full cached list. JSON envelope carries the data.
Human (fresh fetch — from_cache is omitted entirely):
User cache primed profile=default resource=users count=128
Channel cache primed profile=default resource=channels count=42
Human (served from cache):
User cache primed profile=default resource=users fetched_at=2026-05-10T14:38:47Z from_cache=true count=128
fetched_at only appears when serving from cache; a fresh fetch is
implicitly "just now" and the field is omitted from the event.
Truncated results
truncated=true means the prime hit --max-pages before exhausting the
Slack pagination cursor — increase --max-pages if you need the full
listing.
cache clear¶
Remove cached metadata. With a <resource> argument, removes one resource;
without, sweeps every cache file under the active profile.
Output¶
Single resource — success path. Human:
Already empty renders a different human-mode label and cleared=false in
the JSON envelope:
Sweep with content — human mode keeps removed_count for human reading
even though the field is no longer in the JSON envelope:
Human mode for an empty sweep:
JSON envelope:
Sweep (resources alphabetized):
Empty sweep (the resources array is omitted entirely when the sweep had
nothing to remove):
Partial failure mid-sweep surfaces the resources removed before the failure
in errors[0].details:
The pre-v0.4.0 removed field is now cleared; removed_count was dropped
from the JSON payload (callers compute len(resources) from the sweep
response).
See also¶
lookup— direct Slack lookups (uses cache when fresh).config—slick config pathshows where the cache root is derived from.- Slack API methods:
users.list,conversations.list.