mongocli

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

README

MongoDB CLI

Build Status

mongocli is a tool for managing your MongoDB cloud services

Screenshot 2020-01-03 at 10 49 27

Installing

Hombrew on macOS

brew install mongodb-labs/mongocli/mongocli

Pre-built Binaries

Download the appropriate version for your platform from mongocli releases. Once downloaded, the binary can be run from anywhere. You don't need to install it into a global location. This works well for shared hosts and other systems where you don't have a privileged account.

Ideally, you should install it somewhere in your PATH for easy use. /usr/local/bin is the most probable location.

Build from Source

Prerequisite Tools
Fetch and Install
git clone https://github.com/mongodb/mongocli.git
cd mongocli
make install

Usage

Run mongocli help for a list of available commands or check our online documentation for more details

Getting started

Run mongocli config to set up your credentials.

You can also use MCLI_PUBLIC_API_KEY, MCLI_PRIVATE_API_KEY, and optionally MCLI_OPS_MANAGER_URL to define some of the authentication variables

ZSH Completion (experimental)

Add the following to your .zshrc file

source <(mongocli completion zsh)
compdef _mongocli mongocli

Contributing

See our CONTRIBUTING.md Guide.

License

MongoDB CLI is released under the Apache 2.0 license. See LICENSE

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
cli
mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL