OC(1)
π
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 inkubeconfigafter 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 exportingKUBECTL_KUBERC=falsefeature gate or turning off the featureKUBERC=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 isnone.--profile-output="profile.pprof"β name of the file to write the profile to. Default isprofile.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 π¦
π 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
- nixpkgs unstable: openshift 4.22.0-202605222050
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms