langstream icon indicating copy to clipboard operation
langstream copied to clipboard

mini-langstream getting started (deploy sample app) fails with: Missing required option: '--instance=<instanceFilePath>'

Open Gagravarr opened this issue 2 years ago • 0 comments

If you follow the MiniKube getting started documentation, then at https://docs.langstream.ai/installation/get-started-minikube#start-the-cluster in step 3 the deployment of the example application fails

image

export OPENAI_API_KEY=(removed)
mini-langstream cli apps deploy my-app -app https://github.com/LangStream/langstream/tree/main/examples/applications/openai-completions -s https://github.com/LangStream/langstream/blob/main/examples/secrets/secrets.yaml

Missing required option: '--instance=<instanceFilePath>'

Deploy an application
Usage: langstream apps deploy [-hV] [--dry-run] -app=<appPath>
                              -i=<instanceFilePath> [-o=<format>]
                              [-s=<secretFilePath>] <name>
      <name>      Name of the application
      -app, --application=<appPath>
                  Application directory path
      --dry-run   Dry-run mode. Do not deploy the application but only resolves
                    placeholders and display the result.
  -h, --help      Show this help message and exit.
  -i, --instance=<instanceFilePath>
                  Instance file path
  -o=<format>     Output format for dry-run mode. Formats are: yaml, json.
                    Default value is yaml.
  -s, --secrets=<secretFilePath>
                  Secrets file path
  -V, --version   Print version information and exit.

When you run mini-langstream start it suggests a different sample command of

mini-langstream cli apps deploy app -i $(mini-langstream get-instance) -s https://raw.githubusercontent.com/LangStream/langstream/main/examples/secrets/secrets.yaml -app https://github.com/LangStream/langstream/tree/main/examples/applications/python-processor-exclamation

Adding -i $(mini-langstream get-instance) to the command from the getting started allows it to deploy without error

Gagravarr avatar Nov 08 '23 11:11 Gagravarr