I have been trying to use the cli to manage nodes, but I keep running into some command weirdness. Commands like list
work as expected:
linode-cli --token ******* list --raw
abc:abc_web_1234567:running:us-west-1a:False:20480:1024
abc:abc_db_1234567:running:us-west-1a:False:20480:1024
linode-cli --token ******* distros
Traceback (most recent call last):
File "/usr/bin/linode-cli", line 11, in <module>
sys.exit(main())
File "/usr/lib/python3.6/site-packages/linodecli/cli.py", line 85, in main
getattr(obj, cmd)(args, client, unparsed=unparsed)
File "/usr/lib/python3.6/site-packages/linodecli/resources/linode.py", line 372, in distros
print("{} {}".format(d.label, Color('{green}(Default){/green}') if d.id == args.distribution else ''))
AttributeError: 'Namespace' object has no attribute 'distribution'
I tried this in an Alpine container, a macOS system, and an Arch Linux system with the same results each time.
linode-cli --token ******* linode distros
Command not found - options are: backups-cancel, backups-enable, backups-restore, backups-show, create, delete, distros, group, ip-add, list, locations, plans, rebuild, rename, resize, restart, show, snapshot, start, stop
linode-cli --token ******* event list
Command not found - options are: backups-cancel, backups-enable, backups-restore, backups-show, create, delete, distros, group, ip-add, list, locations, plans, rebuild, rename, resize, restart, show, snapshot, start, stop
Is this user error? A gap in the docs? A missing dependency? I'm grasping at straws here.