1.2.4 • Published 4 years ago

codestore-cli v1.2.4

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

codestore-cli

Use npx oclif-dev pack to make a build Use env AWS_ACCESS_KEY_ID='' AWS_SECRET_ACCESS_KEY='' npx oclif-dev publish to publish build to s3

Command Line Interface of code.store. Add services, deploy, debug, perform all operations from your terminal.

oclif Version Downloads/week License

Usage

$ npm install -g codestore-cli
$ codestore COMMAND
running command...
$ codestore (-v|--version|version)
codestore-cli/1.2.2 darwin-x64 node-v12.16.3
$ codestore --help [COMMAND]
USAGE
  $ codestore COMMAND
...

Commands

codestore login

Authenticate at code.store platform

USAGE
  $ codestore login

ALIASES
  $ codestore login

codestore auth:logout

Clears user credentials and invalidates local session

USAGE
  $ codestore auth:logout

ALIASES
  $ codestore logout

codestore whoami

Display the currently logged in user

USAGE
  $ codestore whoami

ALIASES
  $ codestore whoami

codestore context:clear

Clear all contexts

USAGE
  $ codestore context:clear

codestore context:list

List all globally set contexts

USAGE
  $ codestore context:list

ALIASES
  $ codestore context:ls

codestore context:project [PROJECTID]

Manage global project context

USAGE
  $ codestore context:project [PROJECTID]

OPTIONS
  -c, --clear  Clear project context

codestore context:service [SERVICEID]

Manage global service context

USAGE
  $ codestore context:service [SERVICEID]

OPTIONS
  -c, --clear  Clear service context

codestore help [COMMAND]

display help for codestore

USAGE
  $ codestore help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

codestore project:create

Create a new project

USAGE
  $ codestore project:create

OPTIONS
  --description=description  Description of the project
  --identifier=identifier    Unique identifier of the project. Can contain only a-z, _ and - characters
  --name=name                Name of the project

codestore project:delete ID

Remove project

USAGE
  $ codestore project:delete ID

codestore project:list

Lists projects in your organization

USAGE
  $ codestore project:list

OPTIONS
  -x, --extended          show extra columns
  --columns=columns       only show provided columns (comma-separated)
  --csv                   output is csv format [alias: --output=csv]
  --filter=filter         filter property by partial string matching, ex: name=foo
  --no-header             hide table header from output
  --no-truncate           do not truncate output to fit screen
  --output=csv|json|yaml  output in a more machine friendly format
  --sort=sort             property to sort by (prepend '-' for descending)

ALIASES
  $ codestore project:ls

codestore project:service:add [SERVICEID]

Include service to project

USAGE
  $ codestore project:service:add [SERVICEID]

ARGUMENTS
  SERVICEID  Id of the service

OPTIONS
  --project-id=project-id  (required) Id of the project

codestore project:service:list ID

Lists projects in your organization

USAGE
  $ codestore project:service:list ID

ALIASES
  $ codestore project:service:ls

codestore project:service:remove [SERVICEID]

Exclude service from project

USAGE
  $ codestore project:service:remove [SERVICEID]

ARGUMENTS
  SERVICEID  Id of the service

OPTIONS
  --project-id=project-id  (required) Id of the project

codestore service:create

Create new service

USAGE
  $ codestore service:create

codestore service:delete

Remove service

USAGE
  $ codestore service:delete

codestore service:list

List your services

USAGE
  $ codestore service:list

ALIASES
  $ codestore service:ls

codestore service:logs

Print the logs for your services.

USAGE
  $ codestore service:logs

OPTIONS
  -e, --env=(development|staging|production|demo|private)  [default: development] Project environment.
  -f, --follow                                             Specify if the logs should be streamed.
  -n, --num=num                                            [default: 20] Number of most recent log lines to display.
  -p, --projectId=projectId                                Project ID
  -s, --serviceId=serviceId                                Service ID

ALIASES
  $ codestore logs

codestore service:promote [ID]

Create new service

USAGE
  $ codestore service:promote [ID]

ALIASES
  $ codestore pull

codestore service:pull [ID]

Create new service

USAGE
  $ codestore service:pull [ID]

ALIASES
  $ codestore pull

codestore service:push

Create new service

USAGE
  $ codestore service:push

ALIASES
  $ codestore push