0.2.4 • Published 6 years ago

samson-cli v0.2.4

Weekly downloads
32
License
MIT
Repository
github
Last release
6 years ago

Samson CLI

Command line utility to manage deploys in Zendesk's Samson

Requirements

git and Node.js >=4 with npm.

How to install

Just install the samson-cli globally.

npm install -g samson-cli

Configuration

You should create a samsonrc.json file in each of your project directories. samson will look for it when you run the tool. The file should have this shape:

{
  "url": "http://my-samson-url.com",
  "project": "myProjectName",
  "auth": "<authentication cookie>",
  "samson": {
    "production": true
  }
}

The auth key expects the value of your Samson session cookie. We still don't have a better authentication system (perhaps based in a Samson user token) due to Samson API limitations.

Usage

samson <command> [options...]

Commands

deploy

Performs a deploy of a branch or tag to a stage.

Syntax:

samson deploy <stage> <reference>

Where stage is a valid stage (see samson stages) and reference is a branch, tag or commit SHA.

Example:

samson deploy staging master

deploys

Prints the last 15 deploys.

Syntax:

samson deploys

builds

Prints the last builds.

Syntax:

samson builds

stages

Prints the configured stages.

Syntax:

samson stages

Options

-c | --config

You can specify a custom config, in json format

Syntax:

samson <command> -c '{ "url": "http://my-samson-url.com", ...}'

Note: You may not need to have a samsonrc.json file in order to use the program if the config is specified this way, but some autocompletion features will be disabled

To do

  • Authenticate using Samson token instead of the session cookie
  • Better help and readme
  • Show deploy output
  • Be able to specify a custom samsonrc.json
  • Fail when no samsonrc.json is found
  • Manage configuration defaults
0.2.4

6 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.24

7 years ago

0.1.23

7 years ago

0.1.22

7 years ago

0.1.21

7 years ago

0.1.20

7 years ago

0.1.18

7 years ago

0.1.17

7 years ago

0.1.16

7 years ago

0.1.15

7 years ago

0.1.14

7 years ago

0.1.13

7 years ago

0.1.12

7 years ago

0.1.11

7 years ago

0.1.10

7 years ago

0.1.9

7 years ago

0.1.8

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago