mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-02-20 17:33:18 +00:00
In my system (MBPr 13), printing the current version takes over 2 seconds: ```sh $ time ./bin/resin version 2.4.0 ./bin/resin version 1.37s user 0.19s system 73% cpu 2.130 total ``` The CLI takes almost all of these time to parse the dependency tree before returning control over the actually called command. To mitigate this problem, we only require the NPM dependencies a command requires when executing such command, and thus prevent dependencies from being required and parsed unnecessary. After this improvement, printing the original example (`resin version`) returns in less than a second (2x improvement): ```sh $ time ./bin/resin version 2.4.0 ./bin/resin version 0.88s user 0.09s system 102% cpu 0.938 total ```
Resin CLI
The official Resin CLI tool.
Requisites
Getting Started
Installing
This might require elevated privileges in some environments.
$ npm install --global --production resin-cli
Login
$ resin login
List available commands
$ resin help
Run the quickstart wizard
Run as root
on UNIX based systems, and in an administrator command line prompt in Windows.
$ resin quickstart
Support
If you're having any problem, check our troubleshooting guide and if your problem is not addressed there, please raise an issue on GitHub and the Resin.io team will be happy to help.
License
The project is licensed under the MIT license.
Languages
TypeScript
97.9%
JavaScript
1.5%
Shell
0.4%
EJS
0.1%