# @6street/6street-cli

> Workflow and productivity helpers for 6Street Digital

Latest version **0.7.3** (published 2024-05-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install @6street/6street-cli
pnpm add @6street/6street-cli
yarn add @6street/6street-cli
bun add @6street/6street-cli
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.7.3 |
| Published | 2024-05-08 |
| First published | 2023-02-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=14.0.0 |
| Dependencies | 7 |
| Unpacked size | 42.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | mikeburke |
| Maintainers | john.esposito.6st, mikeburke |
| Keywords | force, salesforce, sfdx, salesforcedx, sfdx-plugin, sf-plugin, sf |

## Links

- npm: https://www.npmjs.com/package/@6street/6street-cli
- Repository: https://github.com/6street/6street-cli
- Homepage: https://github.com/6Street/6street-cli
- Issues: https://github.com/6street/6street-cli/issues
- npm.io page: https://npm.io/package/@6street/6street-cli

## Dependencies (7)

- [chalk](https://npm.io/package/chalk.md) ^4
- [tslib](https://npm.io/package/tslib.md) ^2
- [fs-extra](https://npm.io/package/fs-extra.md) ^11
- [@oclif/core](https://npm.io/package/@oclif/core.md) ^2.16
- [@salesforce/kit](https://npm.io/package/@salesforce/kit.md) latest
- [@salesforce/core](https://npm.io/package/@salesforce/core.md) latest
- [@salesforce/sf-plugins-core](https://npm.io/package/@salesforce/sf-plugins-core.md) latest

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 0.7.3 (latest) — 2024-05-08
- 0.7.2 — 2024-05-07
- 0.7.1 — 2024-04-29
- 0.7.0 — 2024-04-28
- 0.6.1 — 2024-02-17
- 0.6.0 — 2024-02-15
- 0.5.0 — 2023-11-08
- 0.4.4 — 2023-07-17
- 0.4.3 — 2023-07-17
- 0.4.2 — 2023-07-01
- 0.4.1 — 2023-06-29
- 0.4.0 — 2023-06-29
- 0.3.2 — 2023-06-05
- 0.3.1 — 2023-06-05
- 0.3.0 — 2023-06-01
- … 7 more at https://npm.io/package/@6street/6street-cli/versions

## README

# 6street-cli

[![NPM](https://img.shields.io/npm/v/@6street/6street-cli.svg?label=6street-cli)](https://www.npmjs.com/package/@6street/6street-cli)
[![Downloads/week](https://img.shields.io/npm/dw/@6street/6street-cli.svg)](https://www.npmjs.com/package/@6street/6street-cli)
[![License](https://img.shields.io/badge/License-MIT-brightgreen.svg)](https://raw.githubusercontent.com/6Street/6street-cli/main/LICENSE)
[![Known Vulnerabilities](https://snyk.io/test/github/6street/6street-cli/badge.svg)](https://snyk.io/test/github/6street/6street-cli)

## Install

```bash
sf plugins install @6street/6street-cli@x.y.z
```

## Issues

Please report any issues at https://github.com/6street/6street-cli/issues

## Contributing

1. Please read Salesforce's [Code of Conduct](CODE_OF_CONDUCT.md)
2. Create a new issue before starting your project so that we can keep track of
   what you are trying to add/fix. That way, we can also offer suggestions or
   let you know if there is already an effort in progress.
3. Fork this repository.
4. [Build the plugin locally](#build)
5. Create a _topic_ branch in your fork. Note, this step is recommended but technically not required if contributing using a fork.
6. Edit the code in your fork.
7. Write appropriate tests for your changes. Try to achieve at least 95% code coverage on any new code. No pull request will be accepted without unit tests.
8. Send us a pull request when you are done. We'll review your code, suggest any needed changes, and merge it in.

### Build

To build the plugin locally, make sure to have yarn installed and run the following commands:

```bash
# Clone the repository
git clone git@github.com:6street/6street-cli

# Install the dependencies and compile
yarn && yarn build
```

To use your plugin, run using the local `./bin/dev` or `./bin/dev.cmd` file.

```bash
# Run using local run file.
./bin/dev release generate manifest
```

There should be no differences when running via the Salesforce CLI or using the local run file. However, it can be useful to link the plugin to do some additional testing or run your commands from anywhere on your machine.

```bash
# Link your plugin to the sf cli
sf plugins link .
# To verify
sf plugins
```

## Commands

<!-- commands -->

- [`sf release generate manifest`](#sf-release-generate-manifest)
- [`sf release validate manifest`](#sf-release-validate-manifest)

## `sf release generate manifest`

Generates a package.xml manifest based on git changes made in a branch.

```
USAGE
  $ sf release generate manifest [--json] [-f] [-d <value>] [-s <value>]

FLAGS
  -d, --output-dir=<value>  [default: ./manifest] Selected output folder for the manifest file.
  -f, --force               Overwrites an existing package.xml in the output folder if it exists.
  -s, --source=<value>      Branch or commit we're comparing to for the diff. If this flag is omitted, this command will
                            attempt to look through the git log and guess where this branch originated from - this may
                            be unreliable.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Generates a package.xml manifest based on git changes made in a branch.

  Uses the Salesforce Git Delta package to help generate a package.xml manifest based on git changes made in a branch.

EXAMPLES
  $ sf release generate manifest
```

## `sf release validate manifest`

Validates a package.xml manifest against a target org

```
USAGE
  $ sf release validate manifest -o <value> [--json] [-f] [-d <value>] [-l
    NoTestRun|RunSpecifiedTests|RunLocalTests|RunAllTestsInOrg] [-t <value>]

FLAGS
  -d, --output-dir=<value>   [default: ./manifest] Selected output folder for the manifest file.
  -f, --force                Overwrites an existing package.xml in the output folder if it exists.
  -l, --test-level=<option>  [default: NoTestRun] Which test level of Salesforce deployment to run
                             <options: NoTestRun|RunSpecifiedTests|RunLocalTests|RunAllTestsInOrg>
  -o, --target-org=<value>   (required) Selected target org to perform the validation against
  -t, --tests=<value>...     Which specific test classes to run along with deployment when using RunSpecifiedTests

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Validates a package.xml manifest against a target org

  Performs a dry-run against a target org for the current branch using a standard location for package.xml, generating
  the package using `release generate manifest` if it does not exist yet.

EXAMPLES
  $ sf release validate manifest
```

<!-- commandsstop -->

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