Perhaps I’m doing something wrong, but I was reading the documentation here and saw that it was possible to add service variables, though I get the following error when attempting to do so
matthew@thinkpad ~ $ balena env add OCTOPRINT_APIKEY 82F64792280242B89E63D2DFDF5C115E --device 338d9c2 --service octodash
Unexpected arguments: --service, octodash
See more help with --help
Additional information may be available by setting a DEBUG=1 environment
variable: "set DEBUG=1" on a Windows command prompt, or "export DEBUG=1"
on Linux or macOS.
If you need help, don't hesitate in contacting our support forums at
https://forums.balena.io
For CLI bug reports or feature requests, have a look at the GitHub issues or
create a new one at: https://github.com/balena-io/balena-cli/issues/
When doing balena help env add
the documentation in the CLI contradicts the aforementioned documentation. Has it ever been possible to do this?
matthew@thinkpad ~ $ balena help env add
Add an environment or config variable to an application or device.
USAGE
$ balena env add NAME [VALUE]
ARGUMENTS
NAME environment or config variable name
VALUE variable value; if omitted, use value from CLI's environment
OPTIONS
-a, --application=application application name
-d, --device=device device UUID
-h, --help show CLI help
-q, --quiet suppress warning messages
DESCRIPTION
Add an environment or config variable to an application or device, as selected
by the respective command-line options.
If VALUE is omitted, the CLI will attempt to use the value of the environment
variable of same name in the CLI process' environment. In this case, a warning
message will be printed. Use `--quiet` to suppress it.
Service-specific variables are not currently supported. The given command line
examples variables that apply to all services in an app or device.
EXAMPLES
$ balena env add TERM --application MyApp
$ balena env add EDITOR vim --application MyApp
$ balena env add EDITOR vim --device 7cf02a6