Skip to main content

Module cli

Module cli 

Source
Expand description

Command-line interface module.

This module provides the CLI functionality for:

  • Server management
  • Configuration handling
  • Model management (HuggingFace, etc.)
  • LoRA adapter creation and training

Re-exports§

pub use context::AppContext;
pub use git_handlers::apply_policy_template_to_model;
pub use git_handlers::handle_branch;
pub use git_handlers::handle_checkout;
pub use git_handlers::handle_clone;
pub use git_handlers::handle_infer;
pub use git_handlers::handle_info;
pub use git_handlers::handle_list;
pub use git_handlers::handle_load;
pub use git_handlers::handle_notify_command;
pub use git_handlers::handle_pull;
pub use git_handlers::handle_remove;
pub use git_handlers::handle_status;
pub use git_handlers::handle_unload;
pub use git_handlers::parse_filters;
pub use git_handlers::parse_status_filter;
pub use crate::auth::policy_templates::get_template;
pub use crate::auth::policy_templates::get_templates;
pub use crate::auth::policy_templates::PolicyTemplate;
pub use handlers::handle_config;
pub use policy_handlers::handle_policy_apply;
pub use policy_handlers::handle_policy_apply_template;
pub use policy_handlers::handle_policy_check;
pub use policy_handlers::handle_policy_diff;
pub use policy_handlers::handle_policy_edit;
pub use policy_handlers::handle_policy_history;
pub use policy_handlers::handle_policy_list_templates;
pub use policy_handlers::handle_policy_role_add;
pub use policy_handlers::handle_policy_role_list;
pub use policy_handlers::handle_policy_role_remove;
pub use policy_handlers::handle_policy_rollback;
pub use policy_handlers::handle_policy_show;
pub use policy_handlers::handle_token_create;
pub use policy_handlers::load_or_generate_signing_key;
pub use remote_handlers::handle_remote_add;
pub use remote_handlers::handle_remote_list;
pub use remote_handlers::handle_remote_remove;
pub use remote_handlers::handle_remote_rename;
pub use remote_handlers::handle_remote_set_url;
pub use service_handlers::handle_service_install;
pub use service_handlers::handle_service_provision_policy_templates;
pub use service_handlers::handle_service_start;
pub use service_handlers::handle_service_status;
pub use service_handlers::handle_service_stop;
pub use service_handlers::handle_service_uninstall;
pub use sign_challenge::handle_sign_challenge;
pub use training_handlers::handle_training_batch;
pub use training_handlers::handle_training_checkpoint;
pub use training_handlers::handle_training_infer;
pub use training_handlers::handle_training_init;
pub use user_handlers::handle_user_create;
pub use user_handlers::handle_user_keys_import;
pub use user_handlers::handle_user_keys_list;
pub use user_handlers::handle_user_keys_remove;
pub use user_handlers::handle_user_list;
pub use user_handlers::handle_user_register;
pub use user_handlers::handle_user_remove;
pub use wizard_handlers::handle_wizard;
pub use wizard_handlers::handle_wizard_tui;
pub use wizard_handlers::WizardOptions;
pub use worker_handlers::handle_images_df;
pub use worker_handlers::handle_images_list;
pub use worker_handlers::handle_images_pull;
pub use worker_handlers::handle_images_rm;
pub use worker_handlers::handle_worker_exec;
pub use worker_handlers::handle_worker_list;
pub use worker_handlers::handle_worker_restart;
pub use worker_handlers::handle_worker_rm;
pub use worker_handlers::handle_worker_run;
pub use worker_handlers::handle_worker_start;
pub use worker_handlers::handle_worker_stats;
pub use worker_handlers::handle_worker_status;
pub use worker_handlers::handle_worker_stop;
pub use worker_handlers::handle_worker_terminal;
pub use worktree_handlers::handle_worktree_add;
pub use worktree_handlers::handle_worktree_info;
pub use worktree_handlers::handle_worktree_list;
pub use worktree_handlers::handle_worktree_remove;

Modules§

bootstrap_manager
BootstrapManager — pre-service bootstrap for first-boot wizard.
commands
context
Application context for CLI commands
daemon
Daemonization support for running hyprstream in the background
deployment_bootstrap
Offline service identity admission before network services start.
enroll
Shared user-signing-key enrollment routine (#438 wizard + #439 user create).
git_handlers
Handlers for git-style CLI commands
gpu_detect
GPU detection for the setup wizard.
handlers
CLI handlers for adaptive ML inference server
pds_handlers
Home PDS attachment client (issue #318).
policy_handlers
Handlers for policy management commands
quick
Quick subcommand — orchestrated multi-step workflows.
registry_readback
One bounded, read-only Registry canary lookup under the enrolled Registry identity. The Policy preflight authenticates as that same service before the Registry request, so an authorization denial cannot be mistaken for a missing canary.
remote_handlers
Handlers for remote management commands
schema_cli
Schema-driven CLI command builder and dispatcher.
service_handlers
Handlers for service management commands
shell_handlers
Shell client handlers.
sign_challenge
Handler for hyprstream sign-challenge.
systemd_setup
Systemd unit installation for socket activation
training_handlers
Training command handlers
trust
Deployment trust-authority minting.
trust_ceremony
Deployment-trust ceremony automation for the setup wizard.
tui_handlers
CLI handlers for TUI display server commands.
update_handlers
Self-update handlers for fetching and installing new versions.
user_handlers
Handlers for hyprstream user CLI subcommands.
wizard_handlers
Interactive setup wizard for bootstrapping hyprstream
worker_handlers
CLI handlers for worker management commands
worktree_handlers
Handlers for worktree management commands

Structs§

DeviceConfig
Device configuration for command execution
RuntimeConfig
Runtime configuration for commands

Enums§

DevicePreference
Device preference strategy