thanks for being awesome okta! https://developer.okta.com/blog/2019/06/18/command-line-app-with-nodejs
npm install -g .
npm uninstall -g nim-cli
f5-devops ➜ ~/workspace (main ✗) $ nim-cli --help
nim-cli [command]
Commands:
nim-cli config [action] local config options
nim-cli set [target] [auth] set default target
nim-cli get [info] [type] [target] get nim info
nim-cli list [type] [target] list instances
Options:
--help Show help [boolean]
--version Show version number [boolean]
-v, --verbose Run with verbose logging
[boolean] [default: false]
--tls_verify, --tls verify tls certs [boolean] [default: true]
nim-cli config list
nim-cli set https://demo.nim.com basic
nim-cli config list
nim-cli config reset --force
nim-cli config list
# export env vars
export OKTA_ORG_URL=https://{yourOktaOrgUrl}
export OKTA_CLIENT_ID={yourClientID}
export OKTA_SCOPES="openid profile email"
export OKTA_REDIRECT_PORT=8080
includes:
- pre-commit
- go
- docker
- terraform
- terraform-docs don't forget to add your git user config
git config --global user.name "myuser"
git config --global user.email "myuser@domain.com"
checking for secrets as well as linting is performed by git pre-commit with the module requirements handled in the devcontainer.
testing pre-commit hooks:
# test pre commit manually
pre-commit run -a -v