Create Kubernetes ConfigMaps imperatively

From literal:

kubectl create cm app-config --from-literal=APP_COLOR=blue --from-literal=APP_MOD=prod
From file:
kubectl create cm app-config --from-file=app_config.properties