# optimizely-sync

> A command line application to sync code with Optimizely

Latest version **0.20.2** (published 2015-05-13) · Apache 2.0 license · 0 weekly downloads

## Install

```sh
npm install optimizely-sync
pnpm add optimizely-sync
yarn add optimizely-sync
bun add optimizely-sync
```

Provides the command `optimizely`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.20.2 |
| Published | 2015-05-13 |
| First published | 2015-05-13 |
| Weekly downloads | 0 |
| License | Apache 2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | ^0.10.32 |
| Dependencies | 11 |
| Known vulnerabilities | 0 (+9 in 2 direct dependencies) |
| Install scripts | no |
| Author | Nathan Heaps |
| Maintainers | nsheaps |
| Keywords | optimizely, cli, optcli |

## Links

- npm: https://www.npmjs.com/package/optimizely-sync
- Repository: git@github.com:RueLaLa/optimizely-sync
- Homepage: https://github.com/RueLaLa/optimizely-sync
- Issues: https://github.com/RueLaLa/optimizely-sync/issues
- npm.io page: https://npm.io/package/optimizely-sync

## Dependencies (11)

- [q](https://npm.io/package/q.md) ^1.1.2
- [ejs](https://npm.io/package/ejs.md) ^1.0.0
- [glob](https://npm.io/package/glob.md) ^4.2.2
- [slug](https://npm.io/package/slug.md) ^0.9.1
- [lodash](https://npm.io/package/lodash.md) ^2.4.1
- [express](https://npm.io/package/express.md) ^4.10.4
- [bluebird](https://npm.io/package/bluebird.md) ^2.3.2
- [cli-table](https://npm.io/package/cli-table.md) ^0.3.1
- [commander](https://npm.io/package/commander.md) ^2.5.0
- [readline-sync](https://npm.io/package/readline-sync.md) ^1.2.14
- [optimizely-node-client](https://npm.io/package/optimizely-node-client.md) ^0.2.0

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 0.20.2 (latest) — 2015-05-13
- 0.20.1 — 2015-05-13
- 0.20.0 — 2015-05-13

## README

# Optimizely Sync

This project provides a command line interface for pushing and pulling code to optimizely via the command line. This is especially useful for proper version control and peer review of A/B testing code that gets launched through Optimizely.

This project is forked from Optimizely-CLI, a command line tool that lets developers build Optimizely experiments faster. The package was originally developed by the folks at [FunnelEnvy](http://www.funnelenvy.com) who found that (being stubborn engineers) they were more comfortable using our source editors and Git to develop locally - and this had a *significant* positive impact on their test velocity.

Optimizely Sync leaves in features from Optimizely-CLI, including a command line executable that also integrates with either the [Tampermonkey](https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=en) (Google Chrome) or [Greasemonkey](https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/) (Firefox) extensions for local development / preview and the Optimizely API for publishing tests.

For more info on FunnelEnvy's Optimizely-CLI, check out their [Optimizely-CLI page](http://www.funnelenvy.com/optimizely-cli/).

## Installation

```
npm install -g optimizely-sync
```
This will install the `optimizely` executable on your system.

### Dependencies


You'll need to have [node.js](http://nodejs.org/) installed locally to run `optimizely` and either the Tampermonkey or Greasemonkey extensions to view variations locally.

## Quickstart

```
optimizely
```
View available commands


```
optimizely clone [project_id]
```
Initializes a new Optimizely project locally duplicating what Optimizely has. 


```
optimizely pull [<experiment>|<experiment> <variation>]
```
Pulls changes from optimizely to the specified variation, experiment (all variations), or all experiments within the project.

Experiment and Variation specific pulling is NOT IMPLEMENTED yet


```
optimizely push [<experiment>|<experiment> <variation>]
```
Pushes changes from your local file system to Optimizely following the same rules as `optimizely pull`

Experiment and Variation specific pushing is NOT IMPLEMENTED yet


```
optimizely new-experiment <experiment> <description>
```
NOT IMPLEMENTED
Checks to see if this experiment exists in Optimizely and pulls it into your working tree (where appropriate), otherwise creates a new experiment to be pushed later.


```
optimizely new-variation <experiment> <variation-number> <description>
```
NOT IMPLEMENTED
Checks to see if this variation exists in the specified experiement in Optimizely and pulls it into your working tree (where appropriate), otherwise creates a new variation to be pushed later.


```
optimizely host [options] <path> [port]
```
Host a variation locally. Point your browser at http(s)://localhost:8080 (default port) for usage info.


## Known Issues
* Tests - We have some. We're adding more.


## Release History
* 0.20.2 Fixed reliance on removed code.
* 0.20.1 Fixed readme giving the wrong command for init/clone
* 0.20.0 Changed to Optimizely Sync. Changed binary name.
-- Fork --
* 0.15.0 Iteration option on push-experiment
* 0.14.3 Added push-experiment, push-variation tests
* 0.14.2 Show help when no arguments passed
* 0.14.1 Bugfixes
* 0.14.0 Move node client into [separate module](https://github.com/FunnelEnvy/optimizely-node)
* 0.12.0 Bugfixes, more compliant with semver
* 0.0.11 Separated create from push operations
* 0.0.10 Refactored and cleanup
* 0.0.7 Push
* 0.0.2 Clone bug fix
* 0.0.1 Initial release

## Contributing

Please see [CONTRIBUTING.md](contributing.md).

## Copyright and license

Code copyright 2015 Celerius Group Inc. Modifications are copyright 2015 Retail Convergence Inc.

All other registered trademarks or trademarks are property of their respective owners.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

---
_Source: https://npm.io/package/optimizely-sync · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
