OC(1)

πŸ“¦
version 4.22.0 Β· 2 versions
, in nixpkgs unstable

πŸ’… OC(1) β€” oc new-project β€” Openshift CLI User Manuals πŸ’…

okay so this is the page for oc new-project from the Openshift CLI User Manuals, and it’s giving β€œmake me a project” main character energy. Let’s go, bestie. ✨

πŸ¦‹ NAME πŸ¦‹

oc new-project β€” Request a new project

✨ SYNOPSIS ✨

oc new-project [OPTIONS]

🌸 DESCRIPTION 🌸

Create a new project for yourself. No cap, that’s the whole assignment. πŸ’–

If your administrator allows self-service, this command will create a new project for you and assign you as the project admin. Slay.

After your project is created it will become the default project in your config. So yeah, it’s basically moving in and putting its stuff on the shelf. πŸŽ€

πŸ’… OPTIONS πŸ’…

  • --description="" β€” project description β€” keep it cute and descriptive.
  • --display-name="" β€” project display name, if you want one. Pretty.
  • --skip-config-write=false β€” if true, the project will not be set as a cluster entry in kubeconfig after being created. That’s the whole vibe.

🌈 OPTIONS INHERITED FROM PARENT COMMANDS 🌈

these are hand-me-down flags from the parent commands, but they still eat and we still need them:

  • --as="" β€” username to impersonate for the operation. User could be a regular user or a service account in a namespace. iykyk.
  • --as-group=[] β€” group to impersonate for the operation; this flag can be repeated to specify multiple groups. Default is [].
  • --as-uid="" β€” UID to impersonate for the operation.
  • --as-user-extra=[] β€” user extras to impersonate for the operation; this flag can be repeated to specify multiple values for the same key. Default is [].
  • --cache-dir="/homeless-shelter/.kube/cache" β€” default cache directory. Yes, that path is literally what it says.
  • --certificate-authority="" β€” path to a cert file for the certificate authority.
  • --client-certificate="" β€” path to a client certificate file for TLS.
  • --client-key="" β€” path to a client key file for TLS.
  • --cluster="" β€” the name of the kubeconfig cluster to use.
  • --context="" β€” the name of the kubeconfig context to use.
  • --disable-compression=false β€” if true, opt-out of response compression for all requests to the server.
  • --insecure-skip-tls-verify=false β€” if true, the server’s certificate will not be checked for validity. This will make your HTTPS connections insecure. ⚠️ bestie, this is the risky one β€” insecure is not a vibe here.
  • --kubeconfig="" β€” path to the kubeconfig file to use for CLI requests.
  • --kuberc="" β€” path to the kuberc file to use for preferences. This can be disabled by exporting KUBECTL_KUBERC=false feature gate or turning off the feature KUBERC=off.
  • --match-server-version=false β€” require server version to match client version.
  • -n, --namespace="" β€” if present, the namespace scope for this CLI request.
  • --profile="none" β€” name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex). Default is none.
  • --profile-output="profile.pprof" β€” name of the file to write the profile to. Default is profile.pprof.
  • --request-timeout="0" β€” the length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don’t timeout requests.
  • -s, --server="" β€” the address and port of the Kubernetes API server.
  • --tls-server-name="" β€” server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used.
  • --token="" β€” bearer token for authentication to the API server.
  • --user="" β€” the name of the kubeconfig user to use.
  • --warnings-as-errors=false β€” treat warnings received from the server as errors and exit with a non-zero exit code.

πŸŽ€ EXAMPLE πŸŽ€

                # Create a new project with minimal information
                oc new-project web-team-dev

                # Create a new project with a display name and description
                oc new-project web-team-dev --display-name="Web Team Development" --description="Development project for the web team."

πŸ¦‹ SEE ALSO πŸ¦‹

oc(1),

πŸ’œ HISTORY πŸ’œ

June 2016, Ported from the Kubernetes man-doc generator

xoxo, from the Openshift CLI User Manuals bestie β€” June 2016 edition 🫢✨

πŸ“¦ where this page comes from