Skip to content

Latest commit

 

History

History
57 lines (37 loc) · 1.05 KB

remove.md

File metadata and controls

57 lines (37 loc) · 1.05 KB

remove command

Use the remove command to delete properties specified by their keys.

To delete a single property:

$ envm remove <key> [options]

To delete multiple properties:

$ envm remove <key1> <key2> ... [options]

Options

--tag= or -t

Specifies the target environment. In the absence of this option, the current environment is used.

$ envm remove <keys> --tag=<environment-tag>

or

$ envm remove <keys> -t <environment-tag>

--all or -a

This option has two behaviors, depending on the presence of keys:

With specified keys:
Removes the provided keys from all saved environments.

$ envm remove <keys> --all

Without specified keys:
Deletes all properties from the current environment (or specified via --tag).

$ envm remove --all

--target-only or -o

Restricts the removal to keys in the target properties file (target) only, without affecting the saved environments.

$ envm remove <keys> --target-only