How do I create a configmap from a config file?

The syntax is:

oc create configmap <name> --from-file=<file|directory>