CLI Reference
📘 CLI ReferenceLink
Complete reference for all Sierra Dev command-line tools.
🚀 Quick ReferenceLink
| Command | Purpose | Example |
|---|---|---|
init |
Create new environment | sierra-dev init my_project |
build |
Compile invokers | sierra-dev build |
check |
Run validation | sierra-dev check |
health |
Environment status | sierra-dev health |
repo add |
Add package source | sierra-dev repo add <url> |
search |
Find packages | sierra-dev search osint |
install |
Install package | sierra-dev install tool-name |
update |
Update packages | sierra-dev update --all |
list |
List packages | sierra-dev list --installed |
remove |
Uninstall package | sierra-dev remove tool-name |
🎯 Global OptionsLink
Available for most commands:
| Bash | |
|---|---|
📂 Environment CommandsLink
init - Initialize EnvironmentLink
Create a new Sierra environment for your projects.
Syntax:
| Bash | |
|---|---|
Arguments:
- name - Environment name (default: default_env)
- --force - Overwrite existing environment
Examples:
| Bash | |
|---|---|
What It Creates:
| Text Only | |
|---|---|
clean - Clean EnvironmentLink
Remove generated files from an environment.
Syntax:
| Bash | |
|---|---|
What It Removes:
- config.yaml
- __pycache__ directories
- .pytest_cache directories
Examples:
| Bash | |
|---|---|
🏗️ Build CommandsLink
build - Compile InvokersLink
Compile source invokers into standalone scripts.
Syntax:
| Bash | |
|---|---|
Options:
- --env - Environment to build (default: default_env)
- -v, --verbose - Show detailed logs
Examples:
| Bash | |
|---|---|
Process:
graph LR
A[Source Scripts] -->|Validate| B[Type Check]
B -->|Transform| C[Generate CLI]
C -->|Bundle| D[Standalone Scripts]
D --> E[Update config.yaml]
style A fill:#bc13fe20
style D fill:#00f3ff20
Output:
- Compiled scripts in ENV/invokers/
- Updated ENV/config.yaml
- Installed dependencies in ENV/venv/
check - Validate InvokersLink
Run comprehensive validation checks without building.
Syntax:
| Bash | |
|---|---|
Checks: - ✅ Type annotations present - ✅ Parameter validation rules - ✅ YAML-safe names and descriptions - ✅ Entry point exists - ✅ Dependencies resolvable
Examples:
| Bash | |
|---|---|
Output Example:
| Text Only | |
|---|---|
health - Environment HealthLink
Check overall health of your Sierra environment.
Syntax:
| Bash | |
|---|---|
Checks: - Scripts directory exists - Virtual environment valid - Dependencies installed - Config file valid
Examples:
| Bash | |
|---|---|
Output:
| Text Only | |
|---|---|
📦 Package Manager CommandsLink
repo add - Add RepositoryLink
Add a GitHub repository as a package source.
Syntax:
| Bash | |
|---|---|
Arguments:
- url - GitHub repository URL
- --name - Custom name for source
- --branch - Git branch (default: main)
- --priority - Source priority (default: 10, lower = higher priority)
Examples:
| Bash | |
|---|---|
repo list - List RepositoriesLink
Show all configured package sources.
Syntax:
| Bash | |
|---|---|
Output:
| Text Only | |
|---|---|
repo update - Update RegistryLink
Update package registry from repositories.
Syntax:
| Bash | |
|---|---|
Arguments:
- source - Specific source to update (optional)
Examples:
| Bash | |
|---|---|
repo remove - Remove RepositoryLink
Remove a package source.
Syntax:
| Bash | |
|---|---|
Examples:
| Bash | |
|---|---|
search - Search PackagesLink
Find packages across all repositories.
Syntax:
| Bash | |
|---|---|
Options:
- --tag - Filter by tag
- --category - Filter by category
- --source - Filter by source
Examples:
| Bash | |
|---|---|
Output:
info - Package InformationLink
Show detailed information about a package.
Syntax:
| Bash | |
|---|---|
Examples:
| Bash | |
|---|---|
Output:
| Text Only | |
|---|---|
install - Install PackageLink
Install packages into your environment.
Syntax:
| Bash | |
|---|---|
Options:
- --env - Target environment (default: test_env)
- --force - Force reinstall
- --skip-validation - Skip type safety checks
Examples:
Process:
1. Downloads package from source
2. Validates type safety (unless skipped)
3. Installs to ENV/scripts/
4. Updates package metadata
Important: After installing, run sierra-dev build to compile!
list - List PackagesLink
List available or installed packages.
Syntax:
| Bash | |
|---|---|
Options:
- --installed - Show only installed packages
- --env - Environment to check (default: test_env)
Examples:
| Bash | |
|---|---|
Output (Available):
| Text Only | |
|---|---|
Output (Installed):
| Text Only | |
|---|---|
update - Update PackagesLink
Update installed packages to latest versions.
Syntax:
| Bash | |
|---|---|
Options:
- --all - Update all packages
- --env - Environment to update (default: test_env)
Examples:
| Bash | |
|---|---|
Output:
| Text Only | |
|---|---|
upgradable - List UpgradableLink
Show packages with available updates.
Syntax:
| Bash | |
|---|---|
Examples:
| Bash | |
|---|---|
Output:
| Text Only | |
|---|---|
remove - Uninstall PackageLink
Remove an installed package.
Syntax:
| Bash | |
|---|---|
Examples:
| Bash | |
|---|---|
Output:
| Text Only | |
|---|---|
💡 Common WorkflowsLink
Starting a New ProjectLink
Developing an InvokerLink
| Bash | |
|---|---|
Maintaining PackagesLink
| Bash | |
|---|---|
🔧 Advanced UsageLink
Environment VariablesLink
| Bash | |
|---|---|
Chaining CommandsLink
ScriptingLink
| Bash | |
|---|---|
🚨 Exit CodesLink
Commands return standard exit codes:
| Code | Meaning |
|---|---|
0 |
Success |
1 |
Error |
130 |
Interrupted (Ctrl+C) |
Use in scripts:
| Bash | |
|---|---|
📚 Related DocumentationLink
- Core Concepts - Understand the terminology
- Tutorial - Hands-on learning
- Package Manager - Detailed package guide
- Troubleshooting - Fix common issues