NEOS Core CLI
Project description
Core CLI v0.12.18
Setup
Install CLI
Install the CLI using pip:
pip install neosctl
See Local Development for details on installing from source.
Setup environment
To setup an environment, run the following command:
neosctl env init -h <hub-host> -u <username> -a <account>
More information about this command you can find in the DOCS.md file.
Login to the system
To login to the system, run the following command:
neosctl env login
You will need username and password for that.
Activate a core
To activate a core (for use in subsequent requests):
neoctl env list-cores
neosctl env activate-core <core-name>
Setup service user (optional)
For some operations, you will need to provide a service user access_key_id
and secret_access_key
, adding them into the file ~/.neosctl/credential
. To
create service user and get it's access and secret key, use:
neosctl iam user create-access-key
To configure the environment to use the key pair:
neosctl env credential <env-name> <access-key> <secret-key>
Review settings
All setting are stored by default in the folder ~/.neosctl/
.
You can also review all settings by running the following commands:
neosctl env list
neosctl env view <env-name>
neosctl env active
Usage
To see all available commands, run the following command:
neosctl --help
or go to the DOCS.md file.
Prerequisites
The following packages are used across python repositories. A global install of them all is highly recommended.
Local Development
To install the CLI from source, clone the repository and run the following
$ invoke install-dev
Check the Prerequisites for global installs required for local development.
When running locally, if you do not manage your own virtual environments, you can use poetry to put you in a shell with access to the installed code.
$ poetry shell
Code Quality
Tests
invoke tests
invoke tests-coverage
Linting
invoke check-style
invoke isort
Generate docs
To generate docs in a markdown format, run the following command:
invoke generate-docs-md
The output DOCS.md file could be used to update the NEOS documentation site (docs.neosmesh.com).
Releases
Release management is handled using changelog-gen
. The below commands will
tag a new release, and generate the matching changelog entries. Jenkins will
then publish the release to the artifact repository.
$ invoke release
$ invoke bump-patch
$ invoke bump-minor
$ invoke bump-major
> vX.Y.Z
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for neosctl-0.12.18-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe352a3f2a9b3be4099d311b44eea0a6063e95611da44fecbb6cb5c148b10bfc |
|
MD5 | d52f977309bd82279ba0cd1e4711b915 |
|
BLAKE2b-256 | eebe63631a568ff0ea37651235814cbc2ac498ef243e064ad01c32738f246688 |