Skip to content

Add common aliases for add/create remove/delete/rm in the CLI #1797

Closed
@stgraber

Description

@stgraber

The CLI is designed to be pretty consistent in the naming of its main actions.

Objects where user data is important will normally be created through create and deleted through delete. Delete actions usually imply data being lost.

Lighter weight objects, such as relations between objects or entries within a larger object are usually added through add and removed through remove.

We don't really want to change that behavior, but it would still be quite useful to those without a full mapping of all our commands in their mind to find what they want without having to rely on the help :)

For that reason, we should make sure that:

  • All create commands have a add alias
  • All add commands have a create alias
  • All remove commands have both rm and delete aliases
  • All delete commands have both rm and remove aliases

Aliases aren't listed in the help, so this will be basically invisible other than reducing the number of errors that our users run into.

Metadata

Metadata

Labels

EasyGood for new contributors

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions