3.2.2 • Published 3 months ago

@salla.sa/cli v3.2.2

Weekly downloads
-
License
-
Repository
github
Last release
3 months ago

Overview

The Salla Command Line Interface (Salla CLI) is your way to create your starter Salla Apps which works with the Salla APIs. Your App later can be published to the Salla App Store and be available for installation to any of Salla Merchants Stores.

Getting Started

The Salla CLI is available via npm and is packaged to be used globally so you can access it everywhere.

Salla CLI comes with an easy to use, straight-forward commands that does the complete setup to your Salla App. To be ready, you will need some prerequisites which will be listed hereafter.

What can you use Salla CLI for?

Prerequisites

Usage

To install Salla CLI, run the following command:

npm install @salla.sa/cli -g

And you're now ready to start building your apps with Salla Partners Portal !

After installation, you will have access to the salla binary in your command line. You can verify that the CLI is properly installed by simply running the binary command, salla, which should present you with a help message listing all available commands.

You can check you have the right version with this command:

salla --version

The convention followed to execute Salla CLI Commands is:

salla <command>

Available Commands:
  Command:                         Description:                                      Properties:
  salla app                        Show list of commands with the binary `app`       -
  salla app create                 Create a new Salla App                            -
  salla app create-webhook         Create a new Salla App Webhook                    [event.name]
  salla app delete                 Delete an existing Salla App                      -
  salla app list                   List all your Salla Apps                          -
  salla app info                   Show detailed app information                     -
  salla app link                   Link your local app with Salla Partners           -
  salla app serve                  Serve an existing Salla App                       [-p,-l]
  salla login                      Login to your Salla Store                         -
  salla version                    Show the version of Salla CLI                     -

Create Application

Creating your Salla App App is much easier with Salla CLI. Run the following command to go through the wizard that would help you create your app:

salla app create

List of existing apps assocaited to your account will be displayed as well as an option to create your app on Salla Partners Portal. Afterwards, you will be presented with easy-to fill in information to create your app.

Salla App Create Command

Serve Application

To run and test an existing Salla App, run the following command:

salla app serve

Salla App Serve Command

Create Webhook

Webhooks are a way to receive notifications from Salla when an event happens in your Salla App. For example, when a new order is placed, you can receive a notification via your own webhook. Read more on the Official Docs.

For utmost flexibility, you can stream a webhook for any event you want to receive. Run the following command to create a webhook:

salla app create-webhook

Salla App Create-Webhook Command

Authintication

To communicate with your Salla Partners Portal Apps, you will need to be authenticated. To do so, run the following command:

salla login

That will handle all authentication and authorization process with your account on Salla Partners Portal.

Salla App Login

Link

To link your local app with Salla Partners, you need to run:

salla app link

List of existing apps assocaited to your account will be displayed where you will need to choose one application to link to your local app to.

Salla App Link Command

Delete

To delete your app directly from the CLI, you need to run:

salla app delete

Salla App Delete Command

Upgrade

To upgrade Salla CLI package globally, you need to run:

npm update @salla.sa/cli -g

Support

The team is always here to help you. Happen to face an issue? Want to report a bug? You can submit one here on Github using the Issue Tracker. If you still have any questions, please contact us via the Telegram Bot or join in the Global Developer Community on Telegram.

Security

If you discover any security-related issues, please email security@salla.sa instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

3.2.2

3 months ago

2.0.1

1 year ago

2.0.0

1 year ago

3.2.1

1 year ago

3.2.0

1 year ago

3.1.0

1 year ago

1.4.62

1 year ago

1.4.61

1 year ago

3.0.0

1 year ago

1.4.60

1 year ago

1.4.59

1 year ago

1.4.58

2 years ago

1.4.57

2 years ago

1.4.49

2 years ago

1.4.51

2 years ago

1.4.50

2 years ago

1.4.53

2 years ago

1.4.52

2 years ago

1.4.55

2 years ago

1.4.54

2 years ago

1.4.56

2 years ago

1.4.42

2 years ago

1.4.41

2 years ago

1.4.44

2 years ago

1.4.43

2 years ago

1.4.46

2 years ago

1.4.45

2 years ago

1.4.48

2 years ago

1.4.47

2 years ago

1.4.20

2 years ago

1.4.22

2 years ago

1.4.21

2 years ago

1.4.24

2 years ago

1.4.23

2 years ago

1.4.26

2 years ago

1.4.25

2 years ago

1.4.28

2 years ago

1.4.27

2 years ago

1.4.29

2 years ago

1.4.31

2 years ago

1.4.30

2 years ago

1.4.33

2 years ago

1.4.32

2 years ago

1.4.35

2 years ago

1.4.34

2 years ago

1.4.37

2 years ago

1.4.36

2 years ago

1.4.39

2 years ago

1.4.38

2 years ago

1.4.11

2 years ago

1.4.12

2 years ago

1.4.15

2 years ago

1.4.14

2 years ago

1.4.17

2 years ago

1.4.16

2 years ago

1.4.19

2 years ago

1.4.18

2 years ago

1.4.40

2 years ago

1.2.134

2 years ago

1.2.133

2 years ago

1.2.136

2 years ago

1.2.135

2 years ago

1.2.138

2 years ago

1.2.137

2 years ago

1.2.139

2 years ago

1.2.130

2 years ago

1.2.132

2 years ago

1.2.131

2 years ago

1.2.145

2 years ago

1.2.144

2 years ago

1.2.147

2 years ago

1.2.146

2 years ago

1.2.149

2 years ago

1.2.148

2 years ago

1.2.141

2 years ago

1.2.140

2 years ago

1.2.143

2 years ago

1.2.142

2 years ago

1.2.156

2 years ago

1.2.155

2 years ago

1.2.158

2 years ago

1.2.157

2 years ago

1.2.150

2 years ago

1.2.152

2 years ago

1.2.151

2 years ago

1.2.154

2 years ago

1.2.153

2 years ago

1.4.10

2 years ago

1.4.6

2 years ago

1.4.5

2 years ago

1.4.4

2 years ago

1.4.3

2 years ago

1.4.2

2 years ago

1.4.0

2 years ago

1.2.114

2 years ago

1.2.116

2 years ago

1.2.115

2 years ago

1.2.118

2 years ago

1.2.117

2 years ago

1.2.123

2 years ago

1.2.122

2 years ago

1.2.125

2 years ago

1.2.124

2 years ago

1.2.127

2 years ago

1.2.126

2 years ago

1.2.129

2 years ago

1.2.128

2 years ago

1.2.121

2 years ago

1.2.120

2 years ago

1.4.9

2 years ago

1.4.8

2 years ago

1.4.7

2 years ago

1.2.119

2 years ago

1.2.0

2 years ago

1.2.8

2 years ago

1.2.7

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.81

2 years ago

1.2.82

2 years ago

1.2.85

2 years ago

1.2.86

2 years ago

1.2.83

2 years ago

1.2.84

2 years ago

1.2.89

2 years ago

1.2.87

2 years ago

1.2.88

2 years ago

1.2.101

2 years ago

1.2.100

2 years ago

1.2.103

2 years ago

1.2.102

2 years ago

1.2.105

2 years ago

1.2.104

2 years ago

1.2.107

2 years ago

1.2.106

2 years ago

1.2.92

2 years ago

1.2.93

2 years ago

1.2.90

2 years ago

1.2.91

2 years ago

1.2.96

2 years ago

1.2.97

2 years ago

1.2.94

2 years ago

1.2.95

2 years ago

1.2.98

2 years ago

1.2.99

2 years ago

1.2.112

2 years ago

1.2.111

2 years ago

1.2.113

2 years ago

1.2.109

2 years ago

1.2.108

2 years ago

1.1.9

2 years ago

1.1.8

3 years ago

1.1.10

2 years ago

1.1.7

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago

0.0.1

3 years ago