Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

clive

> 开发工具
Open source

⚡ Automates terminal operations.

393 stars0 likes3 views
WebsiteGitHub

About

⚡ Automates terminal operations.

Automates terminal operations.

cLive

  • Prerequisite
  • Installation
  • Getting Started
  • Commands
    • init
    • start
    • validate
    • completion
  • Configuration
    • settings
    • actions
  • Examples
  • License

:information_source: Prerequisite

cLive requires ttyd (version 1.7.4 or higher) to be installed.
For example, if you are using homebrew, you can install it with brew install.

bash
$ brew install ttyd

See the ttyd documentation for more information.

:zap: Installation

[!NOTE] There are prerequisites for using cLive. See Prerequisite for details.

Homebrew Tap (Recommended)

bash
$ brew install koki-develop/tap/clive

Homebrew

bash
$ brew install clive

go install

bash
$ go install github.com/koki-develop/clive@latest

Releases

Download the binary from the releases page.

:beginner: Getting Started

First, run clive init.

bash
$ clive init
Created ./clive.yml

A file named clive.yml will then be created with the following contents:

yaml
# documentation: https://github.com/koki-develop/clive#settings
settings:
  loginCommand: ["bash", "--login"]
  fontSize: 22
  defaultSpeed: 10

# documentation: https://github.com/koki-develop/clive#actions
actions:
  - pause
  - type: echo 'Welcome to cLive!'
  - key: enter

Finally, run clive start to launch the browser and start cLive.

bash
$ clive start

:rocket: Commands

Available commands:

  • init - Create a config file.
  • start - Start cLive actions.
  • validate - Validate a config file.
  • completion - Generate the autocompletion script for the specified shell.

clive init

Create a config file.

bash
$ clive init
Flag Default Description
-c, --config ./clive.yml Config file name.

clive start

Start cLive actions. See Configuration for the config file.

bash
$ clive start
Flag Default Description
-c, --config ./clive.yml Config file name.

clive validate

Validate a config file.

bash
$ clive validate
Flag Default Description
-c, --config ./clive.yml Config file name.

clive completion

Generate the autocompletion script for clive for the specified shell.
See each sub-command's help for details on how to use the generated script.

bash
$ clive completion 

# e.g.
$ clive completion bash
$ clive completion bash --help

Available shells:

  • bash
  • fish
  • powershell
  • zsh

:gear: Configuration

The config file consists of actions and settings.

  • settings - Basic settings (font size, default speed, etc.) .
  • actions - Actions to run.

settings

Basic settings.
Available settings:

  • loginCommand - Login command and args.
  • fontSize - Font size.
  • fontFamily - Font family.
  • defaultSpeed - Default interval between key typing.
  • skipPauseBeforeQuit - Whether to skip pausing before quitting.
  • screenshotsDir - Directory to save screenshots.
  • browserBin - Path to an executable browser binary.
  • headless - Whether to run the browser in headless mode.
  • width - Window width.
  • height - Window height.

loginCommand

Login command and args.
Default: ["bash", "--login"].

yaml
# e.g.
settings:
  loginCommand: ["zsh", "--login"]

fontSize

Font size.
Default: 22

yaml
# e.g.
settings:
  fontSize: 36

fontFamily

Font family.

yaml
# e.g.
settings:
  fontFamily: monospace

defaultSpeed

Default interval between key typing.
Default: 10

yaml
# e.g.
settings:
  defaultSpeed: 100

skipPauseBeforeQuit

Whether to skip pausing before quitting.
Default: false

yaml
# e.g.
settings:
  skipPauseBeforeQuit: true

screenshotsDir

Directory to save screenshots.
Default: screenshots

yaml
# e.g.
settings:
  screenshotsDir: path/to/pictures

browserBin

Path to an executable browser binary.
See the go-rod documentation for supported browsers.

yaml
# e.g.
settings:
  browserBin: /Applications/Vivaldi.app/Contents/MacOS/Vivaldi # use Vivaldi

headless

Whether to run the browser in headless mode.
Default: false

yaml
# e.g.
settings:
  headless: true

width

Window width.

yaml
# e.g.
settings:
  width: 1600

height

Window height.

yaml
# e.g.
settings:
  height: 800

actions

Actions to run.
Available actions:

  • type - Type characters.
  • key - Enter special keys.
  • ctrl - Press the Ctrl key with other keys.
  • sleep - Sleep for a specified number of milliseconds.
  • pause - Pause actions.
  • screenshot - Take a screenshot.

type

Type characters.

Field Required Default Description
type Yes N/A Characters to type.
count No 1 Number of times to repeat the action.
speed No 10 Interval between key typing (milliseconds).
yaml
# e.g.
actions:
  - type: echo 'Hello World'
    count: 10 # Optional
    speed: 100 # Optional

key

Enter special keys.
Available keys:

  • esc
  • backspace
  • tab
  • enter
  • left
  • up
  • right
  • down
  • space
Field Required Default Description
key Yes N/A Special key to type.
count No 1 Number of times to repeat the action.
speed No 10 Interval between key typing (milliseconds).
yaml
# e.g.
actions:
  - key: enter
    count: 10 # Optional
    speed: 100 # Optional

ctrl

Press the Ctrl key with other keys.

Field Required Default Description
ctrl Yes N/A Characters to enter with the ctrl key.
count No 1 Number of times to repeat the action.
speed No 10 Interval between key typing (milliseconds).
yaml
# e.g.
actions:
  - ctrl: c # Ctrl+c
    count: 10 # Optional
    speed: 100 # Optional

sleep

Sleep for a specified number of milliseconds.

Field Required Default Description
sleep Yes N/A Time to sleep (milliseconds).
yaml
# e.g.
actions:
  - sleep: 3000 # Sleep for 3 seconds.

pause

Pause actions.
Press enter to continue.

yaml
# e.g.
actions:
  - pause

screenshot

Take a screenshot.
Screenshots are saved in screenshots/.
The directory to save the screenshots can be changed in settings.screenshotsDir.

Field Required Default Description
screenshot No _.png File name of the screenshot.
yaml
# e.g.
actions:
  - screenshot
  - screenshot: foobar.png # Optional

:book: Examples

For more examples see the examples/ directory.

:coffee: Buy me a coffee

If you like this project, please consider buying me a coffee.

:memo: License

MIT License

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Gocligolangterminal

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具