Quickstart

From zero to running your first script in under 5 minutes.

1

Create an account

Go to app.codefetch.io and sign up with your email address.

  1. Enter your email and click Send Code
  2. Check your inbox for the 6-digit verification code
  3. Enter the code and click Verify

You'll receive your account URL and secret key. Save both — the secret key is shown only once.

2

Install the VS Code extension

Open VS Code, go to the Extensions panel (Ctrl+Shift+X / Cmd+Shift+X), search for CodeFetch, and click Install.

Then open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P), run CodeFetch: Configure Settings, and enter your account URL and secret key.

3

Publish your first file

Create any script in your workspace — for example hello-world.sh:

#!/bin/bash
echo "Hello, World!"

Right-click the file in the VS Code Explorer and select CodeFetch: Publish File. Add a description and tags, then confirm. A badge appears on the file when it's published successfully.

Note the script ID shown in your library — you'll need it in the next step.

4

Install the CLI

Linux / macOS:

curl -fsSL https://github.com/codefetch-io/codefetch-releases/releases/latest/download/install.sh | bash

Windows (PowerShell, run as Administrator):

iwr https://github.com/codefetch-io/codefetch-releases/releases/latest/download/install.ps1 | iex
5

Configure the CLI

codefetch config

Enter your account URL and secret key when prompted. These are saved as an encrypted configuration file bound to your machine.

6

Run your script

codefetch get <ID>

Replace <ID> with the script ID from step 3. The script is fetched, decrypted, and executed on the current machine. That's it.

Tip: Run codefetch list to open the interactive library browser — search, filter, and execute scripts without needing to remember IDs.

What's next

  • Share a script — in the web app, click Create Link on any file to generate a shared link. Anyone can run it with codefetch link <URL>, no account required.
  • Publish a folder — right-click a folder in VS Code and select CodeFetch: Publish Folder to bulk-publish your whole library at once.
  • Auto-sync — once published, saving a file in VS Code automatically pushes the update to your library in the background.
  • Playbooks — chain multiple scripts together and run them in sequence with a single command.