Skip to Content
kusaw docsv1.0.0
CLI reference

kusaw atlas

Build and inspect the local code index

kusaw atlas

Build and inspect the local code index

Usage

Text
kusaw atlas [flags]

Flags

NameShortTypeDefaultDescription
--configstringPath to kusaw.yaml (overrides KUSAW_CONFIG and parent search)
--factorystringfactory name from kusaw list
--help-hboolfalsehelp for atlas

Subcommands

kusaw atlas build

Create an Atlas for configured repos

Text
kusaw atlas build [flags]
NameShortTypeDefaultDescription
--configstringPath to kusaw.yaml (overrides KUSAW_CONFIG and parent search)
--factorystringfactory name from kusaw list
--help-hboolfalsehelp for build
--repostringBuild one repo label
--yesboolfalseConfirm the build without a prompt

Example:

Text
kusaw atlas build --factory demo

kusaw atlas call

Call read_map or search_code inside a step attempt

Text
kusaw atlas call <tool> [flags]
NameShortTypeDefaultDescription
--configstringPath to kusaw.yaml (overrides KUSAW_CONFIG and parent search)
--factorystringfactory name from kusaw list
--help-hboolfalsehelp for call
--jsonstringJSON object of tool arguments

Example:

Text
kusaw atlas call read_map --json '{}'

kusaw atlas install-hook

Add a notify block to the repo's git hooks

Text
kusaw atlas install-hook [flags]
NameShortTypeDefaultDescription
--configstringPath to kusaw.yaml (overrides KUSAW_CONFIG and parent search)
--factorystringfactory name from kusaw list
--help-hboolfalsehelp for install-hook
--repostringRepo label

Example:

Text
kusaw atlas install-hook --factory demo --repo api

kusaw atlas refresh

Refresh an Atlas to the current local main commit

Text
kusaw atlas refresh [flags]
NameShortTypeDefaultDescription
--configstringPath to kusaw.yaml (overrides KUSAW_CONFIG and parent search)
--factorystringfactory name from kusaw list
--help-hboolfalsehelp for refresh
--repostringRefresh one repo label
--yesboolfalseConfirm the refresh without a prompt

Example:

Text
kusaw atlas refresh --factory demo --repo api

kusaw atlas remove

Delete a repo's Atlas from the factory data folder

Text
kusaw atlas remove [flags]
NameShortTypeDefaultDescription
--configstringPath to kusaw.yaml (overrides KUSAW_CONFIG and parent search)
--factorystringfactory name from kusaw list
--help-hboolfalsehelp for remove
--repostringRepo label whose Atlas to delete
--yesboolfalseConfirm the delete without a prompt

Example:

Text
kusaw atlas remove --repo api --yes

Search the local Atlas index

Text
kusaw atlas search <query> [flags]
NameShortTypeDefaultDescription
--configstringPath to kusaw.yaml (overrides KUSAW_CONFIG and parent search)
--factorystringfactory name from kusaw list
--help-hboolfalsehelp for search
--jsonboolfalsePrint JSON
--kindstringallcode, map, or all
--limitint10Maximum hits (default 10, maximum 50)
--pathstringLimit hits to this path prefix
--repostringLimit search to one repo label

Example:

Text
kusaw atlas search --factory demo --repo api "retry backoff" --json

kusaw atlas status

Show Atlas state for each repo without starting work

Text
kusaw atlas status [flags]
NameShortTypeDefaultDescription
--configstringPath to kusaw.yaml (overrides KUSAW_CONFIG and parent search)
--factorystringfactory name from kusaw list
--help-hboolfalsehelp for status
--jsonboolfalsePrint JSON
--repostringLimit output to one repo label

Example:

Text
kusaw atlas status --factory demo --json

kusaw atlas uninstall-hook

Remove the Atlas notify block from the repo's git hooks

Text
kusaw atlas uninstall-hook [flags]
NameShortTypeDefaultDescription
--configstringPath to kusaw.yaml (overrides KUSAW_CONFIG and parent search)
--factorystringfactory name from kusaw list
--help-hboolfalsehelp for uninstall-hook
--repostringRepo label

Example:

Text
kusaw atlas uninstall-hook --factory demo --repo api

Exit codes

CodeNameDescription
0okSuccess.
1errorRuntime error.
2usageUsage or validation error.
3rejectedControl request rejected; the error string is printed verbatim.
4not picked upControl request not picked up within the wait time while serve runs.

Example

Text
kusaw atlas status

On this page