@cto.ai/ops
💻 CTO.ai Ops - The CLI built for Teams 🚀
Last updated 4 months ago by brettcampbell .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @cto.ai/ops 
SYNC missed versions from official npm registry.

ops

???? CTO.ai Ops - The CLI built for Teams ????

oclif Version Downloads/week License

Usage

$ npm install -g @cto.ai/ops
$ ops COMMAND
running command...
$ ops (-v|--version|version)
@cto.ai/ops/1.6.2 darwin-x64 node-v12.12.0
$ ops --help [COMMAND]
USAGE
  $ ops COMMAND
...

Commands

ops account:reset

Reset your password.

USAGE
  $ ops account:reset

ops account:signin

Log in to your account.

USAGE
  $ ops account:signin

OPTIONS
  -h, --help  show CLI help

ops account:signout

Log out from your account.

USAGE
  $ ops account:signout

OPTIONS
  -h, --help  show CLI help

ops account:signup

Creates an account to use with ops CLI.

USAGE
  $ ops account:signup

OPTIONS
  -h, --help  show CLI help

ops account:support

Contact our support team with questions.

USAGE
  $ ops account:support

OPTIONS
  -h, --help  show CLI help

ops add [OPNAME]

Add an op to your team.

USAGE
  $ ops add [OPNAME]

ARGUMENTS
  OPNAME  Name of the public op to be added to your team. It should be of the format - @teamname/opName:versionName

OPTIONS
  -h, --help  show CLI help

ops build [PATH]

Build your op for sharing.

USAGE
  $ ops build [PATH]

ARGUMENTS
  PATH  Path to the op you want to build.

OPTIONS
  -h, --help  show CLI help

ops cleanup [OPNAME]

Clean up locally cached docker images.

USAGE
  $ ops cleanup [OPNAME]

ARGUMENTS
  OPNAME  Name of the op to be cleaned up

OPTIONS
  -h, --help  show CLI help

ops help [COMMAND]

display help for ops

USAGE
  $ ops help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

ops init

Easily create a new Op.

USAGE
  $ ops init

OPTIONS
  -h, --help  show CLI help

ops list

Lists the Ops you have in your team.

USAGE
  $ ops list

OPTIONS
  -h, --help  show CLI help

ops publish PATH

Publish an Op to your team.

USAGE
  $ ops publish PATH

ARGUMENTS
  PATH  Path to the op you want to publish.

OPTIONS
  -h, --help  show CLI help

ops remove OP

Remove an Op from your team.

USAGE
  $ ops remove OP

ARGUMENTS
  OP  The name and version of the command or workflow you want to remove. E.g. my-command:0.1.0

OPTIONS
  -h, --help  show CLI help

ops run [NAMEORPATH]

Run an Op from your team or the registry.

USAGE
  $ ops run [NAMEORPATH]

ARGUMENTS
  NAMEORPATH  Name or path of the command or workflow you want to run.

OPTIONS
  -b, --build  Builds the op before running. Must provide a path to the op.
  -h, --help   show CLI help

ops search [FILTER]

Search for ops in your workspaces.

USAGE
  $ ops search [FILTER]

ARGUMENTS
  FILTER  Filters Op results which include filter text in Op name or description.

OPTIONS
  -h, --help  show CLI help

ops secrets:delete

Delete a secret stored for the active team

USAGE
  $ ops secrets:delete

OPTIONS
  -h, --help     show CLI help
  -k, --key=key  Secret Key Name

ops secrets:list

List all the keys that are stored for the active team

USAGE
  $ ops secrets:list

OPTIONS
  -h, --help  show CLI help

ops secrets:register

Register a secrets provider for a team

USAGE
  $ ops secrets:register

ops secrets:set

Add a key & value

USAGE
  $ ops secrets:set

OPTIONS
  -k, --key=key
  -v, --value=value

ops secrets:unregister

Unregister a secrets provider for a team

USAGE
  $ ops secrets:unregister

ops team:create

Create your team.

USAGE
  $ ops team:create

OPTIONS
  -h, --help       show CLI help
  -n, --name=name

ops team:invite

Invite your team members.

USAGE
  $ ops team:invite

OPTIONS
  -h, --help               show CLI help

  -i, --invitees=invitees  A comma-separated string of usernames/emails we want to invite. E.g. ("user1,
                           user2@gmail.com, user3@something")

ops team:join

Accept an invite to join a team.

USAGE
  $ ops team:join

ops team:switch

Shows the list of your teams.

USAGE
  $ ops team:switch

OPTIONS
  -h, --help  show CLI help

ops update

Update the Ops CLI.

USAGE
  $ ops update

OPTIONS
  -h, --help  show CLI help

ops whoami

Display your user information

USAGE
  $ ops whoami

OPTIONS
  -h, --help  show CLI help

OClif Source Repo

Useful reference for writing tests:

Testing

Isolate tests (run only specific tests in that file):

test.only('it should run only tests suffixed with .only', async () => {

Unit Tests (test directory)

How to run Unit Tests

  1. npm test or npm t

Tips

Run a single unit test, or filter them by filename:

npx jest --testPathPattern=keycloak

E2E Tests (test_e2e directory)

These are known as "cli-acceptance-tests" in Concourse: https://concourse.stg-platform.hc.ai/teams/main/pipelines/ci/jobs/cli-acceptance/

How to run E2E tests locally

The default test server is staging, but you can override this by passing in your own OPS_REGISTRY_HOST and OPS_API_HOST values from your shell config.

Run tests against staging:

  1. Run npm run configdev to point the ops binary at the development Typescript app (instead of the production Javascript bundle)
  2. Ensure you have a .env.staging file (you can generate one by running scripts/make-env.sh)
  3. Set your NODE_ENV to 'staging': export NODE_ENV=staging
  4. npm run test:e2e

Run tests against Minikube:

  1. Run npm run configdev to point the ops binary at the development Typescript app (instead of the production Javascript bundle)
  2. Ensure you have a .env.test file (you can generate one by running scripts/make-env.sh)
  3. Modify the vars in .env.test to match your minikube IP
  4. Set your NODE_ENV to 'test': export NODE_ENV=test
  5. npm run test:e2e

Tips

Run a single E2E test, or filter test files by filename:

npm run test:e2e --testPathPattern=signin

Current Tags

  • 1.6.2                                ...           latest (7 days ago)

104 Versions

  • 1.6.2                                ...           7 days ago
  • 1.6.1                                ...           18 days ago
  • 1.5.25                                ...           a month ago
  • 1.5.24                                ...           a month ago
  • 1.5.23                                ...           a month ago
  • 1.5.22                                ...           a month ago
  • 1.5.21                                ...           a month ago
  • 1.5.19                                ...           a month ago
  • 1.5.18                                ...           2 months ago
  • 1.5.17                                ...           2 months ago
  • 1.5.14                                ...           2 months ago
  • 1.5.13                                ...           2 months ago
  • 1.5.12                                ...           2 months ago
  • 1.5.11                                ...           3 months ago
  • 1.5.10                                ...           3 months ago
  • 1.5.9                                ...           3 months ago
  • 1.5.8                                ...           3 months ago
  • 1.5.7                                ...           3 months ago
  • 1.5.6                                ...           3 months ago
  • 1.5.3                                ...           4 months ago
  • 1.5.2                                ...           4 months ago
  • 1.5.1                                ...           4 months ago
  • 1.4.29                                ...           4 months ago
  • 1.4.28                                ...           4 months ago
  • 1.4.27                                ...           4 months ago
  • 1.4.26                                ...           5 months ago
  • 1.4.25                                ...           5 months ago
  • 1.4.24                                ...           5 months ago
  • 1.4.23                                ...           5 months ago
  • 1.4.22                                ...           5 months ago
  • 1.4.21                                ...           5 months ago
  • 1.4.20                                ...           5 months ago
  • 1.4.19                                ...           6 months ago
  • 1.4.18                                ...           6 months ago
  • 1.4.16                                ...           6 months ago
  • 1.4.15                                ...           6 months ago
  • 1.4.13                                ...           6 months ago
  • 1.4.12                                ...           6 months ago
  • 1.4.11                                ...           6 months ago
  • 1.4.10                                ...           6 months ago
  • 1.4.9                                ...           6 months ago
  • 1.4.8                                ...           6 months ago
  • 1.4.6                                ...           6 months ago
  • 1.4.5                                ...           6 months ago
  • 1.4.3                                ...           6 months ago
  • 1.4.2                                ...           6 months ago
  • 1.4.1                                ...           6 months ago
  • 1.4.0                                ...           6 months ago
  • 1.3.20                                ...           7 months ago
  • 1.3.18                                ...           7 months ago
  • 1.3.17                                ...           7 months ago
  • 1.3.16                                ...           7 months ago
  • 1.3.15                                ...           7 months ago
  • 1.3.14                                ...           7 months ago
  • 1.3.11                                ...           7 months ago
  • 1.3.9                                ...           7 months ago
  • 1.3.4                                ...           7 months ago
  • 1.3.3                                ...           7 months ago
  • 1.3.2                                ...           7 months ago
  • 1.3.1                                ...           7 months ago
  • 1.3.0                                ...           7 months ago
  • 1.0.47                                ...           7 months ago
  • 1.0.46                                ...           8 months ago
  • 1.0.45                                ...           8 months ago
  • 1.0.44                                ...           8 months ago
  • 1.0.43                                ...           8 months ago
  • 1.0.42                                ...           8 months ago
  • 1.0.41                                ...           8 months ago
  • 1.0.40                                ...           8 months ago
  • 1.0.39                                ...           8 months ago
  • 1.0.38                                ...           8 months ago
  • 1.0.37                                ...           8 months ago
  • 1.0.36                                ...           8 months ago
  • 1.0.35                                ...           8 months ago
  • 1.0.34                                ...           8 months ago
  • 1.0.33                                ...           8 months ago
  • 1.0.32                                ...           8 months ago
  • 1.0.31                                ...           8 months ago
  • 1.0.30                                ...           8 months ago
  • 1.0.26                                ...           8 months ago
  • 1.0.24                                ...           8 months ago
  • 1.0.22                                ...           8 months ago
  • 1.0.21                                ...           8 months ago
  • 1.0.20                                ...           8 months ago
  • 1.0.19                                ...           8 months ago
  • 1.0.18                                ...           8 months ago
  • 1.0.17                                ...           8 months ago
  • 1.0.16                                ...           8 months ago
  • 1.0.15                                ...           8 months ago
  • 1.0.14                                ...           10 months ago
  • 1.0.13                                ...           10 months ago
  • 1.0.12                                ...           10 months ago
  • 1.0.11                                ...           10 months ago
  • 1.0.10                                ...           10 months ago
  • 1.0.9                                ...           10 months ago
  • 1.0.8                                ...           10 months ago
  • 1.0.7                                ...           10 months ago
  • 1.0.6                                ...           10 months ago
  • 1.0.5                                ...           10 months ago
  • 1.0.4                                ...           10 months ago
  • 1.0.3                                ...           10 months ago
  • 1.0.2                                ...           10 months ago
  • 1.0.1                                ...           10 months ago
  • 1.0.0                                ...           10 months ago
Downloads
Today 0
This Week 0
This Month 221
Last Day 0
Last Week 221
Last Month 978
Dependencies (17)
Dev Dependencies (30)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |