0% found this document useful (0 votes)
161 views25 pages

Ps C:/Users/Faiza C/Users/Faiza/C/Firstrepo

The document provides instructions for using various DOS and Git commands: 1. It shows how to clone a repository from GitHub using "git clone" and lists files in a directory using "dir". 2. The user encounters issues removing a directory with "rmdir" due to insufficient permissions and tries unsuccessfully to force removal with options. 3. Instructions are given on making a code change, adding and committing the change, then pushing it to a new branch on a GitHub repository.

Uploaded by

Nasir
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
161 views25 pages

Ps C:/Users/Faiza C/Users/Faiza/C/Firstrepo

The document provides instructions for using various DOS and Git commands: 1. It shows how to clone a repository from GitHub using "git clone" and lists files in a directory using "dir". 2. The user encounters issues removing a directory with "rmdir" due to insufficient permissions and tries unsuccessfully to force removal with options. 3. Instructions are given on making a code change, adding and committing the change, then pushing it to a new branch on a GitHub repository.

Uploaded by

Nasir
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 25

Pwd

Cd

Learn DOS functions and Windows shell.

Cd .. (go one directory back)

How to clone from git:

git clone https://github.com/objex/lawshield.git

How to remove a directory:

rmdir /S /Q lawshield

To list files:

Dir

Visual Studio Code:

Code .

Adding code to windows path.

Shell code:
PS C:\Users\faiza> C/Users/faiza/C/FirstRepo
C/Users/faiza/C/FirstRepo : The term 'C/Users/faiza/C/FirstRepo' is not recognized as
the name of a cmdlet,
function, script file, or operable program. Check the spelling of the name, or if a
path was included, verify that
the path is correct and try again.
At line:1 char:1
+ C/Users/faiza/C/FirstRepo
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C/Users/faiza/C/FirstRepo:String) [],
CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\faiza> pwd

Path
----
C:\Users\faiza

PS C:\Users\faiza> cd /C/Users/faiza/C/FirstRepo
cd : Cannot find path 'C:\C\Users\faiza\C\FirstRepo' because it does not exist.
At line:1 char:1
+ cd /C/Users/faiza/C/FirstRepo
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\C\Users\faiza\C\FirstRepo:String)
[Set-Location], ItemNotFoundExce
ption
+ FullyQualifiedErrorId :
PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand

PS C:\Users\faiza> cd Demo_file

PS C:\Users\faiza\Demo_file> git status


On branch master

No commits yet

Untracked files:
(use "git add <file>..." to include in what will be committed)
../.bash_history
../.gitconfig
../.lesshst
../.ssh/
../AppData/
../C/
../OneDrive/
../Saved Games/
../Searches/
../Videos/
../my-app/
../ntuser.dat
../ntuser.dat.log1
../ntuser.dat.log2
../ntuser.dat{0eea07d6-a3e1-11ed-a69c-90e868573468}.TM.blf
../ntuser.dat{0eea07d6-a3e1-11ed-a69c-
90e868573468}.TMContainer00000000000000000001.regtrans-ms
../ntuser.dat{0eea07d6-a3e1-11ed-a69c-
90e868573468}.TMContainer00000000000000000002.regtrans-ms
../ntuser.ini
../test/

nothing added to commit but untracked files present (use "git add" to track)

PS C:\Users\faiza\Demo_file> cd ..

PS C:\Users\faiza> git clone https://github.com/objex/lawshield.git


git : Cloning into 'lawshield'...
At line:1 char:1
+ git clone https://github.com/objex/lawshield.git
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (Cloning into 'lawshield'...:String) [],
RemoteException
+ FullyQualifiedErrorId : NativeCommandError

PS C:\Users\faiza> git clone https://github.com/objex/lawshield.git


git : fatal: destination path 'lawshield' already exists and is not an empty
directory.
At line:1 char:1
+ git clone https://github.com/objex/lawshield.git
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (fatal: destinat...mpty directory.:String)
[], RemoteException
+ FullyQualifiedErrorId : NativeCommandError

PS C:\Users\faiza> git clone https://github.com/objex/lawshield.git


git : fatal: destination path 'lawshield' already exists and is not an empty
directory.
At line:1 char:1
+ git clone https://github.com/objex/lawshield.git
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (fatal: destinat...mpty directory.:String)
[], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
PS C:\Users\faiza> rmdir lawshield
rmdir : Cannot remove item
C:\Users\faiza\lawshield\.git\objects\pack\pack-
040bfad7fdc98b7e3d3fb44737234f9f76b6c7c0.idx: You do not have
sufficient access rights to perform this operation.
At line:1 char:1
+ rmdir lawshield
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (pack-
040bfad7fd...f9f76b6c7c0.idx:FileInfo) [Remove-Item], IOExcept
ion
+ FullyQualifiedErrorId :
RemoveFileSystemItemUnAuthorizedAccess,Microsoft.PowerShell.Commands.RemoveItemCommand
rmdir : Cannot remove item
C:\Users\faiza\lawshield\.git\objects\pack\pack-
040bfad7fdc98b7e3d3fb44737234f9f76b6c7c0.pack: You do not have
sufficient access rights to perform this operation.
At line:1 char:1
+ rmdir lawshield
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (pack-
040bfad7fd...9f76b6c7c0.pack:FileInfo) [Remove-Item], IOExcept
ion
+ FullyQualifiedErrorId :
RemoveFileSystemItemUnAuthorizedAccess,Microsoft.PowerShell.Commands.RemoveItemCommand
rmdir : Cannot remove item
C:\Users\faiza\lawshield\.git\objects\pack\pack-
040bfad7fdc98b7e3d3fb44737234f9f76b6c7c0.rev: You do not have
sufficient access rights to perform this operation.
At line:1 char:1
+ rmdir lawshield
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (pack-
040bfad7fd...f9f76b6c7c0.rev:FileInfo) [Remove-Item], IOExcept
ion
+ FullyQualifiedErrorId :
RemoveFileSystemItemUnAuthorizedAccess,Microsoft.PowerShell.Commands.RemoveItemCommand
rmdir : Directory C:\Users\faiza\lawshield\.git\objects\pack cannot be removed because
it is not empty.
At line:1 char:1
+ rmdir lawshield
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (pack:DirectoryInfo) [Remove-Item],
IOException
+ FullyQualifiedErrorId :
DirectoryNotEmpty,Microsoft.PowerShell.Commands.RemoveItemCommand

rmdir : Directory C:\Users\faiza\lawshield\.git\objects cannot be removed because it


is not empty.
At line:1 char:1
+ rmdir lawshield
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (objects:DirectoryInfo) [Remove-Item],
IOException
+ FullyQualifiedErrorId :
DirectoryNotEmpty,Microsoft.PowerShell.Commands.RemoveItemCommand

rmdir : Directory C:\Users\faiza\lawshield\.git cannot be removed because it is not


empty.
At line:1 char:1
+ rmdir lawshield
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (.git:DirectoryInfo) [Remove-Item],
IOException
+ FullyQualifiedErrorId :
DirectoryNotEmpty,Microsoft.PowerShell.Commands.RemoveItemCommand

rmdir : Directory C:\Users\faiza\lawshield cannot be removed because it is not empty.


At line:1 char:1
+ rmdir lawshield
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (C:\Users\faiza\lawshield:DirectoryInfo)
[Remove-Item], IOException
+ FullyQualifiedErrorId :
DirectoryNotEmpty,Microsoft.PowerShell.Commands.RemoveItemCommand

PS C:\Users\faiza> rmdir /S /Q "lawshield"


Remove-Item : A positional parameter cannot be found that accepts argument '/Q'.
At line:1 char:1
+ rmdir /S /Q "lawshield"
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Remove-Item],
ParameterBindingException
+ FullyQualifiedErrorId :
PositionalParameterNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand

PS C:\Users\faiza> rmdir /s /q "lawshield"


Remove-Item : A positional parameter cannot be found that accepts argument '/q'.
At line:1 char:1
+ rmdir /s /q "lawshield"
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Remove-Item],
ParameterBindingException
+ FullyQualifiedErrorId :
PositionalParameterNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand

PS C:\Users\faiza> rmdir /S /Q lawshield


Remove-Item : A positional parameter cannot be found that accepts argument '/Q'.
At line:1 char:1
+ rmdir /S /Q lawshield
+ ~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Remove-Item],
ParameterBindingException
+ FullyQualifiedErrorId :
PositionalParameterNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand

PS C:\Users\faiza> rmdir /S /Q 'lawshield'


Remove-Item : A positional parameter cannot be found that accepts argument '/Q'.
At line:1 char:1
+ rmdir /S /Q 'lawshield'
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Remove-Item],
ParameterBindingException
+ FullyQualifiedErrorId :
PositionalParameterNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand

PS C:\Users\faiza> git clone https://github.com/objex/lawshield.git


git : Cloning into 'lawshield'...
At line:1 char:1
+ git clone https://github.com/objex/lawshield.git
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (Cloning into 'lawshield'...:String) [],
RemoteException
+ FullyQualifiedErrorId : NativeCommandError

PS C:\Users\faiza> cd lawshield

PS C:\Users\faiza\lawshield> dir

Directory: C:\Users\faiza\lawshield
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 12/07/2023 6:35 am public
d----- 12/07/2023 6:35 am src
-a---- 12/07/2023 6:35 am 333 .gitignore
-a---- 12/07/2023 6:35 am 704474 package-lock.json
-a---- 12/07/2023 6:35 am 982 package.json
-a---- 12/07/2023 6:35 am 3429 README.md
-a---- 12/07/2023 6:35 am 165 tailwind.config.js

PS C:\Users\faiza\lawshield> code .
code : The term 'code' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:1
+ code .
+ ~~~~
+ CategoryInfo : ObjectNotFound: (code:String) [],
CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\faiza\lawshield>

Git status tells about changes made.

Git add . Local changes are added to version control.

Git commit.

Step 1, make a visible change in the code

Step 2, add comment and commit the code

Step 3, push to your own branch

Step 4, create a public repository on github

Cd lawshield

Git status

Git add .

Create branch
git commit -m "Hero Section Line 128"
PS C:\Users\faiza> cd lawshield

PS C:\Users\faiza\lawshield> git status


On branch main
Your branch is up to date with 'origin/main'.

Changes not staged for commit:


(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: src/Hero.js

no changes added to commit (use "git add" and/or "git commit -a")

PS C:\Users\faiza\lawshield> git add .

PS C:\Users\faiza\lawshield> git commit -m


git : error: switch `m' requires a value
At line:1 char:1
+ git commit -m
+ ~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (error: switch `m' requires a valu
e:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError

PS C:\Users\faiza\lawshield> git commit -m "Hero Section Line 128"


[main 030c580] Hero Section Line 128
1 file changed, 2 insertions(+), 2 deletions(-)

PS C:\Users\faiza\lawshield> git checkout -b hero-section


git : Switched to a new branch 'hero-section'
At line:1 char:1
+ git checkout -b hero-section
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (Switched to a new branch 'hero-se
ction':String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError

PS C:\Users\faiza\lawshield> git branch


* hero-section
main

PS C:\Users\faiza\lawshield> git push origin hero-section


git : remote:
At line:1 char:1
+ git push origin hero-section
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (remote: :String) [], RemoteExcept
ion
+ FullyQualifiedErrorId : NativeCommandError

remote: Create a pull request for 'hero-section' on GitHub by visiting:


remote: https://github.com/objex/lawshield/pull/new/hero-section
remote:
To https://github.com/objex/lawshield.git
* [new branch] hero-section -> hero-section

PS C:\Users\faiza\lawshield>

PS C:\Users\faiza> cd lawshield

PS C:\Users\faiza\lawshield> git status


On branch main
Your branch is up to date with 'origin/main'.

Changes not staged for commit:


(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: src/Hero.js

no changes added to commit (use "git add" and/or "git commit -a")

PS C:\Users\faiza\lawshield> git add .

PS C:\Users\faiza\lawshield> git commit -m


git : error: switch `m' requires a value
At line:1 char:1
+ git commit -m
+ ~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (error: switch `m' requires a valu
e:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError

PS C:\Users\faiza\lawshield> git commit -m "Hero Section Line 128"


[main 030c580] Hero Section Line 128
1 file changed, 2 insertions(+), 2 deletions(-)

PS C:\Users\faiza\lawshield> git checkout -b hero-section


git : Switched to a new branch 'hero-section'
At line:1 char:1
+ git checkout -b hero-section
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (Switched to a new branch 'hero-se
ction':String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError

PS C:\Users\faiza\lawshield> git branch


* hero-section
main

PS C:\Users\faiza\lawshield> git push origin hero-section


git : remote:
At line:1 char:1
+ git push origin hero-section
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (remote: :String) [], RemoteExcept
ion
+ FullyQualifiedErrorId : NativeCommandError

remote: Create a pull request for 'hero-section' on GitHub by visiting:


remote: https://github.com/objex/lawshield/pull/new/hero-section
remote:
To https://github.com/objex/lawshield.git
* [new branch] hero-section -> hero-section

PS C:\Users\faiza\lawshield> git pull


git : From https://github.com/objex/lawshield
At line:1 char:1
+ git pull
+ ~~~~~~~~
+ CategoryInfo : NotSpecified: (From https://github.com/objex/law
shield:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError

f8a6215..e0f42d8 main -> origin/main


* [new branch] pricing-change -> origin/pricing-change
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.
git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-to=origin/<branch> hero-section

PS C:\Users\faiza\lawshield> git branch --set-upstream-to=origin/main hero-section


branch 'hero-section' set up to track 'origin/main'.

PS C:\Users\faiza\lawshield> git pull


Merge made by the 'ort' strategy.
src/Pricing.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

PS C:\Users\faiza\lawshield>

Step 1, make a visible change in the code

Step 2, add comment and commit the code

Step 3, push to your own branch

Step 4, create a PR on github

PowerShell 7.3.6

PS C:\Users\faiza> firebase login

Already logged in as [email protected]

PS C:\Users\faiza> git pull

There is no tracking information for the current branch.

Please specify which branch you want to merge with.

See git-pull(1) for details.

git pull <remote> <branch>


If you wish to set tracking information for this branch you can do so with:

git branch --set-upstream-to=<remote>/<branch> master

PS C:\Users\faiza> git pull main branch

fatal: 'main' does not appear to be a git repository

fatal: Could not read from remote repository.

Please make sure you have the correct access rights

and the repository exists.

PS C:\Users\faiza> main branch

PS C:\Users\faiza> git pull

There is no tracking information for the current branch.

Please specify which branch you want to merge with.

See git-pull(1) for details.

git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

git branch --set-upstream-to=<remote>/<branch> master

PS C:\Users\faiza> git pull remote main

fatal: 'remote' does not appear to be a git repository


fatal: Could not read from remote repository.

Please make sure you have the correct access rights

and the repository exists.

PS C:\Users\faiza> git pull main branch

fatal: 'main' does not appear to be a git repository

fatal: Could not read from remote repository.

Please make sure you have the correct access rights

and the repository exists.

PS C:\Users\faiza> git status

On branch master

No commits yet

Untracked files:

(use "git add <file>..." to include in what will be committed)

.bash_history

.config/

.gitconfig

.lesshst

.ssh/

.vscode/

AppData/

Downloads/
Music/

OneDrive/

Saved Games/

Searches/

Videos/

faiza.code-workspace

lawshield/

my-app/

node_modules/

ntuser.dat

ntuser.dat.log1

ntuser.dat.log2

ntuser.dat{0eea07d6-a3e1-11ed-a69c-90e868573468}.TM.blf

ntuser.dat{0eea07d6-a3e1-11ed-a69c-
90e868573468}.TMContainer00000000000000000001.regtrans-ms

ntuser.dat{0eea07d6-a3e1-11ed-a69c-
90e868573468}.TMContainer00000000000000000002.regtrans-ms

ntuser.ini

package-lock.json

package.json

test/

nothing added to commit but untracked files present (use "git add" to track)

PS C:\Users\faiza> cd lawshield

PS C:\Users\faiza\lawshield> git status

On branch main
Your branch is up to date with 'origin/main'.

Untracked files:

(use "git add <file>..." to include in what will be committed)

firebase-debug.log

nothing added to commit but untracked files present (use "git add" to track)

PS C:\Users\faiza\lawshield> git branch

hero-section

* main

new-branch

PS C:\Users\faiza\lawshield> git pull

remote: Enumerating objects: 12, done.

remote: Counting objects: 100% (12/12), done.

Unpacking objects: 100% (10/10), 2.86 KiB | 28.00 KiB/s, done.

remote: Compressing objects: 100% (8/8), done.

remote: Total 10 (delta 1), reused 10 (delta 1), pack-reused 0

From https://github.com/objex/lawshield

2adec4a..8a2eed7 main -> origin/main

Updating 2adec4a..8a2eed7

Fast-forward

.firebase/hosting.YnVpbGQ.cache | 15 +++++++++++++++

.firebase/hosting.cHVibGlj.cache | 7 +++++++

.firebaserc | 5 +++++

deploy.sh | 2 ++
firebase.json | 10 ++++++++++

public/404.html | 33 +++++++++++++++++++++++++++++++++

6 files changed, 72 insertions(+)

create mode 100644 .firebase/hosting.YnVpbGQ.cache

create mode 100644 .firebase/hosting.cHVibGlj.cache

create mode 100644 .firebaserc

create mode 100755 deploy.sh

create mode 100644 firebase.json

create mode 100644 public/404.html

PS C:\Users\faiza\lawshield> bash

bash: The term 'bash' is not recognized as a name of a cmdlet, function, script file, or executable
program.

Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

PS C:\Users\faiza\lawshield>

npm run build

Firebase deploy
PowerShell 7.3.6

PS C:\Users\faiza> firebase

Usage: firebase [options] [command]

Options:

-V, --version output the version number

-P, --project <alias_or_project_id> the Firebase project to use for this command

--account <email> the Google account to use for authorization

-j, --json output JSON instead of text, also triggers

non-interactive mode

--token <token> DEPRECATED - will be removed in a future major


version

- supply an auth token for this command

--non-interactive error out of the command instead of waiting for

prompts

-i, --interactive force prompts to be displayed

--debug print verbose debug output and keep a debug log file

-c, --config <path> path to the firebase.json file to use for

configuration

-h, --help output usage information


Commands:

appdistribution:distribute [options] <release-binary-file> upload a release binary

appdistribution:testers:add [options] [emails...] add testers to project (and possibly


group)

appdistribution:testers:remove [options] [emails...] remove testers from a project (or


group)

appdistribution:group:create <displayName> [alias] create group in project

appdistribution:group:delete <alias> delete group from a project

apps:create [options] [platform] [displayName] create a new Firebase app. [platform]


can be IOS,

ANDROID or WEB (case insensitive).

apps:list [platform] list the registered apps of a Firebase project.

Optionally filter apps by [platform]: IOS, ANDROID or

WEB (case insensitive)

apps:sdkconfig [options] [platform] [appId] print the Google Services config of a


Firebase app.

[platform] can be IOS, ANDROID or WEB (case

insensitive)

apps:android:sha:list <appId> list the SHA certificate hashes for a given app
id.

apps:android:sha:create <appId> <shaHash> add a SHA certificate hash for a given


app id.

apps:android:sha:delete <appId> <shaId> delete a SHA certificate hash for a given


app id.

auth:export [options] [dataFile] Export accounts from your Firebase project


into a

data file

auth:import [options] [dataFile] import users into your Firebase project from a
data
file(.csv or .json)

crashlytics:symbols:upload [options] <symbolFiles...> upload symbols for native code, to


symbolicate stack

traces

crashlytics:mappingfile:generateid [options] generate a mapping file id and write it to


an

Android resource file, which will be built into the

app

crashlytics:mappingfile:upload [options] <mappingFile> upload a ProGuard/R8-compatible


mapping file to

deobfuscate stack traces

database:get [options] <path> fetch and print JSON data at the specified
path

database:import [options] <path> [infile] non-atomically import the contents of a


JSON file to

the specified path in Realtime Database

database:instances:create [options] <instanceName> create a realtime database


instance

database:instances:list [options] list realtime database instances, optionally

filtered by a specified location

database:profile [options] profile the Realtime Database and generate a


usage

report

database:push [options] <path> [infile] add a new JSON object to a list of data in
your

Firebase

database:remove [options] <path> remove data from your Firebase at the


specified path
database:set [options] <path> [infile] store JSON data at the specified path via
STDIN,

arg, or file

database:settings:get [options] <path> read the realtime database setting at path

database:settings:set [options] <path> <value> set the realtime database setting at


path.

database:update [options] <path> [infile] update some of the keys for the defined
path in your

Firebase

deploy [options] deploy code and assets to your Firebase project

emulators:exec [options] <script> start the local Firebase emulators, run a test

script, then shut down the emulators

emulators:export [options] <path> export data from running emulators

emulators:start [options] start the local Firebase emulators

experimental:functions:shell [options] launch full Node shell with emulated


functions.

(Alias for `firebase functions:shell.)

experiments:list

experiments:describe <experiment> describe what an experiment does when


enabled

experiments:enable <experiment> enable an experiment on this machine

experiments:disable <experiment> disable an experiment on this machine

ext display information on how to use ext commands and

extensions installed to your project

ext:configure [options] <extensionInstanceId> configure an existing extension


instance

ext:info [options] <extensionName> display information about an extension by


name
([email protected] for a specific version)

ext:export [options] export all Extension instances installed on a

project to a local Firebase directory

ext:install [options] [extensionRef] add an uploaded extension to firebase.json if

[publisherId/extensionId] is provided;or, add a local

extension if [localPath] is provided

ext:list list all the extensions that are installed in your

Firebase project

ext:uninstall [options] <extensionInstanceId> uninstall an extension that is installed in


your

Firebase project by instance ID

ext:update [options] <extensionInstanceId> [updateSource] update an existing extension


instance to the latest

version, or to a specific version if provided

ext:dev:init initialize files for writing an extension in the

current directory

ext:dev:list <publisherId> list all extensions uploaded under publisher ID

ext:dev:register register a publisher ID; run this before publishing

your first extension.

ext:dev:deprecate [options] <extensionRef> [versionPredicate] deprecate extension versions


that match the version

predicate

ext:dev:undeprecate <extensionRef> <versionPredicate> undeprecate extension versions


that match the

version predicate

ext:dev:upload [options] <extensionRef> upload a new version of an extension

ext:dev:publish [options] <extensionRef> Deprecated. Use ext:dev:upload instead


ext:dev:usage <publisherId> get usage for an extension

firestore:delete [options] [path] Delete data from Cloud Firestore.

firestore:indexes [options] List indexes in your project's Cloud Firestore

database.

firestore:locations List possible locations for your Cloud Firestore

project.

firestore:databases:list List databases in your Cloud Firestore project.

firestore:databases:get [database] Get database in your Cloud Firestore project.

firestore:databases:create [options] <database> Create a database in your Firebase


project.

firestore:databases:update [options] <database> Update a database in your Firebase


project. Must

specify at least one property to update.

firestore:databases:delete [options] <database> Delete a database in your Cloud


Firestore project.

Database delete protection state must be disabled. To

do so, use the update command: firebase

firestore:databases:update <database>

--delete-protection DISABLED

functions:config:clone [options] clone environment config from another


project

functions:config:export Export environment config as environment


variables

in dotenv format

functions:config:get [path] fetch environment config stored at the given


path

functions:config:set [values...] set environment config with key=value syntax


functions:config:unset [keys...] unset environment config at the specified
path(s)

functions:delete [options] [filters...] delete one or more Cloud Functions by name


or group

name.

functions:log [options] read logs from deployed functions

functions:shell [options] launch full Node shell with emulated functions

functions:list list all deployed functions in your Firebase project

functions:secrets:access <KEY>[@version> Access secret value given secret and its


version.

Defaults to accessing the latest version.

functions:secrets:destroy [options] <KEY>[@version> Destroy a secret. Defaults to


destroying the latest

version.

functions:secrets:get <KEY> Get metadata for secret and its versions

functions:secrets:prune [options] Destroys unused secrets

functions:secrets:set [options] <KEY> Create or update a secret for use in Cloud


Functions

for Firebase.

help [command] display help information

hosting:channel:create [options] [channelId] create a Firebase Hosting channel

hosting:channel:delete [options] <channelId> delete a Firebase Hosting channel

hosting:channel:deploy [options] [channelId] deploy to a specific Firebase Hosting


channel

hosting:channel:list [options] list all Firebase Hosting channels for your


project

hosting:channel:open [options] [channelId] opens the URL for a Firebase Hosting


channel

hosting:clone <source> <targetChannel> clone a version from one site to another


hosting:disable [options] stop serving web traffic to your Firebase Hosting

site

hosting:sites:create [options] [siteId] create a Firebase Hosting site

hosting:sites:delete [options] <siteId> delete a Firebase Hosting site

hosting:sites:get <siteId> print info about a Firebase Hosting site

hosting:sites:list list Firebase Hosting sites

init [feature] Interactively configure the current directory as a


Firebase project or initialize new features in an already configured Firebase project directory.

This command will create or update 'firebase.json' and '.firebaserc' configuration files in the
current directory.

To initialize a specific Firebase feature, run 'firebase init [feature]'. Valid features are:

- database

- emulators

- extensions

- firestore

- frameworks

- functions

- hosting

- hosting:github

- remoteconfig

- storage

login [options] log the CLI into Firebase

login:add [options] [email] authorize the CLI for an additional account


login:ci [options] generate an access token for use in non-interactive

environments

login:list list authorized CLI accounts

login:use <email> set the default account to use for this project

directory

logout [email] log the CLI out of Firebase

open [link] quickly open a browser to relevant project resources

projects:addfirebase [projectId] add Firebase resources to a Google Cloud


Platform

project

projects:create [options] [projectId] creates a new Google Cloud Platform


project, then

adds Firebase resources to the project

projects:list list all Firebase projects you have access to

remoteconfig:get [options] get a Firebase project's Remote Config


template

remoteconfig:rollback [options] roll back a project's published Remote Config

template to the one specified by the provided version

number

remoteconfig:versions:list [options] get a list of Remote Config template versions


that

have been published for a Firebase project

serve [options] start a local server for your static assets

setup:emulators:database downloads the database emulator

setup:emulators:firestore downloads the firestore emulator

setup:emulators:pubsub downloads the pubsub emulator

setup:emulators:storage downloads the storage emulator


setup:emulators:ui downloads the ui emulator

target [type] display configured deploy targets for the current

project

target:apply <type> <name> <resources...> apply a deploy target to a resource

target:clear <type> <target> clear all resources from a named resource


target

target:remove <type> <resource> remove a resource target

use [options] [alias_or_project_id] set an active Firebase project for your


working

directory

PS C:\Users\faiza> project

project: The term 'project' is not recognized as a name of a cmdlet, function, script file, or
executable program.

Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.

PS C:\Users\faiza> cd lawshield

PS C:\Users\faiza\lawshield> firebase login

Already logged in as [email protected]

PS C:\Users\faiza\lawshield> git status

On branch main

Your branch is up to date with 'origin/main'.

nothing to commit, working tree clean

PS C:\Users\faiza\lawshield> firebase deploy

=== Deploying to 'lawshield-b1726'...


i deploying hosting

i hosting[lawshield-b1726]: beginning deploy...

i hosting[lawshield-b1726]: found 6 files in build

+ hosting[lawshield-b1726]: file upload complete

i hosting[lawshield-b1726]: finalizing version...

+ hosting[lawshield-b1726]: version finalized

i hosting[lawshield-b1726]: releasing new version...

+ hosting[lawshield-b1726]: release complete

+ Deploy complete!

Project Console: https://console.firebase.google.com/project/lawshield-b1726/overview

Hosting URL: https://lawshield-b1726.web.app

PS C:\Users\faiza\lawshield> ^C

PS C:\Users\faiza\lawshield> ^C

PS C:\Users\faiza\lawshield>
Objex:

Sign up

Login page

1. Ideas.
2.

You might also like