Skip to content

feat: add variable management CLI command#10

Merged
Hinne1 merged 1 commit into
mainfrom
claude/open-source-prep
Feb 18, 2026
Merged

feat: add variable management CLI command#10
Hinne1 merged 1 commit into
mainfrom
claude/open-source-prep

Conversation

@Hinne1
Copy link
Copy Markdown
Contributor

@Hinne1 Hinne1 commented Feb 18, 2026

What & Why

Adds the missing n8nctl variable command (alias: var) for managing n8n environment variables from the CLI. Previously we had to use raw curl calls against the n8n API to manage variables.

Key Changes

  • New command: n8nctl variable with list, get, create, update, delete subcommands
  • All subcommands resolve by key name (not ID) for ergonomics
  • Supports --json output on list and get
  • Registered in root command with var alias

Usage

n8nctl var list                          # Table output
n8nctl var list --json                   # JSON output
n8nctl var get mts_stargate_url          # Get value by key
n8nctl var create my_key "my_value"      # Create
n8nctl var update my_key "new_value"     # Update
n8nctl var delete my_key                 # Delete

Testing

  • go build ./... — clean
  • Manually tested full CRUD lifecycle on stage

@gemini-code-assist
Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

Adds `n8nctl variable` (alias: `var`) with subcommands:
- list: show all variables (supports --json)
- get <key>: get a variable value by key
- create <key> <value>: create a new variable
- update <key> <value>: update an existing variable
- delete <key>: delete a variable

All subcommands resolve by key name (not ID) for ergonomics.
@Hinne1 Hinne1 force-pushed the claude/open-source-prep branch from 4421971 to ca20f55 Compare February 18, 2026 05:20
@Hinne1 Hinne1 merged commit 5e42851 into main Feb 18, 2026
5 checks passed
@Hinne1 Hinne1 deleted the claude/open-source-prep branch February 18, 2026 05:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant