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

Build command in command prompt seems to fail. #24

Closed
NCDuneZerna opened this issue May 4, 2023 · 1 comment
Closed

Build command in command prompt seems to fail. #24

NCDuneZerna opened this issue May 4, 2023 · 1 comment
Assignees

Comments

@NCDuneZerna
Copy link

When I run the command

K6_INFLUXDB_ORGANIZATION=myorg
K6_INFLUXDB_BUCKET=mybucket
K6_INFLUXDB_TOKEN=mytoken
./k6 run -o xk6-influxdb=http://localhost:8086 myscript.js

I get this error message:

K6_INFLUXDB_ORGANIZATION=myorg : The term 'K6_INFLUXDB_ORGANIZATION=myorg' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
included, verify that the path is correct and try again.
At line:1 char:1

  • K6_INFLUXDB_ORGANIZATION=myorg \
  •   + CategoryInfo          : ObjectNotFound: (K6_INFLUXDB_ORGANIZATION=myorg:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    
    

K6_INFLUXDB_BUCKET=mybucket : The term 'K6_INFLUXDB_BUCKET=mybucket' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:2 char:1

  • K6_INFLUXDB_BUCKET=mybucket \
  •   + CategoryInfo          : ObjectNotFound: (K6_INFLUXDB_BUCKET=mybucket:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    
    

K6_INFLUXDB_TOKEN=mytoken : The term 'K6_INFLUXDB_TOKEN=mytoken' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and t
ry again.
At line:3 char:1

  • K6_INFLUXDB_TOKEN=mytoken
  •   + CategoryInfo          : ObjectNotFound: (K6_INFLUXDB_TOK...mytoken:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
      
      
    
@javaducky
Copy link
Contributor

javaducky commented Jul 20, 2023

This command was written on a Mac. I believe on Windows, the line continuation character may be a "`" or "^" depending upon your exact setup.

Closing this issue for now, feel free to update if problems persist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants