Pre-launch — Gluecron is in final validation. Public signups and git hosting for non-owner users open after launch review.
CodeIssuesPull RequestsActionsSecurityInsightsSettings
✨ AI
More
Blame · Line-by-line history

STANDALONE_CLI.md

Each line is annotated with the commit that last touched it. Click any SHA to jump to that commit and see the surrounding change.

STANDALONE_CLI.mdBlame102 lines · 1 contributor
573a806ccantynz App1# Gluecron CLI (`gc`)
2
3The `gc` CLI replaces `git` + `gh` + GitHub Actions CLI with a single tool that understands your entire development workflow.
4
5## Installation
6
7```bash
8# Via Bun
9bun install -g gluecron
10
11# Via install script
12curl -fsSL https://get.gluecron.com | sh
13```
14
15## Configuration
16
17```bash
18export GLUECRON_URL=https://your-gluecron-instance.com
19export GLUECRON_TOKEN=gc_your_api_token
20
21# Or run once:
22gc auth login
23```
24
25## Core Commands
26
27### Repository
28```bash
29gc init # Initialise a new Gluecron repo
30gc clone owner/repo # Clone a repo
31gc push # Push changes (like git push, but smarter)
32gc push --draft # Push and open a draft PR
33```
34
35### Pull Requests
36```bash
37gc pr create # Open a PR (AI generates title + description)
38gc pr create --ai-description # AI writes full PR description from diff
39gc pr review # Get AI review of the current branch
40gc pr review --file src/auth.ts # AI review focused on a specific file
41gc pr merge # Merge current PR
42gc pr list # List open PRs
43```
44
45### CI
46```bash
47gc ci status # Show CI status for current branch
48gc ci logs # Stream CI logs
49gc ci rerun # Rerun failed CI jobs
50```
51
52### Deployment
53```bash
54gc deploy # Trigger deploy for current branch
55gc deploy --env production # Deploy to specific environment
56gc logs --env production # Stream production logs
57gc rollback # Rollback last deployment
58```
59
60### AI Features
61```bash
62gc ai ask "why is the auth test failing" # Ask about the codebase
63gc ai ask "where do we handle rate limiting" # Semantic code search via CLI
64gc ai review # Full AI code review
65gc ai fix # AI suggests fixes for current errors
66gc ai docs # Generate docs for changed files
67```
68
69### Issues
70```bash
71gc issue create # Create issue (AI suggests labels/assignees)
72gc issue list # List issues
73gc issue close 42 # Close issue
74```
75
76## Flywheel Integration
77
78Every `gc ai ask` response includes an implicit feedback mechanism:
79
80```bash
81gc ai ask "how does billing work"
82# Response displayed...
83# Was this helpful? [y/n/e (elaborate)]
84```
85
86Ratings feed directly into the Gluecron AI flywheel, improving answer quality for your specific codebase over time.
87
88## Offline Mode
89
90The CLI caches a compressed semantic index of your repo locally. When offline:
91- `gc ai ask` works against the local index (last synced at most recent `gc push`)
92- Responses are marked `[offline — index from <timestamp>]`
93- Full accuracy resumes on next network connection
94
95## Environment Variables
96
97| Variable | Description |
98|----------|-------------|
99| `GLUECRON_URL` | URL of your Gluecron instance |
100| `GLUECRON_TOKEN` | API token for authentication |
101| `GLUECRON_OFFLINE` | Set to `1` to force offline mode |
102| `GLUECRON_NO_FLYWHEEL` | Set to `1` to disable telemetry (not recommended) |