* backport of commit d91c194e72
* backport of commit d05df36d77
* backport of commit 2531018f36
* backport of commit 1768215b6b
* backport of commit 47cd24fb3d
---------
Co-authored-by: Xinyi Wang <xinyi.wang@hashicorp.com>
* add acl token
* apply commmand works
* add info to error message
* add tests to apply method
* add more description to flag
* code refactor
* update the error message
* fix the failing test