Skip to content

Feat: load parameters from file on workspace creation #1377

Closed
@spikecurtis

Description

@spikecurtis

What is your suggestion?

Allow users to specify a file on disk for coder create command, e.g. through a flag --parameter-file

Why do you want this feature?

  1. Allows coder create to be more easily used in scripts. Today we prompt, which is hard to automate.
  2. Bug: can't use Backspace in "Specify a name for your workspace" #1226 stems from a fix that was made to allow long inputs to be entered on macOS terminal. If we revert change to fix the backspace bug, we need some workaround method that will allow long inputs on the CLI for macOS, and this parameter file fits the bill.
  3. General usability. Users that create more than one similar workspace today are forced to reenter the same data at prompts.

Are there any workarounds to get this functionality today?

Not as such, although they can enter parameters at the prompts.

Are you interested in submitting a PR for this?

Yes

Metadata

Metadata

Assignees

Labels

apiArea: HTTP API

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions