Browse code

Update documentation to use 'osc create' consistently

Michal Fojtik authored on 2015/01/28 00:00:19
Showing 14 changed files
... ...
@@ -20,7 +20,7 @@ The OpenShift team periodically publishes binaries to Github on https://github.c
20 20
 The tar file for each platform contains a single binary `openshift` which is the all-in-one OpenShift installation.
21 21
 
22 22
 * Use `sudo openshift start` to launch the server.  Root access is required to create services due to the need to modify IPTables.  See issue: https://github.com/GoogleCloudPlatform/kubernetes/issues/1859.
23
-* Use `openshift kubectl -h <server> ...` to connect to an OpenShift server
23
+* Use `osc -h <server> ...` to connect to an OpenShift server
24 24
 * Use `openshift help` to see more about the commands in the binary
25 25
 
26 26
 == Develop locally on your host
... ...
@@ -80,7 +80,7 @@ Once setup with a Go development environment and Docker, you can:
80 80
 3.  In another terminal window, switch to the directory and start an app:
81 81
 
82 82
         $ cd $GOPATH/src/github.com/openshift/origin
83
-        $ _output/local/go/bin/openshift cli create -f examples/hello-openshift/hello-pod.json
83
+        $ _output/local/go/bin/osc create -f examples/hello-openshift/hello-pod.json
84 84
 
85 85
 In your browser, go to [http://localhost:6061](http://localhost:6061) and you should see 'Welcome to OpenShift'.
86 86
 
... ...
@@ -1,9 +1,9 @@
1
-cli command line interface
1
+osc command line interface
2 2
 ==============================
3 3
 
4
-The `cli` command line tool is used to interact with the [OpenShift](http://openshift.github.io) and [Kubernetes](http://kubernetes.io/) HTTP API(s).
4
+The `osc` command line tool is used to interact with the [OpenShift](http://openshift.github.io) and [Kubernetes](http://kubernetes.io/) HTTP API(s).
5 5
 
6
-cli is *verb focused*. The base verbs are *get*, *create*, *delete*,
6
+osc is *verb focused*. The base verbs are *get*, *create*, *delete*,
7 7
 *update* and *describe*. These verbs can be used to manage both Kubernetes and
8 8
 OpenShift resources.
9 9
 
... ...
@@ -29,7 +29,7 @@ Common Flags
29 29
 | --insecure-skip-tls-verify | Skip SSL certificate validation (will make HTTPS insecure) |
30 30
 | --help (-h)                | Display help for specified command |
31 31
 
32
-cli get
32
+osc get
33 33
 -----------
34 34
 
35 35
 This command can be used for displaying one or many resources. Possible
... ...
@@ -41,10 +41,10 @@ events).
41 41
 ### Example Usage
42 42
 
43 43
 ```
44
-$ openshift cli get pods
45
-$ openshift cli get replicationController 1234-56-7890-234234-456456
46
-$ openshift cli get service database
47
-$ openshift cli get -f json pods
44
+$ osc get pods
45
+$ osc get replicationController 1234-56-7890-234234-456456
46
+$ osc get service database
47
+$ osc get -f json pods
48 48
 ```
49 49
 
50 50
 ### Output formatting
... ...
@@ -66,18 +66,18 @@ Available formats include:
66 66
 
67 67
 An example of using `-o template` to retrieve the *name* of the first build:
68 68
 
69
-`$ openshift cli get builds -o template -t "{{with index .items 0}}{{.metadata.name}}{{end}}"`
69
+`$ osc get builds -o template -t "{{with index .items 0}}{{.metadata.name}}{{end}}"`
70 70
 
71 71
 ### Selectors
72 72
 
73
-cli `get` provides also 'selectors' that you can use to filter the output
73
+osc `get` provides also 'selectors' that you can use to filter the output
74 74
 by applying key-value pairs that will be matched with the resource labels:
75 75
 
76
-`$ openshift clic get pods -s template=production`
76
+`$ osc get pods -s template=production`
77 77
 
78 78
 This command will return only pods whose `labels` include `"template": "production"`
79 79
 
80
-cli create
80
+osc create
81 81
 --------------
82 82
 
83 83
 This command can be used to create resources. It does not require pointers about
... ...
@@ -87,12 +87,12 @@ After successful creation, the resource name will be printed to the console.
87 87
 ### Example Usage
88 88
 
89 89
 ```
90
-$ openshift cli create -f pod.json
91
-$ cat pod.json | openshift cli create -f -
92
-$ openshift cli create -f http://server/pod.json
90
+$ osc create -f pod.json
91
+$ cat pod.json | osc create -f -
92
+$ osc create -f http://server/pod.json
93 93
 ```
94 94
 
95
-cli update
95
+osc update
96 96
 ---------------
97 97
 
98 98
 This command can be used to update existing resources.
... ...
@@ -100,12 +100,12 @@ This command can be used to update existing resources.
100 100
 ### Example Usage
101 101
 
102 102
 ```
103
-$ openshift cli update -f pod.json
104
-$ cat pod.json | openshift cli update -f -
105
-$ openshift cli update -f http://server/pod.json
103
+$ osc update -f pod.json
104
+$ cat pod.json | osc update -f -
105
+$ osc update -f http://server/pod.json
106 106
 ```
107 107
 
108
-cli delete
108
+osc delete
109 109
 --------------
110 110
 
111 111
 This command deletes the resource.
... ...
@@ -113,11 +113,11 @@ This command deletes the resource.
113 113
 ### Example Usage
114 114
 
115 115
 ```
116
-$ openshift cli delete -f pod.json
117
-$ openshift cli delete pod 1234-56-7890-234234-456456
116
+$ osc delete -f pod.json
117
+$ osc delete pod 1234-56-7890-234234-456456
118 118
 ```
119 119
 
120
-cli describe
120
+osc describe
121 121
 ----------------
122 122
 
123 123
 The `describe` command is a wordier version of `get` which also integrates other
... ...
@@ -125,60 +125,31 @@ information that's related to a given resource.
125 125
 
126 126
 ### Example Usage
127 127
 
128
-`$ openshift cli describe service frontend`
128
+`$ osc describe service frontend`
129 129
 
130
-cli createall
130
+osc namespace
131 131
 -----------------
132 132
 
133
-This command creates multiple resources defined in JSON or YAML file provided
134
-using the `-f` option. The list of resources is defined as an 'array'.
135
-
136
-### Example Usage
137
-
138
-```
139
-$ openshift cli createall -f resources.json
140
-$ cat resources.json | openshift cli createall -f -
141
-```
142
-
143
-cli namespace
144
-
145
-You can use this command to set the default namespace used for all cli
133
+You can use this command to set the default namespace used for all osc
146 134
 commands.
147 135
 
148 136
 ### Example Usage
149 137
 
150
-`$ openshift cli namespace myuser`
138
+`$ osc namespace myuser`
151 139
 
152
-cli log
140
+osc log
153 141
 ------------
154 142
 
155 143
 This command dumps the logs from a given Pod container. You can list the
156 144
 containers from a Pod using the following command:
157 145
 
158
-`$ openshift cli get -o yaml pod POD_ID`
159
-
160
-### Example Usage
161
-
162
-`$ openshift cli log frontend-pod mysql-container`
163
-
164
-cli apply
165
-
166
-> **NOTE**: This command will be later replaced by upstream (see: [kubectl createall](https://github.com/openshift/origin/blob/master/docs/cli.md#kubectl-createall)).
167
-
168
-This command takes a Config resource that defines a list of resources and performs
169
-create operation on them. Look at [examples/sample-app/docker-registry-config.json](https://github.com/openshift/origin/blob/master/examples/sample-app/docker-registry-config.json).
170
-
146
+`$ osc get -o yaml pod POD_ID`
171 147
 
172 148
 ### Example Usage
173 149
 
174
-```
175
-$ openshift cli apply -f examples/sample-app/docker-registry-config.json
176
-$ cat config.json | openshift cli apply -f -
177
-```
150
+`$ osc log frontend-pod mysql-container`
178 151
 
179
-cli process
152
+osc process
180 153
 ---------------
181 154
 
182 155
 This command processes a Template into a valid Config resource. The processing
... ...
@@ -189,11 +160,11 @@ found in [examples/sample-app/application-template-stibuild.json](https://github
189 189
 ### Example Usage
190 190
 
191 191
 ```
192
-$ openshift cli process -f sample-app/application-template-stibuild.json > config.json
193
-$ openshift cli process -f sample-app/application-template-stibuild.json | openshift cli apply -f -
192
+$ osc process -f examples/guestbook/template.json > config.json
193
+$ osc process -f template.json | osc create -f -
194 194
 ```
195 195
 
196
-cli build-logs
196
+osc build-logs
197 197
 ------------------
198 198
 
199 199
 > **NOTE**: This command will be later replaced by upstream (see: [kubectl log](https://github.com/openshift/origin/blob/master/docs/cli.md#kubectl-log)).
... ...
@@ -202,8 +173,8 @@ This command will retrieve the logs from a Build container. It allows you to
202 202
 debug broken Build. If the build is still running, this command can stream the
203 203
 logs from the container to console. You can obtain a list of builds by using:
204 204
 
205
-`$ openshift cli get builds`
205
+`$ osc get builds`
206 206
 
207 207
 ### Example Usage
208 208
 
209
-`$ openshift cli build-logs rubyapp-build`
209
+`$ osc build-logs rubyapp-build`
... ...
@@ -8,7 +8,7 @@ System Environment
8 8
 
9 9
 1. Run as root
10 10
 
11
-   Currently OpenShift v3 must be started as root in order to manipulate your iptables configuration.  The openshift commands (e.g. `openshift kubectl apply`) do not need to be run as root.
11
+   Currently OpenShift v3 must be started as root in order to manipulate your iptables configuration.  The openshift commands (e.g. `osc create`) do not need to be run as root.
12 12
 
13 13
 1. Properly configure or disable firewalld
14 14
 
... ...
@@ -30,11 +30,11 @@ Build Failures
30 30
 
31 31
 To investigate a build failure, first check the build logs.  You can view the build logs via
32 32
 
33
-    $ openshift kubectl build-logs [build_id]
33
+    $ osc build-logs [build_id]
34 34
         
35 35
 and you can get the build id via:
36 36
 
37
-    $ openshift kubectl get builds
37
+    $ osc get builds
38 38
 
39 39
 the build id is in the first column.
40 40
 
... ...
@@ -53,11 +53,11 @@ Docker Registry
53 53
 
54 54
 Most of the v3 flows today assume you are running a docker registry pod.  You should ensure that this local registry is running:
55 55
 
56
-    $ openshift kubectl get services | grep registry
56
+    $ osc get pods --selector="name=registrypod"
57 57
 
58 58
 If it's not running, you can launch it via:
59 59
 
60
-    $ openshift kubectl apply -f examples/sample-app/docker-registry-config.json
60
+    $ osc create -f examples/sample-app/docker-registry-config.json
61 61
 
62 62
 In addition, confirm the IP and Port reported in the services list matches the registry references in your configuration json (e.g. any image tags that contain a registry hostname).  
63 63
 
... ...
@@ -31,7 +31,7 @@ Once it is pulled it will start and be visible in the `docker ps` list of contai
31 31
     [vagrant@openshiftdev origin]$ export PATH=/data/src/github.com/openshift/origin/_output/local/bin/linux/amd64:$PATH
32 32
     [vagrant@openshiftdev origin]$ sudo /data/src/github.com/openshift/origin/_output/local/bin/linux/amd64/openshift start &
33 33
 
34
-    If running in https mode, ensure openshift cli can authenticate
34
+    If running in https mode, ensure osc can authenticate
35 35
     [vagrant@openshiftdev origin]$ sudo chmod a+r openshift.local.certificates/admin/*
36 36
     [vagrant@openshiftdev origin]$ export KUBECONFIG=/data/src/github.com/openshift/origin/openshift.local.certificates/admin/.kubeconfig
37 37
 
... ...
@@ -39,7 +39,7 @@ Once it is pulled it will start and be visible in the `docker ps` list of contai
39 39
     [vagrant@openshiftdev origin]$ export OPENSHIFT_CA_DATA=$(<$CERT_DIR/master/root.crt)
40 40
 
41 41
     [vagrant@openshiftdev origin]$ hack/install-router.sh {router_id} {master_url}
42
-    [vagrant@openshiftdev origin]$ openshift cli get pods
42
+    [vagrant@openshiftdev origin]$ osc get pods
43 43
 
44 44
 #### Clustered vagrant environment
45 45
 
... ...
@@ -62,7 +62,7 @@ In order to run the router in a deployed environment the following conditions mu
62 62
 To install the router pod you use the `hack/install-router.sh` script, passing it the router id, master url, and, optionally,
63 63
 the OpenShift executable.  If the executable is not passed the script will try to find it via the `PATH`.  If the
64 64
 script is still unable to find the OpenShift executable then it will simply create the `/tmp/router.json` file and stop.
65
-It is then up to the user to issue the `openshift cli create` command manually.
65
+It is then up to the user to issue the `osc create` command manually.
66 66
 
67 67
 ### Manually   
68 68
 
... ...
@@ -86,19 +86,19 @@ To test your route independent of DNS you can send a host header to the router.
86 86
 
87 87
     $ ..... vagrant up with single machine instructions .......
88 88
     $ ..... create config files listed below in ~ ........
89
-    [vagrant@openshiftdev origin]$ openshift cli create -f ~/pod.json
90
-    [vagrant@openshiftdev origin]$ openshift cli create -f ~/service.json
91
-    [vagrant@openshiftdev origin]$ openshift cli create -f ~/route.json
89
+    [vagrant@openshiftdev origin]$ osc create -f ~/pod.json
90
+    [vagrant@openshiftdev origin]$ osc create -f ~/service.json
91
+    [vagrant@openshiftdev origin]$ osc create -f ~/route.json
92 92
     [vagrant@openshiftdev origin]$ curl -H "Host:hello-openshift.v3.rhcloud.com" <vm ip>
93 93
     Hello OpenShift!
94 94
 
95 95
     $ ..... vagrant up with cluster instructions .....
96 96
     $ ..... create config files listed below in ~ ........
97
-    [vagrant@openshift-master ~]$ openshift cli create -f ~/pod.json
98
-    [vagrant@openshift-master ~]$ openshift cli create -f ~/service.json
99
-    [vagrant@openshift-master ~]$ openshift cli create -f ~/route.json
97
+    [vagrant@openshift-master ~]$ osc create -f ~/pod.json
98
+    [vagrant@openshift-master ~]$ osc create -f ~/service.json
99
+    [vagrant@openshift-master ~]$ osc create -f ~/route.json
100 100
     # take note of what minion number the router is deployed on
101
-    [vagrant@openshift-master ~]$ openshift cli get pods
101
+    [vagrant@openshift-master ~]$ osc get pods
102 102
     [vagrant@openshift-master ~]$ curl -H "Host:hello-openshift.v3.rhcloud.com" openshift-minion-<1,2>
103 103
     Hello OpenShift!
104 104
 
... ...
@@ -3,7 +3,7 @@ Hello, OpenShift!
3 3
 
4 4
 This example will serve an http response of "Hello Openshift!" to [http://localhost:6061](http://localhost:6061).  To create the pod run:
5 5
 
6
-        $ openshift cli create -f examples/hello-openshift/hello-pod.json
6
+        $ osc create -f examples/hello-openshift/hello-pod.json
7 7
 
8 8
 Contribute
9 9
 ----------
... ...
@@ -16,31 +16,31 @@ Steps
16 16
 
17 17
 2. Start the docker registry services
18 18
 
19
-        $ openshift kubectl apply -f docker-registry-config.json
19
+        $ osc create -f docker-registry-config.json
20 20
 
21 21
 3. Start the Jenkins services
22 22
 
23
-        $ openshift kubectl apply -f jenkins-config.json
23
+        $ osc create -f jenkins-config.json
24 24
 
25 25
 4. Determine the IP address of the docker-registry service:
26 26
 
27
-        $ openshift kubectl get services docker-registry -o template --template="{{ .portalIP }}"
27
+        $ osc get services docker-registry -o template --template="{{ .portalIP }}"
28 28
         
29 29
 5. Edit the application-template.json file by replacing all occurences of `172.30.17.3` with the IP address from the previous step.
30 30
 
31 31
 5. Create the application configuration
32 32
 
33
-        $ openshift kubectl process -f application-template.json | openshift kubectl apply -f -
33
+        $ osc process -f application-template.json | osc create -f -
34 34
  
35 35
 6. Locate the Jenkins service endpoint and go to it in your browser:
36 36
 
37
-        $ openshift kubectl get services | grep jenkins | awk '{print $4":"$5}'
37
+        $ osc get services | grep jenkins | awk '{print $4":"$5}'
38 38
 
39 39
     Once it is available, proceed to the next step.
40 40
     
41 41
 7. Create the Jenkins job named rubyJob:
42 42
 
43
-        $ JENKINS_ENDPOINT=`openshift kubectl get services | grep jenkins | awk '{print $4":"$5}'`
43
+        $ JENKINS_ENDPOINT=`osc get services | grep jenkins | awk '{print $4":"$5}'`
44 44
         $ cat job.xml | curl -X POST -H "Content-Type: application/xml" -H "Expect: " --data-binary @- http://$JENKINS_ENDPOINT/createItem?name=rubyJob
45 45
 
46 46
 8. Run the Jenkins build
... ...
@@ -56,5 +56,5 @@ Steps
56 56
 
57 57
 10. Confirm both the test and production services are available by browsing to both services:
58 58
 
59
-        $ openshift kubectl get services | grep frontend
59
+        $ osc get services | grep frontend
60 60
    
... ...
@@ -3,5 +3,5 @@
3 3
 # registry service ip+port.  You must have started openshift and deployed
4 4
 # the docker-registry service before running this.
5 5
 # The new template file produced is template.json.
6
-REGISTRY_IP=$(openshift cli get services docker-registry -o template --template="{{ .portalIP}}:{{ .port }}")
6
+REGISTRY_IP=$(osc get services docker-registry -o template --template="{{ .portalIP}}:{{ .port }}")
7 7
 sed s/172\.30\.17\.3:5001/$REGISTRY_IP/g application-template-stibuild.json > template.json
... ...
@@ -158,7 +158,7 @@ echo "images: ok"
158 158
 osc get imageRepositories
159 159
 osc create -f test/integration/fixtures/test-image-repository.json
160 160
 [ -z "$(osc get imageRepositories test -t "{{.status.dockerImageRepository}}")" ]
161
-osc apply -f examples/sample-app/docker-registry-config.json
161
+osc create -f examples/sample-app/docker-registry-config.json
162 162
 [ -n "$(osc get imageRepositories test -t "{{.status.dockerImageRepository}}")" ]
163 163
 osc delete -f examples/sample-app/docker-registry-config.json
164 164
 osc delete imageRepositories test
... ...
@@ -193,14 +193,15 @@ osc create -f test/integration/fixtures/test-deployment-config.json
193 193
 osc delete deploymentConfigs test-deployment-config
194 194
 echo "deploymentConfigs: ok"
195 195
 
196
-osc process -f test/templates/fixtures/guestbook.json | osc apply -f -
196
+osc process -f test/templates/fixtures/guestbook.json --parameters --value="ADMIN_USERNAME=admin"
197
+osc process -f test/templates/fixtures/guestbook.json | osc create -f -
197 198
 echo "template+config: ok"
198 199
 
199 200
 openshift kube resize --replicas=2 rc guestbook
200 201
 osc get pods
201 202
 echo "resize: ok"
202 203
 
203
-osc process -f examples/sample-app/application-template-dockerbuild.json | osc apply -f -
204
+osc process -f examples/sample-app/application-template-dockerbuild.json | osc create -f -
204 205
 osc get buildConfigs
205 206
 osc get bc
206 207
 osc get builds
... ...
@@ -212,14 +212,14 @@ docker tag -f centos:centos7 ${DOCKER_REGISTRY_IP}:5001/cached/centos:centos7
212 212
 docker push ${DOCKER_REGISTRY_IP}:5001/cached/centos:centos7
213 213
 echo "[INFO] Pushed centos7"
214 214
 
215
-# Process template and apply
215
+# Process template and create
216 216
 echo "[INFO] Submitting application template json for processing..."
217 217
 osc process -n test -f examples/sample-app/application-template-stibuild.json > "${STI_CONFIG_FILE}"
218 218
 osc process -n docker -f examples/sample-app/application-template-dockerbuild.json > "${DOCKER_CONFIG_FILE}"
219 219
 osc process -n custom -f examples/sample-app/application-template-custombuild.json > "${CUSTOM_CONFIG_FILE}"
220 220
 
221 221
 echo "[INFO] Applying STI application config"
222
-osc apply -n test -f "${STI_CONFIG_FILE}"
222
+osc create -n test -f "${STI_CONFIG_FILE}"
223 223
 
224 224
 # Trigger build
225 225
 echo "[INFO] Invoking generic web hook to trigger new sti build using curl"
... ...
@@ -228,14 +228,14 @@ wait_for_build "test"
228 228
 wait_for_app "test"
229 229
 
230 230
 #echo "[INFO] Applying Docker application config"
231
-#osc apply -n docker -f "${DOCKER_CONFIG_FILE}"
231
+#osc create -n docker -f "${DOCKER_CONFIG_FILE}"
232 232
 #echo "[INFO] Invoking generic web hook to trigger new docker build using curl"
233 233
 #curl -k -X POST $API_SCHEME://$API_HOST:$API_PORT/osapi/v1beta1/buildConfigHooks/ruby-sample-build/secret101/generic?namespace=docker && sleep 3
234 234
 #wait_for_build "docker"
235 235
 #wait_for_app "docker"
236 236
 
237 237
 #echo "[INFO] Applying Custom application config"
238
-#osc apply -n custom -f "${CUSTOM_CONFIG_FILE}"
238
+#osc create -n custom -f "${CUSTOM_CONFIG_FILE}"
239 239
 #echo "[INFO] Invoking generic web hook to trigger new custom build using curl"
240 240
 #curl -k -X POST $API_SCHEME://$API_HOST:$API_PORT/osapi/v1beta1/buildConfigHooks/ruby-sample-build/secret101/generic?namespace=custom && sleep 3
241 241
 #wait_for_build "custom"
... ...
@@ -16,7 +16,7 @@ func NewCmdBuildLogs(f *Factory, out io.Writer) *cobra.Command {
16 16
 NOTE: This command may be moved in the future.
17 17
 
18 18
 Examples:
19
-$ kubectl build-logs 566bed879d2d
19
+$ osc build-logs 566bed879d2d
20 20
 <stream logs from container to stdout>`,
21 21
 		Run: func(cmd *cobra.Command, args []string) {
22 22
 			if len(args) != 1 {
... ...
@@ -25,13 +25,13 @@ func NewCmdCancelBuild(f *Factory, out io.Writer) *cobra.Command {
25 25
 Cancels a pending or running build.
26 26
 
27 27
 Examples:
28
-	$ kubectl cancel-build 1da32cvq
28
+	$ osc cancel-build 1da32cvq
29 29
 	<cancel the build with the given name>
30 30
 
31
-	$ kubectl cancel-build 1da32cvq --dump-logs
31
+	$ osc cancel-build 1da32cvq --dump-logs
32 32
 	<cancel the named build and print the build logs>
33 33
 
34
-	$kubectl cancel-build 1da32cvq --restart
34
+	$ osc cancel-build 1da32cvq --restart
35 35
 	<cancel the named build and create a new one with the same parameters>`,
36 36
 		Run: func(cmd *cobra.Command, args []string) {
37 37
 
... ...
@@ -37,17 +37,17 @@ func injectUserVars(cmd *cobra.Command, t *api.Template) {
37 37
 func NewCmdProcess(f *Factory, out io.Writer) *cobra.Command {
38 38
 	cmd := &cobra.Command{
39 39
 		Use:   "process -f filename",
40
-		Short: "Process template into config",
41
-		Long: `Process template into a config specified in filename or stdin
40
+		Short: "Process template into list of resources",
41
+		Long: `Process template into a lis of resources specified in filename or stdin
42 42
 
43 43
 JSON and YAML formats are accepted.
44 44
 
45 45
 Examples:
46
-  $ kubectl process -f template.json
47
-  <convert template.json into Config>
46
+  $ osc process -f template.json
47
+  <convert template.json into resource list>
48 48
 
49
-  $ cat template.json | kubectl process -f -
50
-  <convert template.json into Config>`,
49
+  $ cat template.json | osc process -f -
50
+  <convert template.json into resource list>`,
51 51
 		Run: func(cmd *cobra.Command, args []string) {
52 52
 			filename := kubecmd.GetFlagString(cmd, "filename")
53 53
 			if len(filename) == 0 {
... ...
@@ -22,10 +22,10 @@ Manually starts build from existing build or buildConfig
22 22
 NOTE: This command is experimental and is subject to change in the future.
23 23
 
24 24
 Examples:
25
-  $ kubectl start-build 3bd2ug53b
25
+  $ osc start-build 3bd2ug53b
26 26
   <Starts build from buildConfig matching the name "3bd2ug53b">
27 27
 
28
-  $ kubectl start-build --from-build=3bd2ug53b
28
+  $ osc start-build --from-build=3bd2ug53b
29 29
   <Starts build from build matching the name "3bd2ug53b">`,
30 30
 		Run: func(cmd *cobra.Command, args []string) {
31 31
 			buildName := kubecmd.GetFlagString(cmd, "from-build")