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

-f didn't work #464

Closed
kokizzu opened this issue Jan 23, 2022 · 2 comments
Closed

-f didn't work #464

kokizzu opened this issue Jan 23, 2022 · 2 comments

Comments

@kokizzu
Copy link

kokizzu commented Jan 23, 2022

the docs on "Management UI" section said:

atlas schema apply -d "mysql://root:pass@tcp(localhost:3306)/example" -f atlas.hcl -w

but when executed:

Error: unknown shorthand flag: 'f' in -f

version:

atlas CLI version v0.3.1
https://github.com/ariga/atlas/releases/tag/v0.3.1
@rotemtam
Copy link
Member

Hi @kokizzu ,
Thanks for reaching out.
Copy pasting your snippet on my local Mac works:

➜  v0.3.1 atlas schema apply -d "mysql://root:pass@tcp(localhost:3306)/example" -f atlas.hcl -w
Atlas UI available at: http://127.0.0.1:5800/migrations/12884901889
Press Ctrl+C to stop

A few more diagnostic questions:

  • What OS are you using?
  • Are you able to use atlas schema apply without the -w flag?
  • Did you download Atlas from the CDN or compile on your own?
    Thanks

@kokizzu
Copy link
Author

kokizzu commented Jan 23, 2022

ah right, i was running wrong command parameter XD atlas schema inspect not schema apply

@kokizzu kokizzu closed this as completed Jan 23, 2022
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