Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples in Documentation Fail to Deploy - Issue is "-v" prints version and exits #50

Open
colinbjohnson opened this issue Feb 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@colinbjohnson
Copy link

Orb Version
The version number of the orb

2.0.1

Describe the bug

Examples in documentation suggest running the following which actually returns the version number of serverless instead of actually deploying. From the serverless manual:

cjohnson@cjohnson10 cloudavail % serverless deploy --help
deploy                          Deploy a Serverless service
deploy function                 Deploy a single function from the service
deploy list                     List deployed version of your Serverless Service
deploy list functions           List all the deployed functions and their versions
--conceal                       Hide secrets from the output (e.g. API Gateway key values)
--package / -p                  Path of the deployment package
--force                         Forces a deployment to take place
--aws-s3-accelerate             Enables S3 Transfer Acceleration making uploading artifacts much faster.
--enforce-hash-update           Enforces new function version by overriding descriptions across all your functions. To be used only when migrating to new hashing algorithm.
--region / -r                   Region of the service
--aws-profile                   AWS profile to use with the command
--app                           Dashboard app
--org                           Dashboard org
--use-local-credentials         Rely on locally resolved AWS credentials instead of loading them from Dashboard provider settings (applies only to services integrated with Dashboard)
--config / -c                   Path to serverless config file
--stage / -s                    Stage of the service
--param                         Pass custom parameter values for "param" variable source (usage: --param="key=value")
--help / -h                     Show this message
--version / -v                  Show version info
--verbose                       Show verbose logs
--debug                         Namespace of debug logs to expose (use "*" to display all)

And the example from serverless-framework-orb documentation:

version: '2.1'
orbs:
  aws-cli: circleci/[email protected]
  serverless-framework: circleci/[email protected]
jobs:
  deploy:
    executor: serverless-framework/default
    steps:
      - checkout
      - aws-cli/setup
      - serverless-framework/setup
      - run:
          command: serverless deploy -v
          name: deploy

To Reproduce

NA

Expected behavior

I would expect the examples to work properly.

Additional context

@colinbjohnson colinbjohnson added the bug Something isn't working label Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant