Skip to main content

Renku CLI (rnk)

The Renku CLI (rnk) is a command-line tool for managing Renku projects, datasets, jobs, and sessions from the terminal written in Rust.

info

rnk is a separate project from the Renku platform itself. For the source code, issues, and latest releases, see SwissDataScienceCenter/renku-cli.

Installation​

Quick install (Linux / macOS)​

curl -sfSL https://raw.githubusercontent.com/SwissDataScienceCenter/renku-cli/main/install.sh | bash

This downloads the latest binary and installs it.

Manual download​

Download the appropriate binary from the releases page:

  • Linux (amd64): *-amd64
  • Linux (aarch64): *-aarch64
  • macOS: *-darwin
  • Windows: *-windows

No installation step is needed — just make the binary executable and move it to your $PATH.

Shell completions​

The CLI can generate completions for bash, fish, zsh, and PowerShell. Add the following to your shell configuration:

# Bash
echo "source <(COMPLETE=bash rnk)" >> ~/.bashrc

# Fish
echo "COMPLETE=fish rnk | source" >> ~/.config/fish/config.fish

# Zsh
echo "source <(COMPLETE=zsh rnk)" >> ~/.zshrc

# PowerShell
echo '$env:COMPLETE = "powershell"; rnk | Out-String | Invoke-Expression; Remove-Item Env:\COMPLETE' >> $PROFILE

Configuration​

Most of the CLI commands are scoped to a project so as not to return too many results.

This project context is resolved in this precedence order (in descending precedence):

  1. --project-context CLI flag
  2. RENKU_CLI_PROJECT_CONTEXT environment variable
  3. .renku/config.toml in the current directory (written by rnk clone)
  4. Global active project set with rnk project activate

Global flags​

  • --format json — structured JSON output instead of human-readable
  • --proxy <url> / --proxy none — control proxy usage
  • -v / -q — increase / decrease log verbosity

Commands​

Authentication​

CommandDescription
rnk loginInteractive login to Renku (browser-based OAuth)
rnk logoutRemove stored credentials

Projects​

CommandDescription
rnk clone <project-ref>Clone a project by ID, namespace/slug, or URL
rnk project clone <project-ref>Same as above (full command form)
rnk project activate <project-ref>Set the active project for the current user (rnk p a)
rnk project deactivateUnset the active project (rnk p d)
rnk project currentShow the currently active project (rnk p c)
rnk project listList projects (--all / -a to show all, --n-results / -n to limit)

Datasets​

CommandDescription
rnk dataset depositManage dataset deposits (aliases: rnk d)

Jobs​

CommandDescription
rnk job listList jobs (rnk j ls)
rnk job start --launcher <launcher-id>Start a non-interactive job
rnk job stop <job-id>Stop a running job
rnk job logs <job-id>View job logs

Sessions​

CommandDescription
rnk session start --launcher <launcher-id>Start an interactive session using a launcher
rnk session stop <session-id>Stop a running session
rnk session listList currently running sessions
rnk session logs <session-id>View session logs (--follow / -f for live tail)

Launchers​

CommandDescription
rnk launcher listList currently running launchers (--mode to filter by type)

Other​

CommandDescription
rnk versionShow client and server version info
rnk updateCheck for and install updates

Quick start​

# 1. Authenticate to your Renku instance
rnk login

# 2. Clone a project
rnk clone <project-ref>

# 3. List running jobs
rnk job list