dcloud
DEITY Falcon Cloud CLI tool
Last updated a day ago by deity-io .
GPL-3.0 · Original npm · Tarball · package.json
$ cnpm install dcloud 
SYNC missed versions from official npm registry.

DEITY Falcon Cloud CLI tool

dcloud is a tool to control, monitor and trigger your deployments to DEITY Falcon Cloud.

In order to use it, install it globally with:

npm i -g dcloud

Below you can find the list of available commands you can use.

Build List

List your current builds.

dcloud build:list

Options

  • -l <limit> Limit the results
  • -p <page> Which page of results to show

Example: show 30 results

dcloud build:list -l 30

Build Info

Get information on a build.

dcloud build [id]

Options

  • -w Watch a build (if it's not finished)
  • -o Show build output to the console

Example: Watch the build with id 20

dcloud build 20 -w

Deployment List

List your deployments

dcloud deployment:list

Options

  • -l <limit> Limit the results
  • -p <page> Which page of results to show

Deployment Info

Get information on a deployment.

dcloud deployment [id]

Options

  • -w Watch a deployment (if it's not finished)
  • -o Show deployment output to the console

Deploy

Deploy a build

dcloud deployment:run [buildId] [environmentName]

Options

  • -y Auto-confirm the deployment process. Useful if you're not deploying manually.

Example: Deploy build 20 to the development environment

dcloud deployment:run 20 development

Environments List

List all available environments

dcloud env:list

Options

N/A


Environment Info

Get info on a specific environment

dcloud env <env>

Options

N/A


Environment Deployments

Get deployments for an environment

dcloud env:deployments <env>

Options

  • -l <limit> Limit the results
  • -p <page> Which page of results to show

Environment Variable

Set a variable on an environment (this doesn't send the variable to the application immediately. In order to do so you have to either run a deployment or apply saved variables)

dcloud env:var:set <env> <name> [value]

Options

N/A

NOTE: to be sure that the values are correctly read from your terminal surround variable-value with double quotes, for example:

dcloud project:var:set BUILD_TOKEN "abcdefg123"

Apply environment variables

Applies previously set environment variables to the actual environment. Once applied the application in that environment will be restarted and after restart will have access to the applied environment variables.

dcloud env:var:apply <env>

Options

N/A


Environment Set Domain

Set the domain for an environment

dcloud env:domain:set <env> [domainName]

Options

N/A


View environment logs

Get the list of latest logs per environment

dcloud log:list [options] [environment]

Options

  • -l <limit> Limit the results
  • -p <page> Which page of results to show

Stream the latest logs for an environment

Get the log output for given environment

dcloud log:watch [environment]

Options

N/A


Repositories List

Get a list of your current/active repositories

dcloud repo

Options

  • -i Show setup instructions for each repository

Project Info

Get your project information

dcloud project <name>

Options

N/A


Projects List

Get a list of your projects

dcloud project:list

Options

N/A


Project Current

Get the current project

dcloud project:current

Options

N/A


Project Set Current

Set a project as current

dcloud project:current:set <name>

Options

N/A


Project Build Variables List

List your variables

dcloud project:var:list

Options

N/A

NOTE: variables listed here for security reasons are masked and you cannot read the exact value


Set Project Build Variable

List your variables

dcloud project:var:set <variable-name> <variable-value>

Options

N/A

NOTE: to be sure that the values are correctly read from your terminal surround variable-value with double quotes, for example:

dcloud project:var:set BUILD_TOKEN "abcdefg123"

Login

WARNING: This is deprecated, please use Login with Token to log in. Existing users will be promted to migrate to using a token for logging in.

Logs into DEITY Falcon Cloud using credentials. If credentials aren't passed you will be prompted to add them.

dcloud login [email] [password]

Options

N/A


Login with token

Logs into DEITY Falcon Cloud using a token. If a token isn't passed you will be prompted to add one.

dcloud login:token [token]

Options

N/A


Logout

Logs the current user out

dcloud logout

Options

N/A


Who am I

Get the current logged in user

dcloud whoami

Options

N/A

Current Tags

  • 0.7.2                                ...           latest (a day ago)

3 Versions

  • 0.7.2                                ...           a day ago
  • 0.7.1                                ...           2 days ago
  • 0.7.0                                ...           2 days ago
Maintainers (1)
Downloads
Today 0
This Week 27
This Month 33
Last Day 3
Last Week 0
Last Month 1
Dependencies (21)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |