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

Flags for instance list #88

Open
jexp opened this issue Nov 1, 2024 · 0 comments
Open

Flags for instance list #88

jexp opened this issue Nov 1, 2024 · 0 comments

Comments

@jexp
Copy link
Member

jexp commented Nov 1, 2024

Optional --detail flag for instance list

  • So that I get all details for each instance without having to run two commands in a loop.
  • like today and then in a non-useable output format with repeat header and table header and footer
for i in `./neo4j-cli aura instance list | grep '' | cut -d'' -f 2 | grep -v ID`; do 
   ./neo4j-cli aura instance get $i; 
done

Optional --id or -s or --short output that only lists the id's for scripting

Today you have to do things like grep + cut or jq

only list id's
./neo4j-cli aura instance list --output json | jq -r '.data[].id'

convert output to csv
./neo4j-cli aura instance list --output json | jq -r '.data[] | [.id,.name,.tenant_id] | @csv'
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

1 participant