mirror of https://github.com/knative/docs.git
135 lines
13 KiB
XML
135 lines
13 KiB
XML
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||
<channel>
|
||
<title>Knative – CLI tools</title>
|
||
<link>https://knative.dev/v0.23-docs/client/</link>
|
||
<description>Recent content in CLI tools on Knative</description>
|
||
<generator>Hugo -- gohugo.io</generator>
|
||
|
||
<atom:link href="https://knative.dev/v0.23-docs/client/index.xml" rel="self" type="application/rss+xml" />
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<item>
|
||
<title>V0.23-Docs: Installing kn</title>
|
||
<link>https://knative.dev/v0.23-docs/client/install-kn/</link>
|
||
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
|
||
|
||
<guid>https://knative.dev/v0.23-docs/client/install-kn/</guid>
|
||
<description>
|
||
|
||
|
||
<p>This guide provides details about how you can install the Knative <code>kn</code> CLI.</p>
|
||
<h2 id="install-kn-using-brew">Install kn using brew</h2>
|
||
<p>For macOS, you can install <code>kn</code> by using <a href="https://github.com/knative/homebrew-client" target="_blank">Homebrew</a>.</p>
|
||
<pre><code>brew install knative/client/kn
|
||
</code></pre><h2 id="install-kn-using-a-binary">Install kn using a binary</h2>
|
||
<p>You can install <code>kn</code> by downloading the executable binary for your system and placing it in the system path.</p>
|
||
<p>A link to the latest stable binary release is available on the <a href="https://github.com/knative/client/releases" target="_blank"><code>kn</code> release page</a>.</p>
|
||
<h3 id="install-kn-using-the-nightly-built-binary">Install kn using the nightly-built binary</h3>
|
||
<p>Nightly-built executable binaries are available for users who want to install the latest pre-release build of <code>kn</code>.</p>
|
||
<p><strong>WARNING:</strong> Nightly-built executable binaries include features which may not be included in the latest Knative release and are not considered to be stable.</p>
|
||
<p>Links to the latest nightly-built executable binaries are available here:</p>
|
||
<ul>
|
||
<li><a href="https://storage.googleapis.com/knative-nightly/client/latest/kn-darwin-amd64" target="_blank">macOS</a></li>
|
||
<li><a href="https://storage.googleapis.com/knative-nightly/client/latest/kn-linux-amd64" target="_blank">Linux</a></li>
|
||
<li><a href="https://storage.googleapis.com/knative-nightly/client/latest/kn-windows-amd64.exe" target="_blank">Windows</a></li>
|
||
</ul>
|
||
<h2 id="install-kn-using-go">Install kn using Go</h2>
|
||
<ol>
|
||
<li>
|
||
<p>Check out the <code>kn</code> client repository:</p>
|
||
<pre><code>git clone https://github.com/knative/client.git
|
||
cd client/
|
||
</code></pre></li>
|
||
<li>
|
||
<p>Build an executable binary:</p>
|
||
<pre><code>hack/build.sh -f
|
||
</code></pre></li>
|
||
<li>
|
||
<p>Move <code>kn</code> into your system path, and verify that <code>kn</code> commands are working properly. For example:</p>
|
||
<pre><code>kn version
|
||
</code></pre></li>
|
||
</ol>
|
||
<h2 id="running-kn-using-container-images">Running kn using container images</h2>
|
||
<p><strong>WARNING:</strong> Nightly container images include features which may not be included in the latest Knative release and are not considered to be stable.</p>
|
||
<p>Links to images are available here:</p>
|
||
<ul>
|
||
<li><a href="https://gcr.io/knative-releases/knative.dev/client/cmd/kn" target="_blank">Latest release</a></li>
|
||
<li><a href="https://gcr.io/knative-nightly/knative.dev/client/cmd/kn" target="_blank">Nightly container image</a></li>
|
||
</ul>
|
||
<p>You can run <code>kn</code> from a container image. For example:</p>
|
||
<pre><code>docker run --rm -v &quot;$HOME/.kube/config:/root/.kube/config&quot; gcr.io/knative-releases/knative.dev/client/cmd/kn:latest service list
|
||
</code></pre><p><strong>NOTE:</strong> Running <code>kn</code> from a container image does not place the binary on a permanent path. This procedure must be repeated each time you want to use <code>kn</code>.</p>
|
||
<h2 id="using-kn-with-tekton">Using kn with Tekton</h2>
|
||
<p>See the <a href="http://hub.tekton.dev/tekton/task/kn" target="_blank">Tekton documentation</a>.</p>
|
||
|
||
</description>
|
||
</item>
|
||
|
||
<item>
|
||
<title>V0.23-Docs: Customizing kn</title>
|
||
<link>https://knative.dev/v0.23-docs/client/configure-kn/</link>
|
||
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
|
||
|
||
<guid>https://knative.dev/v0.23-docs/client/configure-kn/</guid>
|
||
<description>
|
||
|
||
|
||
<p>You can customize your <code>kn</code> CLI setup by creating a <code>config.yaml</code> configuration file. You can provide this configuration by using the <code>--config</code> flag, otherwise the configuration is picked up from a default location. The default configuration location conforms to the <a href="https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html">XDG Base Directory Specification</a>, and is different for Unix systems and Windows systems.</p>
|
||
<ul>
|
||
<li>If the <code>XDG_CONFIG_HOME</code> environment variable is set, the default configuration location that <code>kn</code> looks for is <code>$XDG_CONFIG_HOME/kn</code>.</li>
|
||
<li>If the <code>XDG_CONFIG_HOME</code> environment variable is not set, <code>kn</code> looks for the configuration in the home directory of the user at <code>$HOME/.config/kn/config.yaml</code>.</li>
|
||
<li>For Windows systems, the default <code>kn</code> configuration location is <code>%APPDATA%\kn</code>.</li>
|
||
</ul>
|
||
<h2 id="example-configuration-file">Example configuration file</h2>
|
||
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-yaml" data-lang="yaml"><span style="color:#204a87;font-weight:bold">plugins</span><span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline">
|
||
</span><span style="color:#f8f8f8;text-decoration:underline"> </span><span style="color:#204a87;font-weight:bold">path-lookup</span><span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline"> </span><span style="color:#204a87;font-weight:bold">true</span><span style="color:#f8f8f8;text-decoration:underline">
|
||
</span><span style="color:#f8f8f8;text-decoration:underline"> </span><span style="color:#204a87;font-weight:bold">directory</span><span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline"> </span><span style="color:#000">~/.config/kn/plugins</span><span style="color:#f8f8f8;text-decoration:underline">
|
||
</span><span style="color:#f8f8f8;text-decoration:underline"></span><span style="color:#204a87;font-weight:bold">eventing</span><span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline">
|
||
</span><span style="color:#f8f8f8;text-decoration:underline"> </span><span style="color:#204a87;font-weight:bold">sink-mappings</span><span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline">
|
||
</span><span style="color:#f8f8f8;text-decoration:underline"> </span>- <span style="color:#204a87;font-weight:bold">prefix</span><span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline"> </span><span style="color:#000">svc</span><span style="color:#f8f8f8;text-decoration:underline">
|
||
</span><span style="color:#f8f8f8;text-decoration:underline"> </span><span style="color:#204a87;font-weight:bold">group</span><span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline"> </span><span style="color:#000">core</span><span style="color:#f8f8f8;text-decoration:underline">
|
||
</span><span style="color:#f8f8f8;text-decoration:underline"> </span><span style="color:#204a87;font-weight:bold">version</span><span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline"> </span><span style="color:#000">v1</span><span style="color:#f8f8f8;text-decoration:underline">
|
||
</span><span style="color:#f8f8f8;text-decoration:underline"> </span><span style="color:#204a87;font-weight:bold">resource</span><span style="color:#000;font-weight:bold">:</span><span style="color:#f8f8f8;text-decoration:underline"> </span><span style="color:#000">services</span><span style="color:#f8f8f8;text-decoration:underline">
|
||
</span></code></pre></div><p>Where</p>
|
||
<ul>
|
||
<li><code>path-lookup</code> specifies whether <code>kn</code> should look for <a href="../kn-plugins">plugins</a> in the <code>PATH</code> environment variable. This is a boolean configuration option. The default value is <code>false</code>.</li>
|
||
<li><code>directory</code> specifies the directory where <code>kn</code> will look for plugins. The default path depends on the operating system, as described above. This can be any directory that is visible to the user.</li>
|
||
<li><code>sink-mappings</code> defines the Kubernetes Addressable resource that is used when you use the <code>--sink</code> flag with a <code>kn</code> CLI command.
|
||
<ul>
|
||
<li><code>prefix</code>: The prefix you want to use to describe your sink. Service, <code>svc</code>, <code>channel</code>, and <code>broker</code> are predefined prefixes in <code>kn</code>.</li>
|
||
</ul>
|
||
<!--can be a prefix be anything? Otherwise let's provide a full list of what's allowed, limitations, etc.-->
|
||
<ul>
|
||
<li><code>group</code>: The API group of the Kubernetes resource.</li>
|
||
<li><code>version</code>: The version of the Kubernetes resource.</li>
|
||
<li><code>resource</code>: The plural name of the Kubernetes resource type. For example, <code>services</code> or <code>brokers</code>.</li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
|
||
</description>
|
||
</item>
|
||
|
||
<item>
|
||
<title>V0.23-Docs: kn plugins</title>
|
||
<link>https://knative.dev/v0.23-docs/client/kn-plugins/</link>
|
||
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
|
||
|
||
<guid>https://knative.dev/v0.23-docs/client/kn-plugins/</guid>
|
||
<description>
|
||
|
||
|
||
<p>The <code>kn</code> CLI supports the use of plugins. Plugins enable you to extend the functionality of your <code>kn</code> installation by adding custom commands and other shared commands that are not part of the core distribution of <code>kn</code>.</p>
|
||
<!--TODO: Add details about installing and using different available plugins, list of available plugins-->
|
||
|
||
</description>
|
||
</item>
|
||
|
||
</channel>
|
||
</rss>
|