pub(crate) enum Command {
Show 31 variants
Init {
no_scan: bool,
force_rescan: bool,
text_index_max_bytes: Option<u64>,
},
Map {
json: bool,
force: bool,
},
Scan {
path: PathBuf,
text_index_max_bytes: Option<u64>,
},
Overview,
Folders {
query: String,
limit: usize,
},
Files {
query: Option<String>,
folder: Option<String>,
file_pattern: Option<String>,
include_content: bool,
limit: usize,
},
Next {
query: String,
limit: usize,
},
Outline {
file: PathBuf,
lines: usize,
},
Summary {
file: PathBuf,
limit: usize,
},
Search {
pattern: String,
retrieval_mode: SearchRetrievalModeArg,
regex: bool,
fuzzy: bool,
case_sensitive: bool,
file_pattern: Option<String>,
context_lines: usize,
start_index: usize,
limit: usize,
},
Slice {
file: PathBuf,
start_line: Option<usize>,
end_line: Option<usize>,
selector: OptionalSymbolSelectorArgs,
},
Symbols {
command: Box<SymbolsCommand>,
},
Settings,
Snapshot {
action: SnapshotAction,
path: PathBuf,
require_digest: Option<String>,
signing_key: Option<PathBuf>,
trusted_public_key: Option<PathBuf>,
},
ParserPack {
storage_root: Option<PathBuf>,
command: ParserPackCommand,
},
Root {
command: Option<RootCommand>,
},
Config {
print: bool,
},
Ignore {
command: IgnoreCommand,
},
WatchStatus,
Watch {
path: PathBuf,
once: bool,
poll_seconds: u64,
max_cycles: usize,
max_workers: Option<usize>,
timeout_seconds: Option<u64>,
text_index_max_bytes: Option<u64>,
},
HealthCheck {Show 13 fields
start_index: usize,
limit: usize,
category: Option<String>,
severity: Option<HealthSeverityArg>,
path_prefix: Option<String>,
summary_only: bool,
source_only: bool,
coverage: bool,
parser: Option<String>,
provider: Option<String>,
relation: Option<String>,
coverage_state: Option<String>,
reason: Option<String>,
},
Health {
command: HealthCommand,
},
Lint {
strict_folders: bool,
purpose_level: PurposeLintLevelArg,
report_untracked: bool,
strict_untracked: bool,
},
Token {
session: Option<String>,
view: TokenView,
trend: Option<TokenTrendWindow>,
tokenizer: Option<String>,
benchmark_results: Option<PathBuf>,
theme: TokenTheme,
},
Parity {
command: Option<ParityCommand>,
profile: String,
},
StripLegacyPurpose {
path: PathBuf,
apply: bool,
dry_run: bool,
strip_source_headers: bool,
},
ResetIndex {
apply: bool,
dry_run: bool,
include_mcp_config: bool,
},
Mcp {
nearest_project: bool,
},
McpConfig {
server_name: String,
harness: HarnessConfig,
nearest_project: bool,
},
RuntimeInfo,
Purpose {
command: PurposeCommand,
},
}Expand description
Supported ProjectAtlas CLI commands.
Variants§
Init
Initialize ProjectAtlas files in a repository.
Fields
Map
Generate the ProjectAtlas TOON map.
Fields
Scan
Scan a repository and replace the durable index.
Fields
Overview
Print a repository overview.
Folders
Rank folders before inspecting files.
Fields
Files
Rank files, optionally inside an already-selected folder.
Fields
Next
Recommend the next indexed folders, files, and inspection commands.
Fields
Outline
Build a compact outline for a chosen file.
Fields
Summary
Return structured deterministic file intelligence from the deep index.
Fields
Search
Search indexed files with literal, regex, or fuzzy matching.
Fields
retrieval_mode: SearchRetrievalModeArgRetrieval family; lexical remains the default and always-available mode.
Slice
Return an exact source line slice after a file has been selected.
Fields
selector: OptionalSymbolSelectorArgsOptional exact declaration selector.
Symbols
Inspect and rebuild the ProjectAtlas symbol graph.
Fields
command: Box<SymbolsCommand>Symbol graph subcommand to run.
Settings
Print local ProjectAtlas settings and cache/index locations.
Snapshot
Export or import a portable derived-only graph snapshot.
Fields
action: SnapshotActionSnapshot operation.
ParserPack
Manage the separately shipped optional parser pack.
Fields
storage_root: Option<PathBuf>Override the user-owned pack storage root for isolated verification and tests.
command: ParserPackCommandExplicit lifecycle operation.
Root
Show, verify, or bind the project-local root.
Fields
command: Option<RootCommand>Root subcommand to run.
Config
Print the effective ProjectAtlas configuration.
Ignore
Manage the manual ProjectAtlas ignore layer in config.
Fields
command: IgnoreCommandIgnore subcommand to run.
WatchStatus
Print watcher availability and current status.
Watch
Watch a repository and refresh the index when files change.
Fields
HealthCheck
Report structural health findings.
Fields
severity: Option<HealthSeverityArg>Optional severity filter.
Health
Resolve a deterministic health finding with agent rationale.
Fields
command: HealthCommandHealth subcommand to run.
Lint
Validate database purpose metadata, untracked files, and structure drift.
Fields
strict_folders: boolDeprecated compatibility flag; database folder purpose linting uses --purpose-level.
purpose_level: PurposeLintLevelArgPurpose curation strictness for SQLite health linting.
Token
Print estimated token savings for recorded funnel usage.
Fields
trend: Option<TokenTrendWindow>Optional trend grouping window.
theme: TokenThemeColor theme for the human terminal dashboard.
Parity
Check repository-intelligence parity readiness.
Fields
command: Option<ParityCommand>Parity subcommand to run.
StripLegacyPurpose
Dry-run or apply cleanup of legacy .purpose metadata files.
Fields
ResetIndex
Preview or clear local runtime index/cache files.
Fields
Mcp
Run the native ProjectAtlas MCP server over stdio.
Fields
McpConfig
Print a project-local MCP configuration with absolute runtime paths.
Fields
harness: HarnessConfigHarness-specific config shape to emit.
RuntimeInfo
Print structured runtime identity and capability information.
Purpose
Manage purpose metadata stored in the durable index.
Fields
command: PurposeCommandPurpose subcommand to run.
Trait Implementations§
Source§impl FromArgMatches for Command
impl FromArgMatches for Command
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Subcommand for Command
impl Subcommand for Command
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more