Cub CLI v0.1.2-beta • Production-Grade Autonomous Documentation
Cub Code Studio: CLI Reference
Cub Code Studio is a studio-grade, professional autonomous coding agent designed for rapid industrial development. This documentation covers the installation and usage of the Cub Code Command Line Interface (CLI).
Installation
To install the global Cub Code CLI, ensure you have Node.js (v18+) and pnpm installed on your system.
Terminal CLIpnpm install -g @techliftdigital/cub-code
Authentication
Before launching an autonomous session, you must authenticate your local terminal with the Cub Platform.
1. Login
Run the following command and follow the browser prompts to link your account.
Terminal CLIcub login
2. Verify Status
Check your system compliance and API key status.
Terminal CLIcub status
Core Commands
cub start
The primary engine command. Launches a new autonomous agentic session in your current directory.
- Usage:
cub start [options] - Options:
-y, --yes: Skip tool execution confirmations (Autonomous Mode).--model <name>: Force a specific reasoning model for the session.
cub init
Initialize a Studio Perspective file (CUB_CODE.md) in your repository. This file defines the engineering rules and mission goals that the agent will prioritize.
- Usage:
cub init [options] - Options:
-g, --global: Create global rules for the user profile.
Configuration
Manage your local engine settings and default providers.
Terminal CLIcub config <action> [value]
Actions:
- set-key: Manually set your Cub API key.
- get-key: Retrieve the current key (redacted).
- set-model: Set the default reasoning engine (e.g.,
gpt-4o,claude-3-5-sonnet).
Engineering Standards
Cub Code Studio adheres to the following high-integrity standards:
- Studio-Grade Quality: Prioritizes professional, functional, and clean code patterns.
- Security First: Never hardcodes secrets; utilizes encrypted local vaults for keys.
- Identity Sync: All preferences are synchronized across your authenticated devices.