项目作者: storageos

项目描述 :
StorageOS command line interface
高级语言: Go
项目地址: git://github.com/storageos/go-cli.git
创建时间: 2017-02-28T16:13:26Z
项目社区:https://github.com/storageos/go-cli

开源协议:

下载


StorageOS CLI

StorageOS client for Mac/Linux/Windows.

See also Command Line
Reference
.

Getting started

The CLI client needs to know the StorageOS server address, username and
password. This config can be passed via command line flags, or environemnt
variables:

  1. % storageos env
  2. The StorageOS CLI allows the user to provide their own defaults for some configuration settings through environment variables.
  3. Available Settings:
  4. STORAGEOS_ENDPOINTS Sets the default StorageOS API endpoint for the CLI to connect to
  5. STORAGEOS_API_TIMEOUT Specifies the default duration which the CLI will give a command to complete
  6. before aborting with a timeout
  7. STORAGEOS_USER_NAME Sets the default username provided by the CLI for authentication
  8. STORAGEOS_PASSWORD Sets the default password provided by the CLI for authentication
  9. STORAGEOS_USE_IDS When set to true, the CLI will use provided values as IDs instead of names for
  10. existing resources
  11. STORAGEOS_NAMESPACE Specifies the default namespace for the CLI to operate in
  12. STORAGEOS_OUTPUT_FORMAT Specifies the default format used by the CLI for output

Binary Installation (Linux)

  1. sudo -i
  2. curl -skSL https://github.com/storageos/go-cli/releases/latest/download/storageos_linux_amd64 > /usr/local/bin/storageos
  3. chmod +x /usr/local/bin/storageos
  4. exit

Binary Installation (Mac)

  1. sudo -i
  2. curl -skSL https://github.com/storageos/go-cli/releases/latest/download/storageos_darwin_amd64 > /usr/local/bin/storageos
  3. chmod +x /usr/local/bin/storageos
  4. exit

Usage

Run storageos to get usage information.