2017-12-21 17:40:13 +00:00
export = {
2018-10-19 14:38:50 +00:00
title : 'Balena CLI Documentation' ,
2017-12-21 17:40:13 +00:00
introduction : ` \
2018-10-19 14:38:50 +00:00
This tool allows you to interact with the balena api from the comfort of your command line .
2017-12-21 17:40:13 +00:00
2018-10-19 14:38:50 +00:00
Please make sure your system meets the requirements as specified in the [ README ] ( https : //github.com/balena-io/balena-cli).
2017-12-21 17:40:13 +00:00
2018-03-12 19:06:21 +00:00
# # Install the CLI
2017-12-21 17:40:13 +00:00
2018-03-12 19:06:21 +00:00
# # # Npm install
2017-12-21 17:40:13 +00:00
2018-03-12 19:06:21 +00:00
The best supported way to install the CLI is from npm :
2018-10-19 14:38:50 +00:00
$ npm install balena - cli - g -- production -- unsafe - perm
2018-03-12 19:06:21 +00:00
\ ` --unsafe-perm \` is only required on systems where the global install directory is not user-writable.
This allows npm install steps to download and save prebuilt native binaries . You may be able to omit it ,
especially if you ' re using a user - managed node install such as [ nvm ] ( https : //github.com/creationix/nvm).
# # # Standalone install
Alternatively , if you don ' t have a node or pre - gyp environment , you can still install the CLI as a standalone
binary . * * This is in experimental and may not work perfectly yet in all environments * * , but works well in
initial cross - platform testing , so it may be useful , and we ' d love your feedback if you hit any issues .
To install the CLI as a standalone binary :
2018-10-19 14:38:50 +00:00
* Download the latest zip for your OS from https : //github.com/balena-io/balena-cli/releases.
* Extract the contents , putting the \ ` balena-cli \` folder somewhere appropriate for your system (e.g. \` C:/balena-cli \` , \` /usr/local/lib/balena-cli \` , etc).
* Add the \ ` balena-cli \` folder to your \` PATH \` . (
2018-03-12 19:06:21 +00:00
[ Windows instructions ] ( https : //www.computerhope.com/issues/ch000549.htm),
[ Linux instructions ] ( https : //stackoverflow.com/questions/14637979/how-to-permanently-set-path-on-linux-unix),
[ OSX instructions ] ( https : //stackoverflow.com/questions/22465332/setting-path-environment-variable-in-osx-permanently))
2018-10-19 14:38:50 +00:00
* Running \ ` balena \` in a fresh command line should print the balena CLI help.
2018-03-12 19:06:21 +00:00
To update in future , simply download a new release and replace the extracted folder .
Have any problems , or see any unexpected behaviour ? Please file an issue !
# # Getting started
2018-10-19 14:38:50 +00:00
Once you have the CLI installed , you ' ll need to log in , so it can access everything in your balena account .
2018-03-12 19:06:21 +00:00
To authenticate yourself , run :
2017-12-21 17:40:13 +00:00
2018-10-19 14:38:50 +00:00
$ balena login
2017-12-21 17:40:13 +00:00
2018-03-12 19:06:21 +00:00
You now have access to all the commands referenced below .
2017-12-21 17:40:13 +00:00
# # Proxy support
The CLI does support HTTP ( S ) proxies .
You can configure the proxy using several methods ( in order of their precedence ) :
2018-10-19 14:38:50 +00:00
* set the \ ` BALENARC_PROXY \` environment variable in the URL format (with protocol, host, port, and optionally the basic auth),
* use the [ balena config file ] ( https : //www.npmjs.com/package/balena-settings-client#documentation) (project-specific or user-level)
2017-12-21 17:40:13 +00:00
and set the \ ` proxy \` setting. This can be:
* a string in the URL format ,
* or an object following [ this format ] ( https : //www.npmjs.com/package/global-tunnel-ng#options), which allows more control,
* or set the conventional \ ` https_proxy \` / \` HTTPS_PROXY \` / \` http_proxy \` / \` HTTP_PROXY \`
environment variable ( in the same standard URL format ) . \
` ,
categories : [
2018-04-04 12:42:57 +00:00
{
title : 'Api keys' ,
2018-10-19 14:38:50 +00:00
files : [ 'build/actions/api-key.js' ] ,
2018-04-04 12:42:57 +00:00
} ,
2017-12-21 17:40:13 +00:00
{
title : 'Application' ,
2018-10-19 14:38:50 +00:00
files : [ 'build/actions/app.js' ] ,
2017-12-21 17:40:13 +00:00
} ,
{
title : 'Authentication' ,
2018-10-19 14:38:50 +00:00
files : [ 'build/actions/auth.js' ] ,
2017-12-21 17:40:13 +00:00
} ,
{
title : 'Device' ,
2018-10-19 14:38:50 +00:00
files : [ 'build/actions/device.js' ] ,
2017-12-21 17:40:13 +00:00
} ,
{
title : 'Environment Variables' ,
2018-10-19 14:38:50 +00:00
files : [ 'build/actions/environment-variables.js' ] ,
2017-12-21 17:40:13 +00:00
} ,
2018-12-10 21:05:35 +00:00
{
title : 'Tags' ,
files : [ 'build/actions/tags.js' ] ,
} ,
2017-12-21 17:40:13 +00:00
{
title : 'Help' ,
2018-10-19 14:38:50 +00:00
files : [ 'build/actions/help.js' ] ,
2017-12-21 17:40:13 +00:00
} ,
{
title : 'Information' ,
2018-10-19 14:38:50 +00:00
files : [ 'build/actions/info.js' ] ,
2017-12-21 17:40:13 +00:00
} ,
{
title : 'Keys' ,
2018-10-19 14:38:50 +00:00
files : [ 'build/actions/keys.js' ] ,
2017-12-21 17:40:13 +00:00
} ,
{
title : 'Logs' ,
2018-10-19 14:38:50 +00:00
files : [ 'build/actions/logs.js' ] ,
2017-12-21 17:40:13 +00:00
} ,
{
title : 'Sync' ,
2018-10-19 14:38:50 +00:00
files : [ 'build/actions/sync.js' ] ,
2017-12-21 17:40:13 +00:00
} ,
{
title : 'SSH' ,
2018-10-19 14:38:50 +00:00
files : [ 'build/actions/ssh.js' ] ,
2017-12-21 17:40:13 +00:00
} ,
{
title : 'Notes' ,
2018-10-19 14:38:50 +00:00
files : [ 'build/actions/notes.js' ] ,
2017-12-21 17:40:13 +00:00
} ,
{
title : 'OS' ,
2018-10-19 14:38:50 +00:00
files : [ 'build/actions/os.js' ] ,
2017-12-21 17:40:13 +00:00
} ,
{
title : 'Config' ,
2018-10-19 14:38:50 +00:00
files : [ 'build/actions/config.js' ] ,
2017-12-21 17:40:13 +00:00
} ,
{
title : 'Preload' ,
2018-10-19 14:38:50 +00:00
files : [ 'build/actions/preload.js' ] ,
2017-12-21 17:40:13 +00:00
} ,
2018-06-26 16:59:44 +00:00
{
title : 'Push' ,
2018-10-19 14:38:50 +00:00
files : [ 'build/actions/push.js' ] ,
2018-06-26 16:59:44 +00:00
} ,
2017-12-21 17:40:13 +00:00
{
title : 'Settings' ,
2018-10-19 14:38:50 +00:00
files : [ 'build/actions/settings.js' ] ,
2017-12-21 17:40:13 +00:00
} ,
{
title : 'Wizard' ,
2018-10-19 14:38:50 +00:00
files : [ 'build/actions/wizard.js' ] ,
2017-12-21 17:40:13 +00:00
} ,
{
title : 'Local' ,
2018-10-19 14:38:50 +00:00
files : [ 'build/actions/local/index.js' ] ,
2017-12-21 17:40:13 +00:00
} ,
{
title : 'Deploy' ,
2018-10-19 14:38:50 +00:00
files : [ 'build/actions/build.js' , 'build/actions/deploy.js' ] ,
2017-12-21 17:40:13 +00:00
} ,
2018-11-14 22:26:14 +00:00
{
title : 'Platform' ,
files : [ 'build/actions/join.js' , 'build/actions/leave.js' ] ,
} ,
2017-12-21 17:40:13 +00:00
{
title : 'Utilities' ,
2018-10-19 14:38:50 +00:00
files : [ 'build/actions/util.js' ] ,
2017-12-21 17:40:13 +00:00
} ,
2018-10-19 14:38:50 +00:00
] ,
2017-12-21 17:40:13 +00:00
} ;