Skip to content

Latest commit

 

History

History
53 lines (34 loc) · 1.55 KB

File metadata and controls

53 lines (34 loc) · 1.55 KB

Test Cline CLI agent demo using web-terminal

  1. Install web-terminal in your cluster. Login using oc as cluster-admin.

    curl -Ls https://raw.githubusercontent.com/eformat/web-terminal/refs/heads/main/web-terminal-all-in-one.sh | bash -s
  2. Select >_ OpenShift command line in top right of OpenShift UI.

  3. Initialze default terminal by hitting Start.

    images/web-terminal-1.png

  4. Wait for the custom image to download and start a pod in the openshift-terminal namespace. You should see the following prompt:

    images/web-terminal-2.png

  5. Install cline. We are going to run this cline agent demo.

    npm i cline
  6. Put cline on path.

    echo 'export PATH=$HOME/node_modules/.bin:$PATH' >> ~/.bashrc
    bash
  7. Login to GitHub with a token.

    export GH_TOKEN=ghp_<redacted your token>
    gh auth login
  8. You will need an LLM or hosted service to connect to. See cline auth --help

    cline auth -p openai-compatible -k $TOKEN -m $MODEL_ID -b $HOST/v1

    images/web-terminal-3.png

  9. Test a yolo prompt.

    cline -y "What is the root cause of this issue? Give me a detailed anaylsis. Use gh client, then parse the issue details from the html: https://github.com/eformat/sno-for-100/issues/13" -m act

    images/cline-web-terminal.png