承接 northstack/northstack-client 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

northstack/northstack-client

Composer 安装命令:

composer require northstack/northstack-client

包简介

Commands for serverless environment management

README 文档

README

CLI Client and PHP Library to access the NorthStack NorthStack APIs

Build status

Installation

Requirements

There are two ways to install and run the NorthStack CLI. The primary means is a native install (which requires you to have PHP 7.2 installed) and a docker-based wrapper which does not. Both installation methods require you to have docker installed.

requirement native docker
docker 17.09+ 17.09+
php 7.2+ N/A
OS Linux or OSX Linux

The native install method is preferred and more performant, so it's best if you're able to install PHP >= 7.2 for your operating system. If you're running a modern Linux distro chances are you can just $packageManager install php72. If you're using on OSX the easiest way to do this is use homebrew.

Install

git clone https://github.com/northstack/northstack-client.git
cd northstack-client
./bin/install.sh

Some installation settings are configurable via CLI arguments:

  -a <path>          Set the app directory       (default = $HOME/northstack/apps)
  -p <path>          Set the install prefix      (default = $HOME/.local)
  -m docker|native   Set the install method      (default = auto)
  -d                 Install in dev mode         (default = false)
  -n                 Don't prompt for any input  (default = no)

Post-install

The CLI is installed to $INSTALL_PREFIX/bin (default ~/.local/bin), which may or may not already be in your $PATH. The installer attempt to update your rc files for you if this is the case:

[2019-06-26 14:50:00] [warn] /home/ns/.local/bin is not in your $PATH
Would you like us to update your .bashrc/.zshrc files?
Enter yes/no (default = no): yes
101a102,104
> # NorthStack START
> PATH=/home/ns/.local/bin:$PATH
> # NorthStack END
[2019-06-26 14:51:39] [info] Updating: /home/ns/.bashrc

Make sure to source ~/.bashrc after this!

The CLI also supports tab-completion. The process for enabling this varies from platform to platform, but in a pinch you can also just add the completion hook to your bashrc:

$ ~/.local/bin/northstack _completion --generate-hook --program northstack >> ~/.bashrc

Using the client

Login

northstack auth:login my@northstack-username.com

This will save a login token to ~/.northstacklogin. The login will be good for 14 hours. After that you will need to login again.

This file will automatically be read by all other commands and used for authorization to the NorthStack API.

You may also use your API keys to log in using the auth:client-login command.

When done, you may use the auth:logout command or simply remove the ~/.northstacklogin file.

Commands

Executing the northstack command by itself will show the commands available.

northstack

To get usage help for any command, simply prefix the command name with help

northstack help auth:login

Help!

What is my Account ID?

  1. You can get your account ID by logging into https://console.northstack.com and looking at the address in your browser. Your account ID will be displayed on the dashboard labeled Account ID.

  2. If you are a collaborator and need the ID for another account, log in to console (link above) and use the account switcher (click your name in the upper right) and switch to the organization in question. The Account ID on the dashboardwill change to reflect the current organization that you are viewing.

统计信息

  • 总下载量: 57.62k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 8
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 7
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-only
  • 更新时间: 2019-02-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固