npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@divio/cli

v0.7.2

Published

Divio Cloud CLI

Downloads

5

Readme

@divio/cli

Divio Cloud CLI

oclif Version Downloads/week

Usage

$ npm install -g @divio/cli
$ divio COMMAND
running command...
$ divio (-v|--version|version)
@divio/cli/0.7.2 linux-x64 node-v12.16.1
$ divio --help [COMMAND]
USAGE
  $ divio COMMAND
...

Other install method

curl -L https://divio.com/cli/install.sh | sh

Commands

divio autocomplete [SHELL]

display autocomplete installation instructions

USAGE
  $ divio autocomplete [SHELL]

ARGUMENTS
  SHELL  shell type

OPTIONS
  -r, --refresh-cache  Refresh cache (ignores displaying instructions)

EXAMPLES
  $ divio autocomplete
  $ divio autocomplete bash
  $ divio autocomplete zsh
  $ divio autocomplete --refresh-cache

See code: @oclif/plugin-autocomplete

divio config

Show divio cli configuration

USAGE
  $ divio config

OPTIONS
  -h, --help  show CLI help
  --edit      Open config in editor
  --path      Show path to config file

EXAMPLES
  divio config
  divio config --path
  # edit with vim
  $ EDITOR="vim" divio config --edit
  # edit with atom editor
  $ VISUAL="atom --wait" divio config --edit

See code: src/commands/config.ts

divio doctor

Check if your system meets the requirements for local development of Divio Cloud projects

USAGE
  $ divio doctor

OPTIONS
  -c, --check=login|git|docker-client|docker-machine|docker-compose|docker-server|docker-server-ping|docker-server-dns
      Specific services to check

  -h, --help
      show CLI help

  -m, --machine-readable
      Outputs JSON

See code: src/commands/doctor.ts

divio flavour

Install / Uninstall flavours

USAGE
  $ divio flavour

See code: src/commands/flavour/index.ts

divio flavour:add [ADDONS]

Add addon

USAGE
  $ divio flavour:add [ADDONS]

ARGUMENTS
  ADDONS  The flavour identifier(s) of the addon, e.g.: divio/django

OPTIONS
  -h, --help                   show CLI help
  --addonmanager=addonmanager  Optionally specify addon manager, bypassing the registry
  --[no-]cache                 Should use flavour addon managers that is available locally or check for latest
  --[no-]check                 Check if the addon is valid
  --package=package            File path or the url to package yaml
  --registry=registry          [default: https://hub.eu.aldryn.io]
  --verbose                    Verbose output

EXAMPLE
  $ flavour add addon1 addon2

See code: src/commands/flavour/add.ts

divio flavour:check [ADDONS]

Check addon

USAGE
  $ divio flavour:check [ADDONS]

ARGUMENTS
  ADDONS  The flavour identifier(s) of the addon, e.g.: divio/django

OPTIONS
  -h, --help                   show CLI help
  --addonmanager=addonmanager  Optionally specify addon manager, bypassing the registry
  --[no-]cache                 Should use flavour addon managers that is available locally or check for latest
  --package=package            File path or the url to package yaml
  --registry=registry          [default: https://hub.eu.aldryn.io]
  --verbose                    Verbose output

EXAMPLE
  $ flavour check addon1 addon2

See code: src/commands/flavour/check.ts

divio flavour:remove [ADDONS]

Remove addon

USAGE
  $ divio flavour:remove [ADDONS]

ARGUMENTS
  ADDONS  The flavour identifier(s) of the addon, e.g.: divio/django

OPTIONS
  -h, --help                   show CLI help
  --addonmanager=addonmanager  Optionally specify addon manager, bypassing the registry
  --[no-]cache                 Should use flavour addon managers that is available locally or check for latest
  --[no-]check                 Check if the addon is valid
  --package=package            File path or the url to package yaml
  --registry=registry          [default: https://hub.eu.aldryn.io]
  --verbose                    Verbose output

EXAMPLE
  $ flavour remove addon1 addon2

See code: src/commands/flavour/remove.ts

divio help [COMMAND]

display help for divio

USAGE
  $ divio help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

divio login

Authorize your machine with the Divio Cloud

USAGE
  $ divio login

OPTIONS
  -h, --help  show CLI help
  --check     Check for current login status

EXAMPLES
  $ divio login
  $ echo $DIVIO_TOKEN | divio login

See code: src/commands/login.ts

divio logout

Logs you out

USAGE
  $ divio logout

OPTIONS
  -h, --help  show CLI help

EXAMPLE
  $ divio logout

See code: src/commands/logout.ts

divio project

Project commands

USAGE
  $ divio project

See code: src/commands/project/index.ts

divio project:dashboard

Open project dashboard

USAGE
  $ divio project:dashboard

OPTIONS
  -h, --help  show CLI help

See code: src/commands/project/dashboard.ts

divio project:deploy [ENVIRONMENT]

Deploy or see current deployment progress

USAGE
  $ divio project:deploy [ENVIRONMENT]

OPTIONS
  -h, --help             show CLI help

  --remote-id=remote-id  Remote project ID to use for project commands. Defaults to the project in the current directory
                         using the .divio/active file.

See code: src/commands/project/deploy.ts

divio project:deploy-log [ENVIRONMENT]

View last deployment log

USAGE
  $ divio project:deploy-log [ENVIRONMENT]

OPTIONS
  -h, --help             show CLI help

  --remote-id=remote-id  Remote project ID to use for project commands. Defaults to the project in the current directory
                         using the .divio/active file.

See code: src/commands/project/deploy-log.ts

divio project:env-vars

Get or set environment variables (experimental)

USAGE
  $ divio project:env-vars

OPTIONS
  -h, --help             show CLI help
  -s, --stage=test|live  [default: test] Get data from environment (e.g. "test" or "live")
  --all                  Show all env vars, not just the custom ones
  --edit                 Edit environment variables
  --get=get              Get specific environment variables
  --json                 Show as json

  --remote-id=remote-id  Remote project ID to use for project commands. Defaults to the project in the current directory
                         using the .divio/active file.

EXAMPLES
  divio project:env-vars
  divio project:env-vars --all
  divio project:env-vars --get VAR
  divio project:env-vars --get VAR*
  # edit with vim
  $ EDITOR="vim" divio project:env-vars --edit
  # edit with atom editor
  $ VISUAL="atom --wait" divio project:env-vars --edit

See code: src/commands/project/env-vars.ts

divio project:export

Export db from the local project

USAGE
  $ divio project:export

OPTIONS
  -h, --help  show CLI help

See code: src/commands/project/export.ts

divio project:import [DUMP-PATH]

Import db to the local project

USAGE
  $ divio project:import [DUMP-PATH]

OPTIONS
  -h, --help  show CLI help

See code: src/commands/project/import.ts

divio project:list

List projects

USAGE
  $ divio project:list

OPTIONS
  -h, --help         show CLI help
  -x, --extended     show extra columns
  --columns=columns  only show provided columns (comma-separated)
  --csv              output is csv format
  --grouped          group by organisation
  --json             output as json
  --no-header        hide table header from output
  --no-truncate      do not truncate output to fit screen

See code: src/commands/project/list.ts

divio project:open [ENVIRONMENT]

Open project in the browser

USAGE
  $ divio project:open [ENVIRONMENT]

OPTIONS
  -h, --help  show CLI help

See code: src/commands/project/open.ts

divio project:pull TYPE

Pull db or files from the Divio Cloud

USAGE
  $ divio project:pull TYPE

ARGUMENTS
  TYPE  (db|media)

OPTIONS
  -h, --help             show CLI help
  -s, --stage=test|live  [default: test] Pull data from environment (e.g. "test" or "live")

  --remote-id=remote-id  Remote project ID to use for project commands. Defaults to the project in the current directory
                         using the .divio/active file.

See code: src/commands/project/pull.ts

divio project:push TYPE

Push db or files to the Divio Cloud

USAGE
  $ divio project:push TYPE

ARGUMENTS
  TYPE  (db|media)

OPTIONS
  -d, --dumpfile=dumpfile
  -h, --help               show CLI help
  -s, --stage=test|live    [default: test] Push data to environment (e.g. "test" or "live")
  --noinput                Don't ask for confirmation

  --remote-id=remote-id    Remote project ID to use for project commands. Defaults to the project in the current
                           directory using the .divio/active file.

See code: src/commands/project/push.ts

divio project:setup SLUG

Setup project locally

USAGE
  $ divio project:setup SLUG

OPTIONS
  -h, --help         show CLI help
  -p, --path=path    [default: .] Path to install the project
  -s, --stage=stage  [default: test] Pull data from environment (e.g. "test" or "live")
  --overwrite        Overwrite the project directory if it already exists
  --skip-doctor      Skip system test before setting up the project

See code: src/commands/project/setup.ts

divio project:status

Show local project status

USAGE
  $ divio project:status

OPTIONS
  -h, --help  show CLI help

See code: src/commands/project/status.ts

divio project:stop

Stop project

USAGE
  $ divio project:stop

OPTIONS
  -h, --help  show CLI help

See code: src/commands/project/stop.ts

divio project:up

Start project

USAGE
  $ divio project:up

OPTIONS
  -h, --help  show CLI help

See code: src/commands/project/up.ts

divio project:update

Update project

USAGE
  $ divio project:update

OPTIONS
  -h, --help  show CLI help
  --strict    A strict update will fail on a warning

See code: src/commands/project/update.ts

divio update [CHANNEL]

update the divio CLI

USAGE
  $ divio update [CHANNEL]

See code: @oclif/plugin-update

Tests

To run:

npm run test