Git Product home page Git Product logo

cli-10's Introduction

Rancher CLI

The Rancher Command Line Interface (CLI) is a unified tool for interacting with your Rancher Server.

For usage information see: https://rancher.com/docs/rancher/v2.x/en/cli/

Note: This is for version 2.x.x of the cli, for info on 1.6.x see here

Installing

Check the releases page for direct downloads of the binary. After you download it, you can add it to your $PATH or build your own from source.

Setting up Rancher CLI with a Rancher Server

The CLI requires your Rancher Server address, along with credentials for authentication. Rancher CLI pulls this information from a JSON file, cli2.json, which is created the first time you run rancher login. By default, the path of this file is ~/.rancher/cli2.json.

$ rancher login https://<RANCHER_SERVER_URL> -t my-secret-token

Note: When entering your <RANCHER_SERVER_URL>, include the port that was exposed while you installed Rancher Server.

Usage

Run rancher --help for a list of available commands.

Building from Source

The binaries will be located in /bin.

Linux Binary

Run make.

Mac Binary

Run CROSS=1 make build.

Docker Image

Run docker run --rm -it -v <PATH_TO_CONFIG>:/root/.rancher/cli2.json rancher/cli2 [ARGS]. Pass credentials by replacing <PATH_TO_CONFIG> with your config file for the server.

To build rancher/cli, run make. To use a custom Docker repository, do REPO=custom make, which produces a custom/cli image.

Contact

For bugs, questions, comments, corrections, suggestions, etc., open an issue in rancher/rancher with a title prefix of [cli] .

Or just click here to create a new issue.

License

Copyright (c) 2014-2019 Rancher Labs, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

cli-10's People

Contributors

blakeroberts-wk avatar bobvanb avatar brandonbodnar-wk avatar cbron avatar cloudnautique avatar deniskuplyakov avatar dramich avatar drpebcak avatar ebauman avatar erikwilson avatar fabiorauber avatar gitlawr avatar ibuildthecloud avatar joshwget avatar kinarashah avatar leodotcloud avatar lonix avatar ls-michielrensen avatar mishak87 avatar mrajashree avatar pennyscissors avatar rawmind0 avatar rmweir avatar superseb avatar tjcain avatar vincent99 avatar yogeshmundada avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.