spinup-cli

module
v0.4.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2023 License: AGPL-3.0

README

spinup

The spinup user interface in CLI form. The interface takes on a git-like style and outputs JSON for easy consumption by computers and humans with computer brains. To make the output more friendly to the masses, consider using jq.


goreleaser tests

Table of Contents

Getting Started

Spinup is a cross-compiled static binary with support for many platforms. Download an install the relevant binary for your system.

Download
  • TODO
  • TODO
Running the command
# spinup help
A small CLI for interacting with Yale's Spinup service

Usage:
  spinup [command]

Available Commands:
  completion  generate the autocompletion script for the specified shell
  configure   Configure Spinup CLI
  get         Get information about a resource in a space
  help        Help about any command
  new         Create new resources
  update      Update a resource in a space
  version     Display version information about the spinup-cli.

Flags:
      --config string    config file (default is $HOME/.spinup.yaml)
      --debug            Enable debug logging
  -h, --help             help for spinup
  -s, --spaces strings   Default Space(s)
  -t, --token string     Spinup API Token
      --url string       The base url for Spinup
  -v, --verbose          Enable verbose logging

Use "spinup [command] --help" for more information about a command.

Configuration

By default the configuration lives in ~/.spinup.{yml|json}.

All fields in the configuration can be overridden on the command line. All fields in the configuration file are optional and will act as defaults. Most users will probably want the url, and token.

Supported configuration items:

property type description
url string spinup url
token string spinup token
spaces string array default list of space names

Example ~/.spinup.json:

{
  "url": "https://spinup.example.edu",
  "token": "xxxxxyyyyyyy",
  "spaces": ["my_space_1", "my_space_2"]
}
Configure with the configuration utility
spinup configure

Get Commands

The get subcommands allow you to get detailed information about spinup resources.

# spinup get --help
Get information about a resource in a space

Usage:
  spinup get [command]

Available Commands:
  container   Get a container service
  database    Get a container service
  images      Get a list of images for a space
  secrets     Get a list of secrets for a space
  server      Get a server service
  space       Get details about your space(s)
  spaces      Get a list of your space(s)
  storage     Get a storage service

Flags:
  -d, --details   Get detailed output about the resource
  -h, --help      help for get

Global Flags:
      --config string    config file (default is $HOME/.spinup.yaml)
      --debug            Enable debug logging
  -s, --spaces strings   Default Space(s)
  -t, --token string     Spinup API Token
      --url string       The base url for Spinup
  -v, --verbose          Enable verbose logging

Use "spinup get [command] --help" for more information about a command.

Update Commands

The update subcommands allow you to make changes to an existing resource. Currently only container updates are supported.

# spinup update --help
Update a resource in a space

Usage:
  spinup update [command]

Available Commands:
  container   Update a container service

Flags:
  -h, --help   help for update

Global Flags:
      --config string    config file (default is $HOME/.spinup.yaml)
      --debug            Enable debug logging
  -s, --spaces strings   Default Space(s)
  -t, --token string     Spinup API Token
      --url string       The base url for Spinup
  -v, --verbose          Enable verbose logging

Use "spinup update [command] --help" for more information about a command.
Containers
Redeploy

Redeploy an existing container service, using the existing configuration and tag. This will force the latest image with the defined tag to be pulled and redeployed. Container (re)deployments are rolling. This is useful if you have a tag that gets updated with the latest release and you want deploy that via an automated pipeline.

spinup update funSpace/spintst-000848-testService -r
OK
Scale

Scale an existing container service, using the existing configuration and tag. This will set the desired count to the passed value. Values between 0 and 10 are supported.

spinup update container funSpace spintst-000848-testService --scale 2
OK

Author

License

GNU Affero General Public License v3.0 (GNU AGPLv3) Copyright (c) 2021 Yale University

Directories

Path Synopsis
cmd
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL