1.0.7 • Published 3 years ago

@wpe-tkpd/kratos v1.0.7

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

kratos-cli

Version

Kratos CLI by WPE Tokopedia

Installation

Install Kratos-CLI

$ pnpm i -g @wpe-tkpd/kratos

Install GH-CLI

# Install gh cli
$ brew install gh

# Login in GH-CLI
$ gh auth login

Usage

Login

$ kratos login -c=YOUR_CONNECT_SID_COOKIE

Login Status Check

$ kratos status

Create Kratos Tag

$ kratos create [tag_name] --service=[service] --env=[env] --branch=[branch/pr]
# OR
$ kratos create [tag_name] -s=[service] -e=[env] -b=[branch/pr]

Example:

$ kratos create some-tag-name --service=atreus --env=staging --branch=pr/123
ArgumentDesc
tag_nameKratos tag name
ParamAliasDesc
--service-sYour service name
--env-eEnvironment: beta or staging
--branch-bBranch name or PR number pr/123

Auto create PR

$ kratos pull-request [title]

Example:

$ kratos pull-request "feat(atreus): something"

Deploy Tag with Auto Deploy

$ kratos pull-request [title] -s=[service] -e=[environment]

Example:

$ kratos pull-request "feat(atreus): something" -s=atreus -e=staging

Deploy Tag

$ kratos deploy [tag_name] [env]

Test Tag

$ kratos test [branch] [options]
ArgumentDesc
branchBranch name / PR number (pr/1234)
OptionDesc
--coverageTrigger code coverage collection

Example:

$ kratos test -b=branchname
# OR with options
$ kratos test pr/1234 --coverage

Release Tag

$ kratos release [tag_name]

Example:

$ kratos release feature-thor-production

Changelog

CHANGELOG.md


Copyright © 2020 by WPE Tokopedia

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago