Ligne 2 : |
Ligne 2 : |
| | | |
| {{traduction}} | | {{traduction}} |
| + | == Qu'est ce que Spark CLI? == |
| + | The Spark CLI is a powerful tool for interacting with your cores and the Spark Cloud. The CLI uses [http://nodejs.org/ node.js] and can run on Windows, Mac OS X, and Linux fairly easily. It's also [https://github.com/spark/spark-cli open source] (''GitHub, Spark.IO'') so you can edit and change it, and even send in your changes as pull requests if you want to share! |
| + | |
| + | == Installation == |
| + | |
| + | First, make sure you have [http://nodejs.org/ node.js] installed! |
| + | |
| + | Next, open a command prompt or terminal, and install by typing: |
| + | |
| + | <nowiki># Comment installer spark-cli |
| + | $ npm install -g spark-cli |
| + | $ spark cloud login</nowiki> |
| + | |
| + | == Installation avancée == |
| + | To use the local flash and key features you'll also need to install [http://dfu-util.sourceforge.net/ dfu-util], and [http://www.openssl.org/ openssl]. They are freely available and open-source, and there are installers and binaries for most major platforms. |
| + | |
| + | Here are some great tutorials on the community for full installs: |
| + | |
| + | * [https://community.spark.io/t/how-to-install-spark-cli-on-ubuntu-12-04/3474 Installing on Ubuntu 12.04] |
| + | |
| + | * [https://community.spark.io/t/how-to-install-the-spark-toolchain-in-ubuntu-14-04/4139 Installing on Ubuntu 14.04] |
| + | |
| + | * [https://community.spark.io/t/tutorial-spark-cli-on-windows-06-may-2014/3112 Installing on Windows] |
| + | |
| + | == Mise-à-jour le CLI == |
| + | Pour faire une mise-à-jour de Spark-CLI, il faut exécuter la commande suivante: |
| + | |
| + | <nowiki># Comment mettre-à-jour votre Spark-Cli |
| + | $ npm update -g spark-cli</nowiki> |
| + | |
| + | == Avancé: exécuter le CLI depuis les sources == |
| + | To grab the CLI source and play with it locally |
| + | |
| + | <nowiki># Comment prendre les sources pour le CLI |
| + | $ git clone git@github.com:spark/spark-cli.git |
| + | $ cd spark-cli/js |
| + | $ node app.js help</nowiki> |
| | | |
| {{Spark.IO-CLI-TRAILER}} | | {{Spark.IO-CLI-TRAILER}} |