--- name: cli-setup description: Run initial setup, configure global CLI settings, manage environment variables, check for updates, and configure autostart via the CLI setup and config commands. --- ## Overview Run initial setup, configure global CLI settings, manage environment variables, check for updates, and configure autostart via the CLI setup and config commands. ## Quick install ```bash npm install -g omniroute # or: npx omniroute omniroute --version ``` ## Subcommands ### `autostart` **Example:** ```bash omniroute autostart ``` ### `autostart enable` **Example:** ```bash omniroute autostart enable ``` ### `autostart disable` **Example:** ```bash omniroute autostart disable ``` ### `autostart toggle` **Example:** ```bash omniroute autostart toggle ``` ### `autostart status` **Example:** ```bash omniroute autostart status ``` ### `config` Show or update CLI tool configuration **Example:** ```bash omniroute config ``` ### `config list` List all CLI tools and config status **Flags:** - `--json` **Example:** ```bash omniroute config list ``` ### `config get ` Show current config for a tool **Flags:** - `--json` **Example:** ```bash omniroute config get ``` ### `config set ` Write config for a tool **Flags:** - `--model ` - `--non-interactive` - `--yes` **Example:** ```bash omniroute config set ``` ### `config validate ` Validate config format without writing **Flags:** - `--model ` - `--json` **Example:** ```bash omniroute config validate ``` ### `config opencode` Generate OpenCode config (alias for **Flags:** - `--model ` - `--non-interactive` - `--yes` **Example:** ```bash omniroute config opencode ``` ### `config lang` **Example:** ```bash omniroute config lang ``` ### `config get` **Flags:** - `--json` **Example:** ```bash omniroute config get ``` ### `config set ` **Flags:** - `--force` **Example:** ```bash omniroute config set ``` ### `config list` **Flags:** - `--json` **Example:** ```bash omniroute config list ``` ### `env` Show and manage environment variables **Example:** ```bash omniroute env ``` ### `env show` Show current environment variables **Flags:** - `--json` **Example:** ```bash omniroute env show ``` ### `env get ` Get a single environment variable **Example:** ```bash omniroute env get ``` ### `env set ` Set an environment variable (current session only) **Example:** ```bash omniroute env set ``` ### `setup` **Flags:** - `--password ` - `--add-provider` - `--provider ` - `--provider-name ` - `--api-key ` - `--default-model ` - `--provider-base-url ` - `--test-provider` - `--non-interactive` - `--list` **Example:** ```bash omniroute setup ``` ### `update` **Flags:** - `--check` - `--apply` - `--changelog` - `--dry-run` - `--no-backup` - `--yes` **Example:** ```bash omniroute update ```