Compare commits

..

No commits in common. "master" and "v1.0.0" have entirely different histories.

3 changed files with 3 additions and 29 deletions

View file

@ -1,4 +1,4 @@
# Firefox Sync CLI [![npm version](http://img.shields.io/npm/v/firefox-sync-cli.svg?style=flat-square)](https://www.npmjs.org/package/firefox-sync-cli)
# Firefox Sync CLI
> Manage Firefox Sync from the CLI! ✨
@ -16,14 +16,6 @@ It features two ways to authenticate, one using a Firefox Accounts email
and password to open a session, and one using OAuth. See more about them
[below](#authentication).
## Installation
```sh
npm install -g firefox-sync-cli
```
The command will be available as `ffs`. 😏
## Usage
```
@ -55,20 +47,6 @@ Commands:
help [command] Display help for command.
```
A typical flow will look like this:
```sh
ffs -c ~/.ffs-creds.json oauth
ffs -c ~/.ffs-creds.json collections
ffs -c ~/.ffs-creds.json get bookmarks --full
```
During authentication, this will create `~/.ffs-creds.json` to store the
credentials necessary to access Firefox Sync.
Further commands read credentials from this file to use that session to
query the API.
## Authentication
### Email and password

4
ffs
View file

@ -3,7 +3,3 @@
const cli = require('./cli')
cli(process.argv)
.catch(err => {
console.error(err.stack || err)
process.exit(1)
})

View file

@ -1,6 +1,6 @@
{
"name": "firefox-sync-cli",
"version": "1.0.2",
"version": "1.0.0",
"description": "Manage Firefox Sync from the CLI! ✨",
"license": "Unlicense",
"author": "Val (https://val.codejam.info)",
@ -20,7 +20,7 @@
},
"dependencies": {
"commander": "^8.2.0",
"firefox-sync": "^1.1.0",
"firefox-sync": "^1.0.0",
"ini": "^2.0.0",
"prompts": "^2.4.2",
"sqlite": "^4.0.23",