A command-line tool for renaming Blackboard courses, either one at a time through an interactive prompt or in bulk from a file.
Find a file
2026-11-19 18:19:03 +01:00
.env.sample Update README. Use krate's log function. 2026-11-19 07:49:49 -06:00
.gitignore add files to repo 2026-07-23 08:45:50 -05:00
courses.txt Minor clean up. Add todos. 2026-10-08 09:40:15 -05:00
go.mod Update README. Use krate's log function. 2026-11-19 07:49:49 -06:00
go.sum Update README. Use krate's log function. 2026-11-19 07:49:49 -06:00
LICENSE Add license 2026-09-25 13:11:54 -05:00
main.go Update README. Use krate's log function. 2026-11-19 07:49:49 -06:00
README.md Update README.md 2026-11-19 18:19:03 +01:00

renamer

A cli tool for renaming Blackboard courses, either one at a time or in bulk from a .txt file.

It uses chawk to interact with the Blackboard API and the UI uses huh.

Configuration

Requires Blackboard REST API credentials (application key and secret) with permission to read and update courses.

Credentials are read from environment variables in a .env file in the working directory. See .env.sample for more information.

Usage

One at a time

Run the tool with no arguments:

./renamer
  1. Enter a course ID (or q / quit to exit).
  2. The tool fetches the course and shows its current name.
  3. Edit the name (it is pre-filled with the current one) and press Enter.
  4. The course is renamed, and the prompt repeats for the next course.

Press Ctrl-C at any prompt to exit.

Batch mode

Pass a file with the -file flag:

./renamer -file courses.txt

Each line has a course ID and the new name, separated by a pipe (|):

COURSE-101|Introduction to Biology
COURSE-102|Organic Chemistry I (Extra)
COURSE-103|World History Since 1500

Lines with a missing |, an empty course ID, or an empty new name are skipped with a warning that includes the line number.

Note

  • Renames are applied immediately, so double-check your input file before running a large batch.
  • This tool looks up each course's current name before renaming, so each line costs 2 API calls.