Skip to content

Repository files navigation

LambCI command line helper

npm install -g lambci-cli

You can then run lambci on the command line:

$ lambciUsage: lambci [--stack <stack>] <cmd> [options]A command line tool for administering LambCIOptions:--stack <stack> LambCI stack name / prefix to use (default: lambci)--help Display help about a particular commandCommands:info General info about the LambCI stackconfig Display/edit config optionshook Add/remove/update/show hook for GitHub reporebuild Run a particular project build againReport bugs at github.com/lambci/cli/issues

Prerequisites

You'll need to make sure you have your AWS credentials set either in environment variables, or in configuration files, in the same format as the AWS CLI.

lambci config

Usage: lambci config [--project <project>] [--unset] <name> [<value>]Display/edit the specified config value (using dot notation)Options:--stack <stack> LambCI stack name / prefix to use (default: lambci)--project <project> Project config to edit, eg 'gh/mhart/dynalite' (default: global)--unset Unset (delete) this config value<name> Name of the config property (using dot notation)<value> Value to set config (if not supplied, just display it)Examples:To set the global GitHub token to 'abcdef01234': lambci config secretEnv.GITHUB_TOKEN abcdef01234To override the GitHub token for a particular project: lambci config --project gh/mhart/dynalite secretEnv.GITHUB_TOKEN abcdef01234To retrieve the global Slack channel: lambci config notifications.slack.channel

lambci hook

Usage: lambci hook [--token <token>|--hub-token] <cmd> <repo> [options]Add/remove/update/show hook for GitHub repoOptions:--stack <stack> LambCI stack name / prefix to use (default: lambci)--token <token> GitHub API token to use--hub-token Use the API token from ~/.config/hub (if you have installed 'hub')<cmd> --add / --remove / --update / --show<repo> GitHub repo to add/update/remove hook from (eg, mhart/dynalite)--topic <topic> SNS topic to use with --add (defaults to value from CloudFormation stack)--key <accessKeyId> AWS access key to use with --add (defaults to value from CloudFormation stack)--secret <secretKey> AWS secret key to use with --add (defaults to value from CloudFormation stack)Examples:To add a hook to the mhart/dynalite repo if you have a LambCI CloudFormation stack: lambci hook --token abcdef0123 --add mhart/dynaliteTo add a hook using the GitHub token if you've installed 'hub': lambci hook --hub-token --add mhart/dynaliteTo add a hook using specific params instead of from a CloudFormation stack: lambci hook --token abcd --add mhart/dynalite --topic arn:aws:sns:... --key ABCD --secret 234832To update an existing hook just to ensure it responds to the correct events: lambci hook --token abcd --update mhart/dynaliteTo show the existing hooks in a repo: lambci hook --token abcd --show mhart/dynaliteTo remove a LambCI (SNS) hook from a repo: lambci hook --token abcd --remove mhart/dynalite

lambci rebuild

Usage: lambci rebuild <project> <buildNum>Run a particular project build againOptions:--stack <stack> LambCI stack name / prefix to use (default: lambci)<project> Project to rebuild (eg, gh/mhart/dynalite)<buildNum> The build you want to rebuild (eg, 23)

About

A command line tool for administering LambCI

Resources

Stars

11 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages