Skip to content

Netcracker/qubership-app-manifest-cli

Documentation: generate Command for app_manifest_cli

Installation

  1. Clone the repository:
git clone https://github.com/borislavr/qubership-app-manifest-cli.git
cd qubership-app-manifest-cli
  1. Create venv
python -m venv venv
source venv/bin/activate
  1. Install dependencies:
pip install -r pyproject.toml
  1. Install the package:
pip install .

Using the generate Command

The generate command creates an application manifest based on a configuration file and, if needed, additional component files.

Syntax

python -m venv venv
source venv/bin/activate
app-manifest generate --config CONFIG_PATH [--name NAME] [--version VERSION] [--out OUT_FILE] [COMPONENTS_FILES ...]
  • --config, -c — path to a YAML/JSON configuration file (required).
  • --name, -n — application name (defaults to value from config).
  • --version, -v — application version (defaults to value from config).
  • --out, -o — output file name (generated automatically by default).
  • [COMPONENTS_FILES ...] — (optional) list of paths to JSON component files.

Examples

Minimal example:

python -m app_manifest_cli generate --config ./myapp-config.yaml

With name, version, and output file:

python -m app_manifest_cli generate --config ./myapp-config.yaml --name my-app --version 2.0.1 --out manifest.json

With additional component files:

python -m app_manifest_cli generate --config ./myapp-config.yaml comp1.json comp2.json

Notes

  • Working with Helm charts requires Helm to be installed.
  • If name and version are not specified, they will be taken from the configuration file.
  • If output file is not specified, it will be created automatically using the template <name>-<version>.json.

For help on all commands:

python -m app_manifest_cli --help

For help on generate:

python -m app_manifest_cli generate --help

About

No description or website provided.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •  

Languages